repo_id
stringclasses 279
values | file_path
stringlengths 43
179
| content
stringlengths 1
4.18M
| __index_level_0__
int64 0
0
|
|---|---|---|---|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/utils/index.ts
|
// Concatenates classes into a single className string
export const cn = (...args: string[]) => args.join(' ');
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/utils/fetchDataFromArweave.ts
|
import { ARWEAVE_DEVNET } from "../constants";
export default async (id: string) => {
try {
const response = await fetch(`${ARWEAVE_DEVNET}/${id}`);
const arrayBuffer = await response.arrayBuffer();
const data = String.fromCharCode.apply(null, new Uint8Array(arrayBuffer));
return { err: false, data: JSON.parse(data) };
} catch (error) {
return { err: true };
}
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/utils/fetchGithubUserDataFromUserId.ts
|
export default async (userId: string) => {
try {
const response = await fetch(`https://api.github.com/user/${userId}`);
const data = await response.json();
if (data.message === "Not Found") {
return { err: true };
}
return { err: false, data };
} catch (error) {
return { err: true };
}
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/models/grant.ts
|
import {PublicKey} from "@solana/web3.js";
export interface GrantModel {
author?: PublicKey,
escrowCount?: number,
info?: string,
lamportsRaised?: number,
totalDonors?: number,
targetLamports?: number,
dueDate?: number,
isActive?: boolean,
matchingEligible?: boolean,
grantNum?: number,
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/models/types.ts
|
export type EndpointTypes = 'mainnet' | 'devnet' | 'localnet'
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/models/programInfo.ts
|
import {PublicKey} from "@solana/web3.js";
export interface ProgramInfoModel {
bump?: number,
grantsCount?: number,
admin?: PublicKey,
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/styles/globals.css
|
/* Grants Logo */
@import url('https://fonts.googleapis.com/css2?family=Quantico&display=swap');
/* norma text */
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
a {
color: inherit;
text-decoration: none;
}
* {
box-sizing: border-box;
}
/* example: override wallet button style */
.wallet-adapter-button:not([disabled]):hover {
background-color: #14F195;
border: 2px solid #9945FF;
}
.wallet-adapter-button:disabled:hover {
background-color: #14F195;
border: 2px solid #9945FF;
}
.wallet-adapter-button:disabled {
background-color: #9945FF;
color : black;
}
.wallet-adapter-button {
border: 2px solid #14F195;
}
.grant-main {
width: 100%;
}
.grant-submain {
padding: 2.5rem;
background: rgba(153, 69, 255, 0.24);
border-radius: 6.875rem 0rem 0rem 6.875rem;
margin-left: 3rem;
}
.background-graphic-upper {
width: 100%;
height: 700px;
background-size: cover;
background-image: url(/images/bg-graphic-upper.svg);
box-shadow: 0px 11px 25px 10px #0b0f0f;
}
.grant-submain input {
border-radius: 6.875rem;
border: 1px solid #D8D8D8;
padding: 5px 7px;
color: black;
letter-spacing: -0.09px;
outline: none;
height: 40px;
background: #F5F5F5;
display: flex;
flex-direction: row;
align-items: center;
padding: 16px;
gap: 8px;
width: 246px;
height: 32px;
left: 319px;
top: 119px;
background: #F5F5F5;
border-radius: 10px;
}
.maingrantbox {
position: relative;
width: 38.125rem;
align-items: center;
display: flex;
flex-direction: column;
padding: 2rem 0rem;
margin-left: auto;
margin-right: auto;
border-radius: 2px soild grey;
border-radius: 1rem;
background: #000000;
/* height: 39.438rem; */
}
.maingrantbox .cross {
position: absolute;
top: -17px;
background: white;
color: black;
padding: 5px 10px;
border-radius: 9px;
right: -13px;
}
.grantname {
font-weight: 500;
font-size: 22px;
}
.grantsub {
display: flex;
justify-content: space-between;
align-items: center;
}
.grantbuttonname {
font-weight: 600;
font-size: 16px;
line-height: 20px;
text-align: center;
text-transform: uppercase;
color: #0D0D0D;
}
.popUpGrant {
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
height: 100%;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.2);
}
.maingrantbox .cross {
position: absolute;
background: #00ff91;
color: black;
padding: 2px 10px;
border-radius: 15px;
right: 1px;
top: 1px;
}
.modal-box {
max-width: 38rem !important;
}
.loading-spinner-gradients {
--mask: radial-gradient(
farthest-side,
transparent calc(100% - 2px - 0.5px),
#000 calc(100% - 2px + 0.5px)
);
-webkit-mask: var(--mask);
mask: var(--mask);
background: linear-gradient(to top, rgba(0,255,226, 1), transparent 95%) 100% 0/100% 100% no-repeat;
}
@media screen and (max-width: 768px) {
.modal-box {
width: 20rem;
/* height: 525px; */
}
.modal h1 {
font-size: 10px;
}
.grant-submain {
width: 17rem;
}
.grantname {
font-weight: 500;
font-size: 10px;
}
.grantinput {
font-size: 8px;
}
.btn {
width: 126px;
}
.btn-circle {
width: 34px;
}
.grant-submain input {
width: 100px;
height: 32px;
}
}
@media screen and (max-width: 1100px) {
.menu li>:where(a), .menu li>:where(button), .menu li>:where(span) {
padding: 0.75rem 1.25rem;
color: white;
}
}
@media screen and (max-width: 768px) {
.creategrant{
width: 45rem;
}
.grantborder{
width: 0;
}
.grantheading{
font-size: 0;
}
}
@media screen and (max-width: 768px) {
.creategrant{
width: 23rem;
}
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/ContentContainer.tsx
|
import { FC } from 'react';
import Link from "next/link";
export const ContentContainer: FC = props => {
return (
<div className="flex-1 drawer h-52">
{/* <div className="h-screen drawer drawer-mobile w-full"> */}
<input id="my-drawer" type="checkbox" className="grow drawer-toggle" />
<div className="items-center drawer-content">
{props.children}
</div>
{/* SideBar / Drawer */}
<div className="drawer-side">
<label htmlFor="my-drawer" className="drawer-overlay"></label>
<ul className="p-4 overflow-y-auto menu w-80 bg-base-100">
<li>
<h1>Menu</h1>
</li>
<li>
<Link href="/">
<a>Home</a>
</Link>
</li>
<li>
<Link href="/basics">
<a>Basics</a>
</Link>
</li>
</ul>
</div>
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/ExplorerCard.tsx
|
import { contrastColor } from "contrast-color";
import { BN } from "@project-serum/anchor";
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
import { useRouter } from "next/router";
export interface ExplorerCardProps {
imageLink: string;
title: string;
author: BN | string;
authorLink: string;
description: string;
githubProjectLink: string;
numDonors: number;
dueDate: BN | number;
matchingEligible: boolean;
isCancelled: boolean;
lamportsRaised: BN | number;
targetLamports: BN | number;
idx: number;
}
/**
* A card to show a description of a project in the explorer view.
* @param bgColor is expected to be taken from the image, ideally provided by the backend
*/
export const ExplorerCard = ({
imageLink,
title,
author,
authorLink,
description,
githubProjectLink,
numDonors,
lamportsRaised,
idx
}: ExplorerCardProps) => {
const roundedAmtRaised = Math.round(lamportsRaised as number / LAMPORTS_PER_SOL);
const textColor = contrastColor({ bgColor: "yellow", fgLightColor: "text-slate-200", fgDarkColor: "text-slate-800", });
const router = useRouter();
const goToGrantDetailView = () => {
router.push(`/grant/${idx}`);
}
return (
<>
<div className='card w-96 bg-base-100 shadow-xl'>
<a href={githubProjectLink}>
<figure className='relative'>
<div className='absolute flex w-full h-full transition-opacity opacity-0 bg-slate-700 hover:opacity-90'>
<button className='m-auto btn btn-secondary' onClick={goToGrantDetailView}>Learn More</button>
</div>
<img className='w-full' src={imageLink} alt='Project image' />
</figure>
</a>
<div
className={"card-body " + textColor}
style={{ background: "yellow" }}
>
<a href={githubProjectLink}>
<h2 id='title' className='card-title mb-1 font-mono'>
{title}
</h2>
</a>
<p id='author' className='mb-3 font-mono text-xs'>
By{" "}
<a className='underline underline-offset-4' href={authorLink}>
{author}
</a>
</p>
<p id='description' className={'line-clamp-3 text-opacity-90 ' + textColor}>
{description}
</p>
<div className='card-actions'>
<p className={'font-mono mx-auto text-sm text-right text-opacity-90 '+textColor}>
<p className={'text-xl text-left font-semibold color-green '+textColor}>${roundedAmtRaised}</p>
Raised from <strong>{numDonors}</strong> supporters
</p>
<button className='m-auto btn btn-primary'>Donate</button>
</div>
</div>
</div>
</>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/TransactionSeries.tsx
|
import React from 'react';
import { TransactionDetail } from "../constants/types"
type Props = {
transactionsList: Array<TransactionDetail>
}
export default function TransactionSeries({ transactionsList }: Props) {
return (
<>
<div>
{transactionsList.length > 0 && transactionsList.map((transaction, num) => (
<div key={'transaction-' + num} className='flex my-5'>
<div className='mr-5'>
{transaction.isCompleted ? (
<div className='h-7 w-7 bg-sky-500 flex justify-center items-center rounded-full'>
<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1 6L4.1875 11L9.5 1" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</div>
) : (
<div className='w-7 h-7 rounded-full animate-spin loading-spinner-gradients'></div>
)}
</div>
<p className='text-xl'>{transaction.info}</p>
</div>
))}
</div>
</>
);
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/DonateSol.tsx
|
import { BN, AnchorError } from "@project-serum/anchor";
import { Connection, LAMPORTS_PER_SOL } from "@solana/web3.js";
import { processed, DEVNET_API } from "../constants";
import React, { useState } from "react";
import { makeDonation } from "transactions";
import { notify } from "../utils/notifications";
import { DonationChart } from "./DonationChart";
import Modal from "./Modal";
import { useWallet } from "@solana/wallet-adapter-react";
import getProvider from "../instructions/api/getProvider";
import getProgram from "instructions/api/getProgram";
import { toastError, toastSuccess } from "./Toast";
export default function DonateSol({ setpreview, grantPDA, setRaisedSol }) {
const [donation, setDonation] = useState(0);
const [loading, setLoading] = useState(false);
const wallet = useWallet();
const handleSubmit = async () => {
if (!donation || donation <= 0) {
return toastError("Please enter a valid amount");
}
setLoading(true);
const provider = getProvider(wallet);
const program = getProgram(provider);
const lamports = donation * LAMPORTS_PER_SOL;
try {
const sig = await makeDonation(
program,
wallet?.publicKey,
grantPDA,
new BN(lamports)
);
console.log("successful donation: " + sig);
toastSuccess("Donation successful, transaction signature: " + sig);
const newBalance = await provider.connection.getBalance(grantPDA);
setRaisedSol((newBalance / LAMPORTS_PER_SOL).toFixed(0));
} catch (e) {
if (e instanceof AnchorError) {
console.log(e);
const err: AnchorError = e;
toastError(err.error.errorMessage);
} else {
toastError("Something went wrong! Please try again later");
}
}
setLoading(false);
setpreview(false);
};
return (
<>
<Modal
setpreview={setpreview}
showCloseButton={true}
classNameForModalBoxStyling={"donatebox"}
id={"donate"}
>
<h1 className='text-[3rem] text-center font-extrabold mb-[2rem]'>
Lets Get Funding!
</h1>
<div className='mb-8 grant-main'>
<div className='bg-solana-purple/50 ml-[3rem] rounded-tl-[6.875rem] rounded-bl-[6.875rem] items-center p-[2.5rem] space-y-4 justify-end'>
<div className='flex flex-col items-center hidden space-y-4'>
<div className='form-control'>
<label className='input-group'>
<span>Donate</span>
<input
className='w-32 input input-sm input-bordered'
type='number'
placeholder='10'
onChange={(e) =>
setDonation(Number.parseFloat(e.target.value))
}
min={0}
/>
<span>SOL</span>
</label>
</div>
<div className='form-control'>
<label className='input-group'>
<span>Grant gets</span>
<input
type='number'
placeholder='10'
disabled
className='w-32 input input-sm input-bordered'
/>
<span>SOL</span>
</label>
</div>
</div>
<div className='flex justify-evenly'>
<div className='flex items-center justify-end space-x-2'>
<label htmlFor='you-donate'>You donate:</label>
<input
className='w-24 input input-sm'
placeholder='0'
type='number'
min={0}
name='you-donate'
onChange={(e) =>
setDonation(Number.parseFloat(e.target.value))
}
/>
</div>
<div className='flex items-center justify-end space-x-2'>
<label htmlFor='grant-gets'>Grant gets:</label>
<input
type='number'
name='grant-gets'
disabled
className='w-24 input input-sm'
value={donation * 2}
/>
</div>
</div>
<br />
<DonationChart matchRatio={(x) => x} donation={donation} />
<div className="flex justify-center modal-action">
{loading ? (
<div className='w-3 h-3 ml-2 rounded-full animate-spin loading-spinner-gradients'></div>
) : (
<button
className="btn bg-[#14F195] decoration-[#000] rounded-[20px] w-[210px] h-[38px]"
onClick={handleSubmit}
>
<h1 className="grantbuttonname">Donate</h1>
</button>
)}
</div>
</div>
</div>
</Modal>
</>
);
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/AppBar.tsx
|
import {FC, useState} from 'react';
import {WalletMultiButton} from "@solana/wallet-adapter-react-ui";
import Link from "next/link";
import {useSession, signIn, signOut} from 'next-auth/react';
import ProfileMenu from "./common/profile-menu";
export const AppBar: FC = props => {
const [isOpen, setIsOpen] = useState(false);
const {data: session} = useSession()
return (
<div>
<div className="navbar bg-transparent">
<Link href='/'>
<a className="navbar-start">
<img src='/images/solana-logo.png' className='ml-4' width={36} />
<p className="normal-case text-2xl pl-3"><b>GRANTS</b></p>
</a>
</Link>
<div className="navbar-center hidden lg:flex">
<ul className="menu menu-horizontal p-0">
<li><Link href='/explore'><a>Explore</a></Link></li>
<li><Link href='/create-grant'>Create Grant</Link></li>
</ul>
</div>
<div className="mr-2 flex navbar-end lg:hidden">
<button
onClick={() => setIsOpen(!isOpen)}
type="button"
className="bg-gray-900 inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white"
aria-controls="mobile-menu"
aria-expanded="false"
>
<span className="sr-only">Open main menu</span>
{!isOpen ? (
<svg
className="block h-6 w-6"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
aria-hidden="true"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M4 6h16M4 12h16M4 18h16"
/>
</svg>
) : (
<svg
className="block h-6 w-6"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
aria-hidden="true"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M6 18L18 6M6 6l12 12"
/>
</svg>
)}
</button>
</div>
<div className="navbar-end hidden lg:flex">
<div className='mr-4'>
<ProfileMenu/>
</div>
</div>
<div className="lg:hidden">
<ProfileMenu/>
</div>
{isOpen && (
<div className="lg:hidden bg-black">
<div className="px-2 pt-2 pb-3 space-y-1 sm:px-3">
<ul className="menu p-0 flex items-center">
<li><Link href='/explore'><a>Explore</a></Link></li>
<li><Link href='/create-grant'>Create Grant</Link></li>
</ul>
</div>
</div>
)}
</div>
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/markdownConvert.tsx
|
import React, {Component} from 'react';
import {marked} from 'marked';
type InputProps = {
hide?: boolean;
value: string;
handleChange: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
readOnly: boolean;
}
type InputState = {
value: string
}
/********* Input component **********
************************************/
export class Input extends React.Component<InputProps, InputState> {
constructor(props) {
super(props);
}
render() {
return (
<div className="container">
<div className="row">
<div className={`col-md-6 col-xs-12 ${this.props.hide ? 'hidden' : ''}`}>
<textarea rows={10}
className="p-1 px-2 form-control appearance-none outline-none w-full "
name="description"
readOnly={this.props.readOnly}
value={this.props.value} onChange={this.props.handleChange}/>
</div>
<Previewer value={this.props.value} hide={this.props.hide}/>
</div>
</div>
);
}
}
/**********Previewer Component ************
*****************************************/
export class Previewer extends React.Component<{ hide, value }, { }> {
createMarkup() {
return {
__html: marked(this.props.value)
}
}
render() {
return (
<div className={`prose prose-code:text-black ${this.props.hide ? '' : 'hidden'}`}>
<div dangerouslySetInnerHTML={this.createMarkup()}></div>
</div>
);
}
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/ExploreCard.tsx
|
import { useState } from "react";
import { contrastColor } from "contrast-color";
import { BN } from "@project-serum/anchor";
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
import { useRouter } from "next/router";
import { DEFAULT_GRANT_HEADER_IMAGE } from "../constants";
export interface ExploreCardProps {
imageLink: string;
title: string;
author: string;
authorLink: string;
about: string;
githubProjectLink: string;
numDonors: number;
lamportsRaised: BN | number;
idx: number;
}
/**
* A card to show a description of a project in the explorer view.
* @param bgColor is expected to be taken from the image, ideally provided by the backend
*/
export const ExploreCard = ({
imageLink,
title,
author,
authorLink,
about,
githubProjectLink,
numDonors,
lamportsRaised,
idx
}: ExploreCardProps) => {
const roundedAmtRaised = (lamportsRaised as number / LAMPORTS_PER_SOL).toFixed(3);
const textColor = contrastColor({ bgColor: "yellow", fgLightColor: "text-slate-200", fgDarkColor: "text-slate-800", });
const router = useRouter();
const [image, setImage] = useState(imageLink);
const goToGrantDetailView = () => {
router.push(`/grant/${idx}`);
}
return (
<>
<div className='shadow-xl card w-96 bg-base-100'>
<a href={githubProjectLink}>
<figure className='relative'>
<div className='absolute flex w-full h-full transition-opacity opacity-0 bg-slate-700 hover:opacity-90'>
<button
className='m-auto btn btn-secondary'
onClick={goToGrantDetailView}
>
Learn More
</button>
</div>
<img
className='w-full'
onError={() => {
setImage(DEFAULT_GRANT_HEADER_IMAGE);
}}
src={image}
alt='Project image'
/>
</figure>
</a>
<div
className={"card-body " + textColor}
style={{ background: "yellow" }}
>
<a href={githubProjectLink}>
<h2 id='title' className='mb-1 font-mono card-title'>
{title}
</h2>
</a>
<p id='author' className='flex mb-3 font-mono text-xs'>
By{" "}
{author ? (
<a
className='ml-2 underline underline-offset-4'
href={authorLink}
>
{author}
</a>
) : (
<div className='w-3 h-3 ml-2 rounded-full animate-spin loading-spinner-gradients'></div>
)}
</p>
<p id='about' className={"line-clamp-3 text-opacity-90 " + textColor}>
{about}
</p>
<div className='card-actions'>
<p
className={
"font-mono mx-auto text-sm text-right text-opacity-90 " +
textColor
}
>
<p
className={
"text-xl text-left font-semibold color-green " + textColor
}
>
◎{roundedAmtRaised} SOL
</p>
Raised from <strong>{numDonors}</strong> supporters
</p>
<button className='m-auto btn btn-primary'>Donate</button>
</div>
</div>
</div>
</>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/SendTransaction.tsx
|
import { useConnection, useWallet } from '@solana/wallet-adapter-react';
import { Keypair, SystemProgram, Transaction, TransactionSignature } from '@solana/web3.js';
import { FC, useCallback } from 'react';
import { notify } from "../utils/notifications";
export const SendTransaction: FC = () => {
const { connection } = useConnection();
const { publicKey, sendTransaction } = useWallet();
const onClick = useCallback(async () => {
if (!publicKey) {
notify({ type: 'error', message: `Wallet not connected!` });
console.log('error', `Send Transaction: Wallet not connected!`);
return;
}
let signature: TransactionSignature = '';
try {
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: publicKey,
toPubkey: Keypair.generate().publicKey,
lamports: 1_000_000,
})
);
signature = await sendTransaction(transaction, connection);
await connection.confirmTransaction(signature, 'confirmed');
notify({ type: 'success', message: 'Transaction successful!', txid: signature });
} catch (error: any) {
notify({ type: 'error', message: `Transaction failed!`, description: error?.message, txid: signature });
console.log('error', `Transaction failed! ${error?.message}`, signature);
return;
}
}, [publicKey, notify, connection, sendTransaction]);
return (
<div>
<button
className="group w-60 m-2 btn animate-pulse disabled:animate-none bg-gradient-to-r from-[#9945FF] to-[#14F195] hover:from-pink-500 hover:to-yellow-500 ... "
onClick={onClick} disabled={!publicKey}
>
<div className="hidden group-disabled:block ">
Wallet not connected
</div>
<span className="block group-disabled:hidden" >
Send Transaction
</span>
</button>
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/WalletConnection.tsx
|
export default function WalletConnection() {
return (
<>
<div className='absolute w-48 h-33 bg-[#FFB413] ml-56 mt-8 p-3 btn btn-ghost bg-yellow-500 hover:bg-yellow-600 px-7 rounded-md' >
<button className="absolute font-extrabold" ><h1>Connect Wallet</h1></button>
</div>
</>
);
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/Notification.tsx
|
import { useEffect, useState } from 'react'
import {
CheckCircleIcon,
InformationCircleIcon,
XCircleIcon,
} from '@heroicons/react/outline'
import { XIcon } from '@heroicons/react/solid'
import useNotificationStore from '../stores/useNotificationStore'
import { useConnection } from '@solana/wallet-adapter-react';
import { getExplorerUrl } from '../utils/explorer'
const NotificationList = () => {
const { notifications, set: setNotificationStore } = useNotificationStore(
(s) => s
)
const reversedNotifications = [...notifications].reverse()
return (
<div
className={`z-20 fixed inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6`}
>
<div className={`flex flex-col w-full`}>
{reversedNotifications.map((n, idx) => (
<Notification
key={`${n.message}${idx}`}
type={n.type}
message={n.message}
description={n.description}
txid={n.txid}
onHide={() => {
setNotificationStore((state: any) => {
const reversedIndex = reversedNotifications.length - 1 - idx;
state.notifications = [
...notifications.slice(0, reversedIndex),
...notifications.slice(reversedIndex + 1),
];
});
}}
/>
))}
</div>
</div>
);
}
const Notification = ({ type, message, description, txid, onHide }) => {
const { connection } = useConnection();
// TODO: we dont have access to the network or endpoint here..
// getExplorerUrl(connection., txid, 'tx')
// Either a provider, context, and or wallet adapter related pro/contx need updated
useEffect(() => {
const id = setTimeout(() => {
onHide()
}, 8000);
return () => {
clearInterval(id);
};
}, [onHide]);
return (
<div
className={`max-w-sm w-full bg-bkg-1 shadow-lg rounded-md mt-2 pointer-events-auto ring-1 ring-black ring-opacity-5 p-2 mx-4 mb-12 overflow-hidden`}
>
<div className={`p-4`}>
<div className={`flex items-center`}>
<div className={`flex-shrink-0`}>
{type === 'success' ? (
<CheckCircleIcon className={`h-8 w-8 mr-1 text-green`} />
) : null}
{type === 'info' && <InformationCircleIcon className={`h-8 w-8 mr-1 text-red`} />}
{type === 'error' && (
<XCircleIcon className={`h-8 w-8 mr-1`} />
)}
</div>
<div className={`ml-2 w-0 flex-1`}>
<div className={`font-bold text-fgd-1`}>{message}</div>
{description ? (
<p className={`mt-0.5 text-sm text-fgd-2`}>{description}</p>
) : null}
{txid ? (
<div className="flex flex-row">
<a
href={'https://explorer.solana.com/tx/' + txid + `?cluster=devnet`}
target="_blank"
rel="noreferrer"
className="flex flex-row link link-accent"
>
<svg className="flex-shrink-0 h-4 ml-2 mt-0.5 text-primary-light w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" ><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>
<div className="flex mx-4">{txid.slice(0, 8)}...
{txid.slice(txid.length - 8)}
</div>
</a>
</div>
) : null}
</div>
<div className={`ml-4 flex-shrink-0 self-start flex`}>
<button
onClick={() => onHide()}
className={`bg-bkg-2 default-transition rounded-md inline-flex text-fgd-3 hover:text-fgd-4 focus:outline-none`}
>
<span className={`sr-only`}>Close</span>
<XIcon className="h-5 w-5" />
</button>
</div>
</div>
</div>
</div>
)
}
export default NotificationList
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/grant_stats.tsx
|
import React from 'react';
import {Provider} from "@project-serum/anchor";
import CountUp from 'react-countup';
import VisibilitySensor from 'react-visibility-sensor';
let grantStats = [
{
id: '1',
text: 'Grants Created',
number: 169,
}, {
id: '2',
text: 'Grants Matched',
number: 135,
}, {
id: '3',
text: 'Grants Released',
number: 102,
}, {
id: '4',
text: 'SOL Donated',
number: 1092,
}
];
const GrantStats = () => {
return (
<>
{grantStats.map(
({
id,
text,
number,
}) => (
<div className="carousel-item" key={id}>
<div
className='slide-content flex justify-center text-2xl items-center w-52 h-56 m-4 bg-cyan-300 rounded-xl'>
<div className='flex flex-col text-center font-bold text-purple-700'>
<CountUp end={number}>
{({countUpRef, start}) => (
<VisibilitySensor onChange={start} delayedCall>
<span ref={countUpRef}/>
</VisibilitySensor>
)}
</CountUp>
<div className="text-black">
{`${text}`}
</div>
</div>
</div>
</div>
),
)}
</>
);
};
export default GrantStats;
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/Modal.tsx
|
import React from "react";
type ModalProps = {
setpreview: (preview: boolean) => void;
classNameForModalBoxStyling?: string;
showCloseButton: boolean;
children: any;
id: string;
};
export default function Modal({
setpreview,
classNameForModalBoxStyling,
showCloseButton,
id,
children,
}: ModalProps) {
return (
<>
<div className="modal " id={id}>
<div className={`modal-box ${classNameForModalBoxStyling || ""}`}>
{showCloseButton && (
<button
className="btn btn-sm btn-circle absolute right-2 top-2"
onClick={() => setpreview(false)}
>
✕
</button>
)}
{children}
</div>
</div>
</>
);
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/SignMessage.tsx
|
// TODO: SignMessage
import { useWallet } from '@solana/wallet-adapter-react';
import bs58 from 'bs58';
import { FC, useCallback } from 'react';
import { sign } from 'tweetnacl';
import { notify } from "../utils/notifications";
export const SignMessage: FC = () => {
const { publicKey, signMessage } = useWallet();
const onClick = useCallback(async () => {
try {
// `publicKey` will be null if the wallet isn't connected
if (!publicKey) throw new Error('Wallet not connected!');
// `signMessage` will be undefined if the wallet doesn't support it
if (!signMessage) throw new Error('Wallet does not support message signing!');
// Encode anything as bytes
const message = new TextEncoder().encode('Hello, world!');
// Sign the bytes using the wallet
const signature = await signMessage(message);
// Verify that the bytes were signed using the private key that matches the known public key
if (!sign.detached.verify(message, signature, publicKey.toBytes())) throw new Error('Invalid signature!');
notify({ type: 'success', message: 'Sign message successful!', txid: bs58.encode(signature) });
} catch (error: any) {
notify({ type: 'error', message: `Sign Message failed!`, description: error?.message });
console.log('error', `Sign Message failed! ${error?.message}`);
}
}, [publicKey, notify, signMessage]);
return (
<div>
<button
className="group w-60 m-2 btn animate-pulse disabled:animate-none bg-gradient-to-r from-[#9945FF] to-[#14F195] hover:from-pink-500 hover:to-yellow-500 ... "
onClick={onClick} disabled={!publicKey}
>
<div className="hidden group-disabled:block">
Wallet not connected
</div>
<span className="block group-disabled:hidden" >
Sign Message
</span>
</button>
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/Toast.tsx
|
import { ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
const Toast = () => {
return (
<ToastContainer
position="bottom-left"
autoClose={2500}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
/>
)
}
export const toastInfo = (message: string) => {
toast.info(message, {
position: "bottom-left",
autoClose: 2500,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
theme: "colored"
});
}
export const toastError = (message: string) => {
toast.error(message, {
position: "bottom-left",
autoClose: 2500,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
theme: "colored"
});
}
export const toastSuccess = (message: string) => {
toast.success(message, {
position: "bottom-left",
autoClose: 2500,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
theme: "colored"
});
}
export default Toast;
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/RequestAirdrop.tsx
|
import { useConnection, useWallet } from '@solana/wallet-adapter-react';
import { LAMPORTS_PER_SOL, TransactionSignature } from '@solana/web3.js';
import { FC, useCallback } from 'react';
import { notify } from "../utils/notifications";
import useUserSOLBalanceStore from '../stores/useUserSOLBalanceStore';
export const RequestAirdrop: FC = () => {
const { connection } = useConnection();
const { publicKey } = useWallet();
const { getUserSOLBalance } = useUserSOLBalanceStore();
const onClick = useCallback(async () => {
if (!publicKey) {
console.log('error', 'Wallet not connected!');
notify({ type: 'error', message: 'error', description: 'Wallet not connected!' });
return;
}
let signature: TransactionSignature = '';
try {
signature = await connection.requestAirdrop(publicKey, LAMPORTS_PER_SOL);
await connection.confirmTransaction(signature, 'confirmed');
notify({ type: 'success', message: 'Airdrop successful!', txid: signature });
getUserSOLBalance(publicKey, connection);
} catch (error: any) {
notify({ type: 'error', message: `Airdrop failed!`, description: error?.message, txid: signature });
console.log('error', `Airdrop failed! ${error?.message}`, signature);
}
}, [publicKey, connection, getUserSOLBalance]);
return (
<div>
<button
className="px-8 m-2 btn animate-pulse bg-gradient-to-r from-[#9945FF] to-[#14F195] hover:from-pink-500 hover:to-yellow-500 ..."
onClick={onClick}
>
<span>Airdrop 1 </span>
</button>
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/components/DonationChart.tsx
|
import { FC } from "react";
import {
Chart as ChartJS,
CategoryScale,
LinearScale,
PointElement,
LineElement,
Title,
Filler,
Legend,
} from "chart.js";
import { Line } from "react-chartjs-2";
ChartJS.register(
CategoryScale,
LinearScale,
PointElement,
LineElement,
Title,
Filler,
Legend
);
ChartJS.defaults.color = "#DDDDDD";
const options = {
responsive: true,
aspectRatio: 1,
scales: {
y: {
title: {
display: true,
text: "Matched",
min: 0,
},
},
x: {
title: {
display: true,
text: "Donated",
},
},
},
plugins: {
legend: {
display: false,
position: "top" as const,
},
title: {
display: false,
text: "Matching Donation",
},
},
};
export const DonationChart: FC<{
donation: number;
matchRatio: (x: number) => number;
/** A normal expected donation, if the donation is higher than this, the graph will adapt the scale */
stdDonation?: number;
/** A percentage of the stdDonation that is always going to be blank */
margin?: number;
}> = (props) => {
let gradient: { addColorStop: (arg0: number, arg1: string) => void } =
undefined;
function getGradient(context) {
const chart = context.chart;
const { ctx, chartArea } = chart;
if (!chartArea) {
// This case happens on initial chart load
return;
}
if (!gradient) {
// Create the gradient because this is either the first render
// or the size of the chart has changed
gradient = ctx.createLinearGradient(
0,
chartArea.bottom,
0,
chartArea.top
);
gradient.addColorStop(0, "#9945FF70");
gradient.addColorStop(1, "#14F195");
}
return gradient;
}
const marginRatio = 1 + (props.margin ?? 0.2);
const stdDonation = props.stdDonation ?? 1;
const scaleBase = props.donation < stdDonation ? stdDonation : props.donation;
const resolution = 10;
const step = (scaleBase * marginRatio) / resolution;
const labels = Array.from(
{ length: props.donation > 0 ? resolution : 1 },
(_, i) => Math.round((Number.EPSILON + i * step) * 100) / 100
);
const data = {
labels,
datasets: [
{
label: "Matched",
fill: "start",
data: labels.map((x) =>
x <= props.donation && props.donation > 0 ? props.matchRatio(x) : NaN
),
borderColor: getGradient,
backgroundColor: getGradient,
tension: 0.5,
pointRadius: 0,
},
],
};
return (
<div className="max-w-sm aspect-square text-slate-300">
<Line options={options} data={data} />
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src/components
|
solana_public_repos/solana-grants/app/src/components/common/profile-menu.tsx
|
import {MdContentCopy, MdDone, MdLogout} from 'react-icons/md';
import {TbBrandGithub, TbUser, TbWallet, TbWalletOff} from 'react-icons/tb';
import React, {useRef, useState} from 'react';
import Card from '../common/card';
import Text from '../common/text';
import Button from '../common/button';
import {signIn, signOut, useSession} from 'next-auth/react';
import CustomWalletMultiButton from "./custom-wallet-multi-button";
import {useWallet} from '@solana/wallet-adapter-react';
import DisplayPublicKey from "../../utils/displayPubKey";
import copyText from "../../utils/copyContent";
const ProfileMenu = () => {
const buttonRef = useRef();
const session = useSession();
const [menuOpen, setMenuOpen] = useState(false);
const {wallet, publicKey, connected} = useWallet();
const onProfileClick = async () => {
if (session?.data) {
await signOut();
} else {
await signIn('github');
}
};
return (
<>
<div className="dropdown-end dropdown">
<label tabIndex={0}>
<div className="flex flex-row items-center gap-3">
<Button
className="hover:bg-[#14F195] border-[#9945FF]"
variant={'transparent'}
textColorVariant={'white'}
icon={TbUser}
onClick={() => setMenuOpen(!menuOpen)}
ref={buttonRef}
/>
</div>
</label>
<Card
tabIndex={0}
className="bg-opacity-85 dropdown-content mt-3 block w-[calc(100vw-3rem)]
bg-[#052C29]
sm:w-80"
>
<div className="flex flex-col gap-4 p-5">
<div className="flex items-center justify-between">
<div className="flex w-full flex-col gap-1">
<Text
variant="label"
className="text-secondary font-bold text-[#14F195]"
>
{' '}
Profile{' '}
</Text>
<Text
variant="nav-heading"
className={`${session?.data} font-semi-bold text-[#14F195]`}
>
{session?.data ? ('Signed in') : "Sign in with GitHub"}
</Text>
{session?.data ? (
<div className="flex gap-3">
<img
className='justify-self-center w-12 h-12 rounded-full'
src={session?.data?.user?.image}
alt='github profile picture'
/>
<Button
text={'Sign out'}
icon={TbBrandGithub}
className="!w-full text-black font-bold hover:bg-[#9945FF] bg-[#14F195] border-2 border-[#9945FF] hover:border-[#14F195]"
onClick={onProfileClick}
/>
</div>
) : (
<>
<Text
variant="label"
className="!normal-case text-white pb-1">
Informative text about enhanced
experience, public profile.
</Text>
<Button
text={'Sign in'}
icon={MdLogout}
className="!w-full text-black font-bold hover:bg-[#9945FF] bg-[#14F195] border-2 border-[#9945FF] hover:border-[#14F195]"
onClick={onProfileClick}
/>
</>
)}
</div>
</div>
</div>
<div className="h-px w-full bg-line"/>
<div className="flex flex-col gap-3 p-5">
<div className="flex items-center justify-between">
<div className="flex w-full flex-col gap-1">
<Text
variant="label"
className="text-secondary font-bold text-[#9945FF]"
>
{' '}
Wallet{' '}
</Text>
<Text variant="nav-heading"
className="font-semi-bold text-[#9945FF] pb-1">
{connected
? wallet.adapter.name
: 'Connect your crypto wallet'}
</Text>
{!connected ? (
<>
<Text
variant="label"
className="!normal-case text-white"
>
Informative text about enhanced
experience, public profile.
</Text>
</>
) : (
<div className='flex'>
<CustomWalletMultiButton
text={DisplayPublicKey(publicKey)}
connected={connected}
disabled={true}
className="w-full text-black gap-1 mr-2"
/>
<Button
text={'Copy'}
icon={MdContentCopy}
variant={"transparent"}
className="w-full text-black font-bold hover:bg-[#9945FF] bg-[#14F195] gap-1 border-[#9945FF] hover:border-[#14F195]"
onClick={async () => {
await copyText(publicKey.toBase58())
}}
/>
</div>
)}
</div>
{connected && <TbWallet size={25}/>}
</div>
{connected
? <CustomWalletMultiButton
text={"Disconnect"}
icon={TbWalletOff}
variant="transparent"
connected={connected}
className="!w-full text-black bg-[#9945FF]"
/>
: <CustomWalletMultiButton
text={connected ? 'Disconnect' : 'Connect'}
icon={connected ? TbWalletOff : TbWallet}
variant="transparent"
connected={connected}
className="!w-full text-black bg-[#9945FF]"
/>}
</div>
</Card>
</div>
<input type="checkbox" id="wallet-modal" className="modal-toggle"/>
</>
);
};
export default ProfileMenu;
| 0
|
solana_public_repos/solana-grants/app/src/components
|
solana_public_repos/solana-grants/app/src/components/common/card.tsx
|
import React from 'react';
import { cn } from '../../utils/';
/**
* Properties for a card component.
*/
type CardProps = {
className?: string;
children?: React.ReactNode;
tabIndex?: number;
blur?: boolean;
border?: boolean;
};
/**
* Definition of a card component,the main purpose of
* which is to neatly display information. Can be both
* interactive and static.
*
* @param className Custom classes to be applied to the element.
* @param children Child elements to be rendered within the component.
* @param tabIndex
* @param border
* @param blur Whether or not to apply a blur-effect.
*/
const Card = ({
className,
children,
tabIndex,
border = true,
blur = true,
}: CardProps) => (
<div
className={cn(
className,
border && 'border border-white',
blur && ' bg-base bg-opacity-70 backdrop-blur-lg firefox:bg-opacity-90',
'rounded-3xl text-white',
)}
tabIndex={tabIndex}
>
{children}
</div>
);
export default Card;
| 0
|
solana_public_repos/solana-grants/app/src/components
|
solana_public_repos/solana-grants/app/src/components/common/footer.tsx
|
import { FC, useState } from "react";
export const Footer: FC = () => {
const [showDropdown, setshowDropdown] = useState(false);
const onClickDropdown = () => {
if (showDropdown === true) {
setshowDropdown(false);
} else {
setshowDropdown(true);
}
};
return (
<footer className="relative w-full px-20 py-8 text-center lg:text-left overflow-clip md:text-left">
<div className="absolute right-0 -z-10">
<svg
width="1600"
height="633"
viewBox="0 0 1400 633"
xmlns="http://www.w3.org/2000/svg"
>
<path
opacity=".25"
d="M220.205 297.019c-25.528 15.079-48.068 34.499-65.456 58.871-93.31 130.789-377.638 580.463 1.725 734.08 262.311 106.23 1105.006 237.64 1487.626-38.84 92.06-66.52 8.18-534.506-47.74-798.399-22.87-107.948-112.68-186.889-219.63-197.154L812.019 1.376C760.896-3.531 709.816 7.81 665.72 33.857L220.205 297.02Z"
fill="url(#a)"
/>
<defs>
<linearGradient
id="a"
x1="-378.062"
y1="685.433"
x2="125.035"
y2="-766.8"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#9945FF" />
<stop offset="1" stopColor="#14F195" />
</linearGradient>
</defs>
</svg>
</div>
<div className="flex flex-col items-center w-full gap-8 my-6 md:items-baseline md:flex-row justify-evenly">
<div className="flex-initial max-w-md">
<h6 className="flex items-center justify-center mb-4 font-bold uppercase text-thistle font-montserrat md:justify-start">
<div className="mr-2">
<svg
className="w-[80%] xl:w-[100%]"
width="100%"
height="30"
viewBox="0 0 101 88"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M100.48 69.3817L83.8068 86.8015C83.4444 87.1799 83.0058 87.4816 82.5185 87.6878C82.0312 87.894 81.5055 88.0003 80.9743 88H1.93563C1.55849 88 1.18957 87.8926 0.874202 87.6912C0.558829 87.4897 0.31074 87.2029 0.160416 86.8659C0.0100923 86.529 -0.0359181 86.1566 0.0280382 85.7945C0.0919944 85.4324 0.263131 85.0964 0.520422 84.8278L17.2061 67.408C17.5676 67.0306 18.0047 66.7295 18.4904 66.5234C18.9762 66.3172 19.5002 66.2104 20.0301 66.2095H99.0644C99.4415 66.2095 99.8104 66.3169 100.126 66.5183C100.441 66.7198 100.689 67.0067 100.84 67.3436C100.99 67.6806 101.036 68.0529 100.972 68.415C100.908 68.7771 100.737 69.1131 100.48 69.3817ZM83.8068 34.3032C83.4444 33.9248 83.0058 33.6231 82.5185 33.4169C82.0312 33.2108 81.5055 33.1045 80.9743 33.1048H1.93563C1.55849 33.1048 1.18957 33.2121 0.874202 33.4136C0.558829 33.6151 0.31074 33.9019 0.160416 34.2388C0.0100923 34.5758 -0.0359181 34.9482 0.0280382 35.3103C0.0919944 35.6723 0.263131 36.0083 0.520422 36.277L17.2061 53.6968C17.5676 54.0742 18.0047 54.3752 18.4904 54.5814C18.9762 54.7875 19.5002 54.8944 20.0301 54.8952H99.0644C99.4415 54.8952 99.8104 54.7879 100.126 54.5864C100.441 54.3849 100.689 54.0981 100.84 53.7612C100.99 53.4242 101.036 53.0518 100.972 52.6897C100.908 52.3277 100.737 51.9917 100.48 51.723L83.8068 34.3032ZM1.93563 21.7905H80.9743C81.5055 21.7907 82.0312 21.6845 82.5185 21.4783C83.0058 21.2721 83.4444 20.9704 83.8068 20.592L100.48 3.17219C100.737 2.90357 100.908 2.56758 100.972 2.2055C101.036 1.84342 100.99 1.47103 100.84 1.13408C100.689 0.79713 100.441 0.510296 100.126 0.308823C99.8104 0.107349 99.4415 1.24074e-05 99.0644 0L20.0301 0C19.5002 0.000878397 18.9762 0.107699 18.4904 0.313848C18.0047 0.519998 17.5676 0.821087 17.2061 1.19848L0.524723 18.6183C0.267681 18.8866 0.0966198 19.2223 0.0325185 19.5839C-0.0315829 19.9456 0.0140624 20.3177 0.163856 20.6545C0.31365 20.9913 0.561081 21.2781 0.875804 21.4799C1.19053 21.6817 1.55886 21.7896 1.93563 21.7905Z"
fill="url(#paint0_linear_174_4403)"
/>
<defs>
<linearGradient
id="paint0_linear_174_4403"
x1="8.52558"
y1="90.0973"
x2="88.9933"
y2="-3.01622"
gradientUnits="userSpaceOnUse"
>
<stop offset="0.08" stopColor="#9945FF" />
<stop offset="0.3" stopColor="#8752F3" />
<stop offset="0.5" stopColor="#5497D5" />
<stop offset="0.6" stopColor="#43B4CA" />
<stop offset="0.72" stopColor="#28E0B9" />
<stop offset="0.97" stopColor="#19FB9B" />
</linearGradient>
</defs>
</svg>
</div>
<p className="text-xl font-bold text-white cursor-default font-quantico xl:text-3xl ">
GRANTS
</p>
</h6>
<p className="text-sm text-justify lg:text-base">
Solana Grants seeks to distribute the wealth of foundations to individual projects based on the traction that they have. Funding them together in a democratic fashion rewards the projects in relation to their usage.
</p>
</div>
<div className="flex-initial max-w-md text-sm lg:text-base">
<h6 className="flex justify-center mb-4 text-base font-bold uppercase text-thistle font-montserrat md:justify-start">
Community
</h6>
<p className="mb-4">
<a href="#" className="text-white">
Join on discord
</a>
</p>
<p className="mb-4">
<a href="#" className="text-white">
Follow on twitter
</a>
</p>
</div>
<div className="hidden text-sm lg:text-base">
<h6 className="flex justify-center mb-4 text-base font-bold uppercase text-thistle font-montserrat md:justify-start">
Services
</h6>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Donec dignissim
</a>
</p>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Curabitur egestas
</a>
</p>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Donec dignissim
</a>
</p>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Curabitur egestas
</a>
</p>
</div>
<div className="hidden text-sm lg:text-base">
<h6 className="flex justify-center mb-4 text-base font-bold uppercase text-thistle font-montserrat md:justify-start">
resources
</h6>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Donec dignissim
</a>
</p>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Curabitur egestas
</a>
</p>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Donec dignissim
</a>
</p>
<p className="mb-4">
<a href="components/common/Footer#" className="text-white">
Curabitur egestas
</a>
</p>
</div>
<div className="hidden">
<button
id="dropdownDefault"
data-dropdown-toggle="dropdown"
className="text-white hover:bg-gray-600 border-magenta font-montserrat font-bold rounded-md text-md py-2.5 pl-2 inline-flex items-center border dark:hover:bg-gray-600 dark:focus:ring-blue-800"
type="button"
onClick={() => {
onClickDropdown();
}}
>
<svg
width="24"
height="24"
xmlns="http://www.w3.org/2000/svg"
fillRule="evenodd"
className="mr-2 fill-white"
clipRule="evenodd"
>
<path d="M12.02 0c6.614.011 11.98 5.383 11.98 12 0 6.623-5.376 12-12 12-6.623 0-12-5.377-12-12 0-6.617 5.367-11.989 11.981-12h.039zm3.694 16h-7.427c.639 4.266 2.242 7 3.713 7 1.472 0 3.075-2.734 3.714-7m6.535 0h-5.523c-.426 2.985-1.321 5.402-2.485 6.771 3.669-.76 6.671-3.35 8.008-6.771m-14.974 0h-5.524c1.338 3.421 4.34 6.011 8.009 6.771-1.164-1.369-2.059-3.786-2.485-6.771m-.123-7h-5.736c-.331 1.166-.741 3.389 0 6h5.736c-.188-1.814-.215-3.925 0-6m8.691 0h-7.685c-.195 1.8-.225 3.927 0 6h7.685c.196-1.811.224-3.93 0-6m6.742 0h-5.736c.062.592.308 3.019 0 6h5.736c.741-2.612.331-4.835 0-6m-12.825-7.771c-3.669.76-6.671 3.35-8.009 6.771h5.524c.426-2.985 1.321-5.403 2.485-6.771m5.954 6.771c-.639-4.266-2.242-7-3.714-7-1.471 0-3.074 2.734-3.713 7h7.427zm-1.473-6.771c1.164 1.368 2.059 3.786 2.485 6.771h5.523c-1.337-3.421-4.339-6.011-8.008-6.771" />
</svg>
<p className="text-sm xl:text-base">English - En</p>
<svg
className="w-8 h-4 ml-2 xl:w-10 xl:ml-5"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M19 9l-7 7-7-7"
/>
</svg>
</button>
{showDropdown && (
<div
id="dropdown"
className="z-10 w-full bg-gray-600 divide-y divide-gray-100 rounded shadow dark:bg-gray-700"
>
<ul
className="py-1 text-sm text-gray-700 dark:text-gray-200"
aria-labelledby="dropdownDefault"
>
<li>
<a
href="components/common/Footer#"
className="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
>
Dashboard
</a>
</li>
<li>
<a
href="components/common/Footer#"
className="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
>
Settings
</a>
</li>
<li>
<a
href="components/common/Footer#"
className="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
>
Earnings
</a>
</li>
<li>
<a
href="components/common/Footer#"
className="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
>
Sign out
</a>
</li>
</ul>
</div>
)}
</div>
</div>
</footer>
);
};
| 0
|
solana_public_repos/solana-grants/app/src/components
|
solana_public_repos/solana-grants/app/src/components/common/custom-wallet-multi-button.tsx
|
import React from 'react';
import Text from '../common/text';
import {cn} from 'utils';
import {IconType} from 'react-icons';
import {WalletDisconnectButton, WalletMultiButton} from "@solana/wallet-adapter-react-ui";
/**
* props for a button component.
*/
type ButtonProps = {
className?: string;
onClick?: () => void;
variant?:
| 'transparent'
text?: string;
textColorVariant?:
| 'black'
| 'white'
icon?: IconType;
connected: boolean;
disabled?: boolean;
};
const variants = {
transparent: 'bg-transparent border-2',
};
const textColorVariants = {
black: 'text-black',
white: 'text-white',
};
/**
*
* @param variant Variations relating to pre-defined styling of the element
* @param text Text to display in the button.
*/
const CustomWalletMultiButton = ({
className,
onClick,
variant,
textColorVariant,
text: value,
icon,
connected = false,
disabled = false
}: ButtonProps) => (
connected ?
<WalletDisconnectButton
className={cn(
variants[variant],
'flex h-11 max-h-full w-fit items-center justify-center gap-3 whitespace-nowrap rounded-full transition-all',
textColorVariants[textColorVariant],
'hover:!text-black',
'hover:-translate-y-[0.15rem] active:translate-y-[0.025rem] active:scale-[0.975]',
(icon && !value) ? 'aspect-square p-3' : 'px-5 py-3',
className,
)}
onClick={onClick}
disabled={disabled}
>
{icon && React.createElement(icon, {size: 20})}
{value && (
<Text variant='input'>
{value}
</Text>
)}
</WalletDisconnectButton>
:
<WalletMultiButton
className={cn(
variants[variant],
'flex h-11 max-h-full w-fit items-center justify-center gap-3 whitespace-nowrap rounded-full border transition-all',
textColorVariants[textColorVariant],
'hover:!text-black',
'hover:-translate-y-[0.15rem] active:translate-y-[0.025rem] active:scale-[0.975]',
(icon && !value) ? 'aspect-square p-3' : 'px-5 py-3',
className,
)}
onClick={onClick}
disabled={disabled}
>
{icon && React.createElement(icon, {size: 20})}
{value && (
<Text variant='input'>
{value}
</Text>
)}
</WalletMultiButton>
);
export default CustomWalletMultiButton;
| 0
|
solana_public_repos/solana-grants/app/src/components
|
solana_public_repos/solana-grants/app/src/components/common/button.tsx
|
import React from 'react';
import Text from '../common/text';
import {cn} from 'utils';
import {IconType} from 'react-icons';
/**
* props for a button component.
*/
type ButtonProps = {
className?: string;
onClick?: () => void;
variant?:
| 'transparent'
text?: string;
textColorVariant?:
| 'black'
| 'white'
icon?: IconType;
ref?: React.Ref<HTMLButtonElement>;
};
const variants = {
transparent: 'bg-transparent border-2',
};
const textColorVariants = {
black: 'text-black',
white: 'text-white',
};
/**
*
* @param variant Variations relating to pre-defined styling of the element
* @param text Text to display in the button.
*/
const Button = ({
className,
onClick,
ref,
variant,
textColorVariant,
text: value,
icon
}: ButtonProps) => (
<button
className={cn(
variants[variant],
'flex h-11 max-h-full w-fit items-center justify-center gap-3 whitespace-nowrap rounded-full transition-all',
textColorVariants[textColorVariant],
'hover:!text-black',
'hover:-translate-y-[0.15rem] active:translate-y-[0.025rem] active:scale-[0.975]',
(icon && !value) ? 'aspect-square p-3' : 'px-5 py-3',
className,
)}
onClick={onClick}
ref={ref}
>
{icon && React.createElement(icon, {size: 20})}
{value && (
<Text variant='input'>
{value}
</Text>
)}
</button>
);
export default Button;
| 0
|
solana_public_repos/solana-grants/app/src/components
|
solana_public_repos/solana-grants/app/src/components/common/text.tsx
|
import React from 'react';
import Link from 'next/link';
import {cn} from 'utils';
/**
* Properties for a card component.
*/
type TextProps = {
variant:
| 'hero'
| 'big-heading'
| 'heading'
| 'sub-heading'
| 'nav-heading'
| 'nav'
| 'paragraph'
| 'user'
| 'input'
| 'label';
className?: string;
href?: string;
children?: React.ReactNode;
};
/**
* Pre-defined styling, according to agreed-upon design-system.
*/
const variants = {
hero: 'text-4xl font-medium sm:text-6xl',
'big-heading': 'text-4xl font-medium md:text-6xl',
heading: 'text-3xl font-medium',
'sub-heading': 'text-2xl font-medium',
'nav-heading': 'text-lg font-medium sm:text-xl',
nav: 'font-medium',
paragraph: 'text-lg',
user: 'text-base font-medium text-inherit',
input: 'text-sm uppercase tracking-wide',
label: 'text-xs uppercase tracking-wide',
};
/**
* Definition of a card component,the main purpose of
* which is to neatly display information. Can be both
* interactive and static.
*
* @param variant Variations relating to pre-defined styling of the element.
* @param className Custom classes to be applied to the element.
* @param href
* @param children Child elements to be rendered within the component.
*/
const Text = ({variant, className, href, children}: TextProps) => (
<text className={cn(className, variants[variant])}>
{href ? (
<Link href={href}>
<a className="min-w-0 overflow-hidden text-ellipsis whitespace-nowrap">
{children}
</a>
</Link>
) : (
children
)}
</text>
);
export default Text;
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/transactions/cancelGrant.ts
|
import * as anchor from "@project-serum/anchor";
import { encode } from "@project-serum/anchor/dist/cjs/utils/bytes/utf8";
import {
PublicKey,
Transaction,
} from "@solana/web3.js";
import { toBytesInt32 } from "../utils/conversion";
import { Program } from "@project-serum/anchor";
import { GrantsProgram } from "../idl/grants_program";
/**
* Cancels a grant and refunds the money to each of its donors
*
* @param grantPDA The grant's address
* @param admin This function will determine if this key belongs to the
* admin or author and call the appropriate function
*/
export async function cancelGrant(
program: Program<GrantsProgram>,
grantPDA: PublicKey,
admin: PublicKey
) {
const [programInfoPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("program_info")],
program.programId
);
let tx = new Transaction();
// begin with the grant cancellation
tx.add(
await program.methods
.cancelGrantAdmin()
.accounts({
admin: admin,
grant: grantPDA,
programInfo: programInfoPDA,
})
.instruction()
);
// add all donation cancellation instructions to the transaction
tx.add(await refundDonations(program, grantPDA, admin, programInfoPDA));
return tx;
}
/**
* Refunds all donations of a grant to its donors, it needs the grant to be already cancelled
*/
export async function refundDonations(
program: Program<GrantsProgram>,
grantPDA: PublicKey,
admin: PublicKey,
programInfoPDA: PublicKey
) {
let tx = new Transaction();
const grant = await program.account.grant.fetch(grantPDA);
// refund the matcher donation
const [matchingDonationPDA] = await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
const matchingDonation = await program.account.donation.fetch(
matchingDonationPDA
);
const cancelDonationIx = await program.methods
.cancelDonation()
.accounts({
admin: admin,
programInfo: programInfoPDA,
donation: matchingDonationPDA,
payer: matchingDonation.payer,
grant: grantPDA,
})
.instruction();
tx.add(cancelDonationIx);
async function findDonationPDA(grantPDA: PublicKey, donorIndex: number) {
const [donationIndexPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[
encode("donation_index"),
grantPDA.toBuffer(),
toBytesInt32(donorIndex),
],
program.programId
);
const donationIndex = await program.account.link.fetch(donationIndexPDA);
return donationIndex.address;
}
// refund the donor donations
for (let i = 0; i < grant.totalDonors; i++) {
const donationPDA = await findDonationPDA(grantPDA, i);
const donation = await program.account.donation.fetch(donationPDA);
const cancelDonationIx = await program.methods
.cancelDonation()
.accounts({
admin: admin,
programInfo: programInfoPDA,
donation: donationPDA,
payer: donation.payer,
grant: grantPDA,
})
.instruction();
tx.add(cancelDonationIx);
}
return tx;
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/transactions/makeDonation.ts
|
import * as anchor from "@project-serum/anchor";
import { BN, Program } from "@project-serum/anchor";
import { encode } from "@project-serum/anchor/dist/cjs/utils/bytes/utf8";
import { PublicKey } from "@solana/web3.js";
import { toBytesInt32 } from "../utils/conversion";
import { GrantsProgram } from "../idl/grants_program";
export async function makeDonation(
program: Program<GrantsProgram>,
donor: PublicKey,
grantPDA: PublicKey,
lamports: BN
): Promise<string>{
// find the donation PDA
const [donationPDA, _bump0] = await anchor.web3.PublicKey.findProgramAddress(
[encode("donation"), grantPDA.toBuffer(), donor.toBuffer()],
program.programId
);
const [matchingDonationPDA, _bump2] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
const [programInfoPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("program_info")],
program.programId
);
console.log("programInfo: " + programInfoPDA.toString());
// check if the account exists
const donation = await program.account.donation.fetchNullable(donationPDA);
if (donation === null) {
// Create a new donation account
// find the donation index PDA with the latest donor count
const latestDonorCount = (await program.account.grant.fetch(grantPDA))
.totalDonors;
const [donationIndexPDA, _bump1] =
await anchor.web3.PublicKey.findProgramAddress(
[
encode("donation_index"),
grantPDA.toBuffer(),
toBytesInt32(latestDonorCount),
],
program.programId
);
return program.methods
.createDonation(lamports)
.accounts({
payer: donor,
grant: grantPDA,
donation: donationPDA,
donationIndex: donationIndexPDA,
matchingDonation: matchingDonationPDA,
programInfo: programInfoPDA,
})
.rpc();
} else {
// Increment the existing donation
return program.methods
.incrementDonation(lamports)
.accounts({
donation: donationPDA,
payer: donor,
grant: grantPDA,
matchingDonation: matchingDonationPDA,
programInfo: programInfoPDA,
})
.rpc();
}
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/transactions/index.ts
|
export { makeDonation } from "./makeDonation";
export { cancelGrant, refundDonations } from "./cancelGrant";
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/hooks/useQueryContext.tsx
|
import { useRouter } from 'next/router'
import { EndpointTypes } from '../models/types'
export default function useQueryContext() {
const router = useRouter()
const { cluster } = router.query
const endpoint = cluster ? (cluster as EndpointTypes) : 'mainnet'
const hasClusterOption = endpoint !== 'mainnet'
const fmtUrlWithCluster = (url) => {
if (hasClusterOption) {
const mark = url.includes('?') ? '&' : '?'
return decodeURIComponent(`${url}${mark}cluster=${endpoint}`)
}
return url
}
return {
fmtUrlWithCluster,
}
}
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/views/index.tsx
|
export { GrantCreationView } from './create-grant';
export { ExplorerView } from "./explore";
export { LandingPageView } from "./landing-page";
| 0
|
solana_public_repos/solana-grants/app/src/views
|
solana_public_repos/solana-grants/app/src/views/create-grant/index.tsx
|
import { FC, useState } from 'react';
import uploadToWeb3DB from '../../utils/uploadToWeb3DB';
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
import GetProvider from '../../utils/getProvider';
import { useWallet } from '@solana/wallet-adapter-react';
import { TransactionDetail } from '../../constants/types';
import { GrantModel } from '../../models/grant';
import createGrant from '../../instructions/createGrant';
import TransactionSeries from '../../components/TransactionSeries';
import { useSession } from 'next-auth/react';
import { useRouter } from 'next/router'
import { toastError, toastSuccess } from '../../components/Toast';
import { Input } from "../../components/markdownConvert";
export const GrantCreationView: FC = ({ }) => {
const [active, setactive] = useState(1);
const [grant, setGrant] = useState({
title: "",
imageLink: "",
about: "",
description: "## Inspiration\n\n",
projectGithubLink: "",
dueDate: "",
targetAmount: "",
projectWebsite: ""
});
enum DescriptionTab {
Write = "Write",
Preview = "Preview",
}
const [hideTextArea, setHideTextArea] = useState(false);
const tabColors = {
selectedTabColor: "#2514ED",
selectedTabBgColor: "#e5e7eb",
deselectedTabColor: "#9ca3af",
deselectedTabBgColor: "#f9fafb",
};
const [descriptionTab, setDescriptionTab] = useState({
writeTabColor: tabColors.selectedTabColor,
writeTabBgColor: tabColors.selectedTabBgColor,
previewTabColor: tabColors.deselectedTabColor,
previewTabBgColor: tabColors.deselectedTabBgColor,
});
const selectTab = (descriptionTab: DescriptionTab) => {
if (descriptionTab === DescriptionTab.Write) {
setDescriptionTab({
writeTabColor: tabColors.selectedTabColor,
writeTabBgColor: tabColors.selectedTabBgColor,
previewTabColor: tabColors.deselectedTabColor,
previewTabBgColor: tabColors.deselectedTabBgColor,
});
setHideTextArea(false);
} else {
setDescriptionTab({
writeTabColor: tabColors.deselectedTabColor,
writeTabBgColor: tabColors.deselectedTabBgColor,
previewTabColor: tabColors.selectedTabColor,
previewTabBgColor: tabColors.selectedTabBgColor,
});
setHideTextArea(true);
}
};
const [transactionsList, setTransactionsList] = useState<Array<TransactionDetail>>([
{
info: "Funding the Bundlr node",
isCompleted: false
},
{
info: "Uploading data to Arweave (message signing)",
isCompleted: false
},
{
info: "Sending your data to the blockchain",
isCompleted: false
}
]);
const wallet = useWallet();
const githubAuthSession = useSession();
const router = useRouter();
const handleChange = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
const { name, value } = event.target;
setGrant({ ...grant, [name]: value });
}
const runValidations = () => {
if (active == 1) {
if (!wallet || !wallet.connected) {
toastError("Wallet not connected!");
return false;
}
if (!githubAuthSession || !githubAuthSession.data) {
toastError("Please sign in with your GitHub Account");
return false;
}
if (!grant.title || !grant.description || !grant.about || !grant.imageLink || !grant.projectGithubLink || !grant.dueDate || !grant.targetAmount) {
toastError("Please fill in all the fields!");
return false;
}
if (parseFloat(grant.targetAmount) <= 0) {
toastError("Target amount must be greater than zero");
return false;
}
if (new Date(grant.dueDate + " 00:00:00").getTime() <= new Date().getTime()) {
toastError("Due date entered must be in the future!");
return false;
}
}
return true;
}
const goToPreviousSection = () => {
setactive(active - 1);
}
const goToNextSection = () => {
const isValidated = runValidations();
if (isValidated) {
setactive(active + 1);
if (active + 1 == 4) {
handleSubmit();
}
}
}
const handleSubmit = async () => {
const grantDetailsToBeUploaded = {
title: grant.title,
imageLink: grant.imageLink,
about: grant.about,
description: grant.description,
projectGithubLink: grant.projectGithubLink,
projectWebsite: grant.projectWebsite,
githubUserId: githubAuthSession.data.userId
};
const uploadResult = await uploadToWeb3DB(wallet, grantDetailsToBeUploaded, setTransactionsList);
if (uploadResult.err) {
toastError("Something went wrong! Please try again later");
setactive(active - 1);
return;
}
const grantDetails: GrantModel = {
info: uploadResult.id,
targetLamports: parseFloat(grant.targetAmount) * LAMPORTS_PER_SOL,
dueDate: new Date(grant.dueDate + " 23:59:59").getTime()
}
const provider = await GetProvider(wallet);
const grantCreationResult = await createGrant(provider, grantDetails);
if (grantCreationResult.err) {
toastError("Something went wrong! Please try again later");
setactive(active - 1);
return;
}
setTransactionsList((transactionsList) => {
const newTransactionsList = [...transactionsList];
newTransactionsList[uploadResult.transactionCount].isCompleted = true;
return newTransactionsList;
})
toastSuccess("Grant created successfully");
router.push("/");
}
return (
<>
<div className="flex items-center justify-center">
<div className="creategrant w-[63rem]">
<div className="mx-4 p-4">
<div className="flex items-center">
<div className="flex items-center text-white relative">
<div className="rounded-full transition duration-500 ease-in-out h-12 w-12 py-3 border-2 bg-teal-600 border-teal-600">
</div>
<div className="grantheading absolute top-0 -ml-10 text-center mt-16 w-32 text-xs font-medium uppercase text-teal-600">Grant Details</div>
</div>
<div className={active == 2 || active == 3 || active == 4 ? 'flex-auto border-t-2 transition duration-500 ease-in-out border-teal-600' : 'flex-auto border-t-2 transition duration-500 ease-in-out border-gray-300'}></div>
<div className="flex items-center text-gray-500 relative">
<div className={active == 2 || active == 3 || active == 4 ? 'rounded-full transition duration-500 ease-in-out h-12 w-12 py-3 border-2 bg-teal-600 border-teal-600' : 'rounded-full transition duration-500 ease-in-out h-12 w-12 py-3 border-2 border-gray-300'}>
</div>
<div className={active == 2 || active == 3 || active == 4 ? 'grantheading absolute top-0 -ml-10 text-center mt-16 w-32 text-xs font-medium uppercase text-teal-600' : 'grantheading absolute top-0 -ml-10 text-center mt-16 w-32 text-xs font-medium uppercase text-gray-500'}>Creator Details</div>
</div>
<div className={active == 3 || active == 4 ? 'flex-auto border-t-2 transition duration-500 ease-in-out border-teal-600' : 'flex-auto border-t-2 transition duration-500 ease-in-out border-gray-300'}></div>
<div className="flex items-center text-gray-500 relative">
<div className={active == 3 || active == 4 ? 'rounded-full transition duration-500 ease-in-out h-12 w-12 py-3 border-2 bg-teal-600 border-teal-600' : 'rounded-full transition duration-500 ease-in-out h-12 w-12 py-3 border-2 border-gray-300'}>
</div>
<div className={active == 3 || active == 4 ? 'grantheading absolute top-0 -ml-10 text-center mt-16 w-32 text-xs font-medium uppercase text-teal-600' : 'grantheading absolute top-0 -ml-10 text-center mt-16 w-32 text-xs font-medium uppercase text-gray-500'}>Review Grant</div>
</div>
<div className={active == 4 ? 'flex-auto border-t-2 transition duration-500 ease-in-out border-teal-600' : 'flex-auto border-t-2 transition duration-500 ease-in-out border-gray-300'}></div>
<div className="flex items-center text-gray-500 relative">
<div className={active == 4 ? 'rounded-full transition duration-500 ease-in-out h-12 w-12 py-3 border-2 bg-teal-600 border-teal-600' : 'rounded-full transition duration-500 ease-in-out h-12 w-12 py-3 border-2 border-gray-300'}>
</div>
<div className={active == 4 ? 'grantheading absolute top-0 -ml-10 text-center mt-16 w-32 text-xs font-medium uppercase text-teal-600' : 'grantheading absolute top-0 -ml-10 text-center mt-16 w-32 text-xs font-medium uppercase text-gray-500'}>Create Grant</div>
</div>
</div>
</div>
<div className="grantborder border-t-2 w-[63rem] mt-[4rem] border-gray-300"></div>
<div className={active == 1 ? 'mt-8 p-4' : 'hidden'}>
<div>
<div className="font-bold text-white text-xl leading-8 uppercase h-6 mx-2 mt-3">
<h1>Grant Details</h1>
</div>
<div className="font-bold text-white text-s leading-8 uppercase h-6 mx-2 mt-3">Title*</div>
<div className="flex flex-col md:flex-row">
<div className="w-full flex-1 mx-2 svelte-1l8159u">
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input placeholder="Grant Title" name="title" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> About*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input placeholder="About.." name="about" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase">
{" "}
Description*
</div>
<div className="bg-gray-50 border border-b-0 border-gray-300 top-0 mt-2 left-0 right-0 block rounded-t-md">
<button
type="button"
style={{
color: descriptionTab.writeTabColor,
backgroundColor: descriptionTab.writeTabBgColor,
}}
className={`py-2 px-4 inline-block font-semibold rounded`}
onClick={() => {
selectTab(DescriptionTab.Write);
}}
>
{" "}
Write
</button>
<button
type="button"
style={{
color: descriptionTab.previewTabColor,
backgroundColor: descriptionTab.previewTabBgColor,
}}
className={`py-2 px-4 inline-block font-semibold rounded`}
onClick={() => {
selectTab(DescriptionTab.Preview);
}}
>
Preview
</button>
</div>
<div className="bg-white p-1 flex border border-gray-200 svelte-1l8159u rounded-b-md text-black">
<Input hide={hideTextArea} value={grant.description} handleChange={handleChange} readOnly={false} />
</div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Project GitHub URl*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input placeholder="Your Project GitHub URl.." name="projectGithubLink" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Project Header URl*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input placeholder="Your Project Header URl.." name="imageLink" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Project Website</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input placeholder="Your Project Website.." name="projectWebsite" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Amount Goal in SOL*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input placeholder="Amount Goal.." type="number" min="0" name="targetAmount" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Due Date*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input placeholder="Due Date" type="date" name="dueDate" min={new Date().toISOString().split('T')[0]} className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
</div>
<div className="flex p-2 mt-4">
<div className="flex-auto flex flex-row-reverse">
<button className="text-base ml-2 hover:scale-110 focus:outline-none flex justify-center px-4 py-2 rounded font-bold cursor-pointer
hover:bg-teal-600
bg-teal-600
text-white
border duration-200 ease-in-out
border-teal-600 transition"
disabled={active == 4}
onClick={goToNextSection}
>Next</button>
</div>
</div>
</div>
<div className={active == 2 ? 'mt-8 p-4' : 'hidden'}>
<div>
<div className="font-bold text-white text-xl leading-8 uppercase h-6 mx-2 mt-3">
<h1>Creator Details</h1>
</div>
<div className="font-bold text-white text-s leading-8 uppercase h-6 mx-2 mt-3">Name*</div>
<div className="flex flex-col md:flex-row">
<div className="w-full flex-1 mx-2 svelte-1l8159u">
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={githubAuthSession?.data?.user?.name || ""} readOnly={true} className="p-2 px-2 appearance-none outline-none w-full text-black"/>
</div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Wallet Address*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={wallet?.publicKey?.toString() || ""} readOnly={true} className="p-2 px-2 appearance-none outline-none w-full text-black"/>
</div>
</div>
</div>
</div>
<div className="flex p-2 mt-4">
<button className="text-base hover:scale-110 focus:outline-none flex justify-center px-4 py-2 rounded font-bold cursor-pointer
hover:bg-gray-200
bg-gray-100
text-black
border duration-200 ease-in-out
border-gray-600 transition"
disabled={active == 1}
onClick={goToPreviousSection}
>Previous</button>
<div className="flex-auto flex flex-row-reverse">
<button className="text-base ml-2 hover:scale-110 focus:outline-none flex justify-center px-4 py-2 rounded font-bold cursor-pointer
hover:bg-teal-600
bg-teal-600
text-white
border duration-200 ease-in-out
border-teal-600 transition"
disabled={active == 4}
onClick={goToNextSection}
>Next</button>
</div>
</div>
</div>
<div className={active == 3 ? 'mt-8 p-4' : 'hidden'}>
<div className="font-bold text-white text-2xl leading-8 uppercase h-6 mx-2 mt-3">
<h1>Review Grants</h1>
</div>
<div className="grantborder border-t-2 w-[63rem] mt-[3rem] border-gray-300"></div>
<div>
<div className="font-bold text-white text-xl leading-8 uppercase h-6 mx-2 mt-3">
<h1>Grant Details</h1>
</div>
<div className="font-bold text-white text-s leading-8 uppercase h-6 mx-2 mt-3">Title*</div>
<div className="flex flex-col md:flex-row">
<div className="w-full flex-1 mx-2 svelte-1l8159u">
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={grant.title} name="title" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange}
readOnly={true}/> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> About*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={grant.about} readOnly={true} name="about" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase">
{" "}
Description*
</div>
<div className="bg-gray-50 border border-b-0 border-gray-300 top-0 mt-2 left-0 right-0 block rounded-t-md">
<button
type="button"
style={{
color: descriptionTab.writeTabColor,
backgroundColor: descriptionTab.writeTabBgColor,
}}
className={`py-2 px-4 inline-block font-semibold rounded`}
onClick={() => {
selectTab(DescriptionTab.Write);
}}
>
{" "}
Write
</button>
<button
type="button"
style={{
color: descriptionTab.previewTabColor,
backgroundColor: descriptionTab.previewTabBgColor,
}}
className={`py-2 px-4 inline-block font-semibold rounded`}
onClick={() => {
selectTab(DescriptionTab.Preview);
}}
>
Preview
</button>
</div>
<div className="bg-white p-1 flex border border-gray-200 svelte-1l8159u rounded-b-md text-black">
<Input hide={hideTextArea} value={grant.description} handleChange={handleChange} readOnly={true} />
</div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Project GitHub URl*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={grant.projectGithubLink} readOnly={true} name="projectGithubLink" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Project Header URl*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={grant.imageLink} readOnly={true} name="imageLink" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Project Website</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={grant.projectWebsite} readOnly={true} name="projectWebsite" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Amount Goal in SOL*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={grant.targetAmount} readOnly={true} type="number" min="0" name="targetAmount" className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Due Date*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={grant.dueDate} readOnly={true} type="date" name="dueDate" min={new Date().toISOString().split('T')[0]} className="p-1 px-2 appearance-none outline-none w-full text-gray-800" onChange={handleChange} /> </div>
</div>
</div>
<div className="font-bold text-white text-xl leading-8 uppercase h-6 mx-2 mt-3">
<h1>Creator Details</h1>
</div>
<div className="font-bold text-white text-s leading-8 uppercase h-6 mx-2 mt-3">Name*</div>
<div className="flex flex-col md:flex-row">
<div className="w-full flex-1 mx-2 svelte-1l8159u">
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={githubAuthSession?.data?.user?.name || ""} readOnly={true} className="p-2 px-2 appearance-none outline-none w-full text-black"/>
</div>
</div>
</div>
<div className="flex flex-col md:flex-row">
<div className="w-full mx-2 flex-1 svelte-1l8159u">
<div className="font-bold h-6 mt-3 text-white text-s leading-8 uppercase"> Wallet Address*</div>
<div className="bg-white my-2 p-1 flex border border-gray-200 rounded svelte-1l8159u">
<input value={wallet?.publicKey?.toString() || ""} readOnly={true} className="p-2 px-2 appearance-none outline-none w-full text-black"/>
</div>
</div>
</div>
</div>
<div className="flex p-2 mt-4">
<button className="text-base hover:scale-110 focus:outline-none flex justify-center px-4 py-2 rounded font-bold cursor-pointer
hover:bg-gray-200
bg-gray-100
text-black
border duration-200 ease-in-out
border-gray-600 transition"
disabled={active == 1}
onClick={goToPreviousSection}
>Previous</button>
<div className="flex-auto flex flex-row-reverse">
<button className="text-base ml-2 hover:scale-110 focus:outline-none flex justify-center px-4 py-2 rounded font-bold cursor-pointer
hover:bg-teal-600
bg-teal-600
text-white
border duration-200 ease-in-out
border-teal-600 transition"
disabled={active == 4}
onClick={goToNextSection}
>Create Grant</button>
</div>
</div>
</div>
<div className={active == 4 ? 'mt-8 p-4' : 'hidden'}>
<div>
<div className="font-bold text-white text-xl leading-8 uppercase h-6 mx-2 mt-3">
<h1>Creating Grant</h1>
</div>
<p className="mt-6 mx-2">Please <b>DO NOT</b> leave this page or close this window until you sign all transactions/messages</p>
<div className="my-12">
<TransactionSeries transactionsList={transactionsList} />
</div>
</div>
{active != 4 && <div className="flex p-2 mt-4">
<button className="text-base hover:scale-110 focus:outline-none flex justify-center px-4 py-2 rounded font-bold cursor-pointer
hover:bg-gray-200
bg-gray-100
text-gray-700
border duration-200 ease-in-out
border-gray-600 transition"
disabled={active == 1 || active == 4}
onClick={goToPreviousSection}
>Previous</button>
</div>}
</div>
</div>
</div>
</>
)
}
| 0
|
solana_public_repos/solana-grants/app/src/views
|
solana_public_repos/solana-grants/app/src/views/explore/index.tsx
|
import { FC, useEffect, useRef, useState } from "react";
import personImage from "../../../public/images/person-opens-the-safe-with-the-money.png";
import { ExploreCard, ExploreCardProps } from "../../components/ExploreCard";
import getGrants from "instructions/getGrants";
import { useWallet } from '@solana/wallet-adapter-react';
import getProvider from 'instructions/api/getProvider';
import { BN } from "@project-serum/anchor";
import getProgram from "../../instructions/api/getProgram";
import { getProgramInfoPDA } from "../../instructions/pda/getProgramInfoPDA";
import { PublicKey } from "@solana/web3.js";
import fetchDataFromArweave from "../../utils/fetchDataFromArweave";
import fetchGithubUserDataFromUserId from "utils/fetchGithubUserDataFromUserId";
import { useRouter } from "next/router";
import { toastError } from "components/Toast";
export const ExplorerView: FC = ({ }) => {
const [projects, setProjects] = useState<ExploreCardProps[]>([]);
const programInfo = useRef<any>();
const currentGrantIndex = useRef(0);
const totalGrantsFetched = useRef(0);
const [loadingView, setLoadingView] = useState<-1 | 0 | 1>(1); // 1 -> show loading spinner, 0 -> show load more button, -1 -> show none
const wallet = useWallet()
const router = useRouter();
useEffect(() => {
fetchGrants()
}, [])
const fetchGrants = async () => {
try {
setLoadingView(1);
const provider = getProvider(wallet, true);
if (!programInfo.current) {
const program = getProgram(provider);
const programInfoPDA = await getProgramInfoPDA(program);
const programInfoFetched = await program.account.programInfo.fetch(programInfoPDA);
if (!programInfoFetched) {
setLoadingView(0);
toastError('Something went wrong! please try again later');
return;
}
programInfo.current = programInfoFetched;
}
const numGrantsToFetchAtATime = 12;
let grantsData = [];
let cardProps: ExploreCardProps[];
while (programInfo.current.grantsCount > totalGrantsFetched.current && grantsData.length < numGrantsToFetchAtATime) {
const startIndex = currentGrantIndex.current;
let endIndex =
startIndex + numGrantsToFetchAtATime - grantsData.length - 1;
if (endIndex > programInfo.current.grantsCount - 1) {
endIndex = programInfo.current.grantsCount - 1;
}
const fetchedGrants = await getGrants(provider, startIndex, endIndex);
if (fetchedGrants.err) {
setLoadingView(0);
toastError('Something went wrong! please try again later');
return;
}
grantsData = fetchedGrants.data;
totalGrantsFetched.current += fetchedGrants.data.length;
// filter valid grants
grantsData = grantsData.filter((grant) => {
return grant
&& new Date().getTime() <= grant.dueDate.toNumber()
&& grant.lamportsRaised < grant.targetLamports.toNumber()
&& grant.fundingState.hasOwnProperty('active')
&& grant.isMatchingEligible
});
// transform to ExploreCardProps compatible types
grantsData = grantsData.map((grant) => {
const idx = grant.grantNum;
const author = grant.author.toString();
return {
...grant,
idx,
author,
};
});
currentGrantIndex.current += grantsData.length;
}
await Promise.all(grantsData.map(async (grant) => {
const arweaveResponse = await fetchDataFromArweave(grant.info);
if (arweaveResponse.err) {
return;
}
const dataFromArweave = arweaveResponse.data;
Object.keys(dataFromArweave).forEach((key) => {
grant[key] = dataFromArweave[key];
});
}));
const currentProjects = [...projects];
// we setProjects data and render it before creator details are fetched from github to reduce the waiting time of the user
// since its better to load and display some content for the user early (Lazy rendering), than to load and display all content together but late
/* @ts-ignore */
// setProjects([...currentProjects, ...grantsData]);
if (programInfo.current.grantsCount === totalGrantsFetched.current) {
setLoadingView(-1);
}
else {
setLoadingView(0);
}
await Promise.all(grantsData.map(async (grant) => {
const githubUserDataResponse = await fetchGithubUserDataFromUserId(grant.githubUserId);
if (githubUserDataResponse.err) {
grant.author = "Author name could not be loaded";
grant.authorLink = "";
return;
}
grant.author = githubUserDataResponse.data.name;
grant.authorLink = `https://github.com/${githubUserDataResponse.data.login}`;
}));
// coerce into card props
cardProps = grantsData as ExploreCardProps[];
// since we have now loaded the creator details from github, we rerender by setting projects again
setProjects([...currentProjects, ...cardProps]);
} catch (error) {
console.log(error);
setLoadingView(0);
toastError('Something went wrong! please try again later');
return;
}
}
const navigateToCreateGrantPage = () => {
router.push("/create-grant");
}
return (
<>
<div className='p-4 mx-auto md:hero'>
<div className='flex-col gap-20 mb-40 hero-content lg:flex-row'>
<div className='flex flex-col lg:items-start'>
<h1 className='mt-20 text-5xl font-bold text-center text-white lg:text-left bg-clip-text'>
Fund Public Goods
<br />
Help grow Solana!{" "}
</h1>
<h4 className='my-5 text-xl text-center text-white md:w-full lg:text-left'>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
<br /> eiusmod tempor incididunt ut labore et dolore magna
aliqua.
</p>
</h4>
<div className='pt-5 text-center'>
<button className="px-6 py-2 text-sm bg-transparent border rounded-full hover:bg-slate-500 text-fuchsia-300 border-fuchsia-300 btn" onClick={navigateToCreateGrantPage}>
CREATE A GRANT
</button>
</div>
</div>
<div className='hidden pt-10 lg:block'>
<img src={personImage.src} width='420px' />
</div>
</div>
</div>
<div className='px-2 mx-auto lg:container'>
<div className='flex flex-wrap justify-center gap-8'>
{projects.map((props, idx) => (
<ExploreCard {...props} key={idx} idx={props.idx}/>
))}
</div>
</div>
<div className="flex justify-center mb-10">
{loadingView == -1 ? (
<div className="my-10">
{projects.length == 0
? <div className="text-xl font-bold">No grants available</div>
: <div className="text-xl font-bold">That{"'"}s all folks</div>
}
</div>
) : (
<>
{loadingView == 0 ? (
<button className="px-4 py-2 font-bold text-black rounded bg-cyan-300 hover:bg-blue-700 hover:text-white" onClick={fetchGrants}>
Load More
</button>
) : (
<div className='w-12 h-12 rounded-full animate-spin loading-spinner-gradients'></div>
)}
</>
)}
</div>
</>
);
};
| 0
|
solana_public_repos/solana-grants/app/src/views
|
solana_public_repos/solana-grants/app/src/views/landing-page/index.tsx
|
import { FC } from 'react';
import { useRouter } from "next/router";
import GrantStats from "../../components/grant_stats";
import {useWallet} from "@solana/wallet-adapter-react";
export const LandingPageView: FC = ({ }) => {
const router = useRouter();
const navigateToCreateGrantPage = () => {
router.push("/create-grant");
}
const navigateToExplorePage = () => {
router.push("/explore");
}
const slide = ({ forward }) => {
const scroller = document.querySelector(".carousel-container");
const itemWidth = document.querySelector(".slide-content").clientWidth;
if (forward) {
scroller.scrollBy({ left: itemWidth, top: 0, behavior: "smooth" });
} else {
scroller.scrollBy({ left: -itemWidth, top: 0, behavior: "smooth" });
}
};
return (
<div>
<div className='flex justify-center my-24'>
<div className='flex justify-center hidden md:block w-[400px] h-[350px]'>
<img src='/images/sol-man.png' />
</div>
<div className='flex items-center w-[400px] h-[350px]'>
<div className='flex flex-col items-center md:items-start m-8 md:m-5'>
<div className='my-5 mt-8'>
<b className="normal-case text-4xl">The place to fund in the open</b>
</div>
<div>
<p className="normal-case text-lg text-center md:text-left">Open source software is awesome for the users, funding it makes it awesome for the maintainers too. The foundations are putting money in the pit, help distributing it by donating to grants.</p>
</div>
<div className='flex justify-center mt-8'>
<button className="bg-green-400 hover:bg-emerald-500 py-2 px-9 text-black text-sm rounded-full mr-4" onClick={navigateToExplorePage}>
EXPLORE
</button>
<button className="bg-transparent hover:bg-slate-500 py-2 px-6 text-fuchsia-300 border border-fuchsia-300 text-sm rounded-full btn" onClick={navigateToCreateGrantPage}>
CREATE A GRANT
</button>
</div>
</div>
</div>
</div>
<div className='flex flex-col items-center mt-60 mb-20'>
<div className='my-2'>
<img src='/images/grants-stats-icon.svg' />
</div>
<div className='my-2'>
<b className="normal-case text-3xl">Grants Stats</b>
</div>
<div className='my-2'>
<p className="normal-case text-md text-center md:mx-0 mx-5">Cras convallis lacus orci, tristique tincidunt magna consequat in. In vel est, at euismod libero.</p>
</div>
<div className='flex items-center sm:w-[70%] w-[95%]'>
<button className="bg-purple-700 hover:bg-purple-900 pt-1 pb-2 px-3 rounded-md text-lg" onClick={() => slide({ forward: false })}>❮</button>
<div className="carousel carousel-container rounded-box my-40 mx-5">
<div className="carousel-item">
<div className='slide-content w-64 h-56 m-4'>
<img src="/images/man-climbs-blockchain-tree.png" className='h-full' />
</div>
</div>
<GrantStats />
</div>
<button className="bg-purple-700 hover:bg-purple-900 pt-1 pb-2 px-3 rounded-md text-lg" onClick={() => slide({ forward: true })}>❯</button>
</div>
</div>
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src/views
|
solana_public_repos/solana-grants/app/src/views/grant/index.tsx
|
import { FC, useEffect, useState } from "react";
import Markdown from "marked-react";
import { Path } from "progressbar.js";
import CountUp from "react-countup";
import fetchGithubUserDataFromUserId from "utils/fetchGithubUserDataFromUserId";
import Error from "next/error";
import { CopyToClipboard } from "react-copy-to-clipboard";
import { RiCheckboxMultipleBlankLine, RiCheckboxMultipleFill } from "react-icons/ri";
import DonateSol from "../../components/DonateSol";
import Modal from "../../components/Modal";
import { PublicKey } from "@solana/web3.js";
import { DEFAULT_GRANT_HEADER_IMAGE } from "../../constants";
import { useWallet } from "@solana/wallet-adapter-react";
import { toastError, toastSuccess } from "components/Toast";
import sendSol from "utils/sendSol";
export interface Props {
// *** = should come from the db
grantNum: number; // anchor
grantPDA: string;
title: string; // ***
author: {
name: string; // from ghApi
ghUser: string; // from ghApi
ghAvatar: string; // from gh api
walletAddress: string; // anchor
};
about: string; // ***
description: string; // ***
amountRaised: number; // anchor
amountGoal: number; // anchor
numContributors: number; // anchor
targetDate: number; // anchor
ghRepo: string; // anchor
ghUserId: string; // anchor
website?: string; // ***
image: string; // ***
allowDonation: boolean;
reasonForNotAllowingDonation: string;
err?: boolean;
message?: string;
}
export const GrantView: FC<Props> = (props) => {
const [preview, setPreview] = useState(false);
const animationDuration = 3; // secs
const [raisedSol, setRaisedSol] = useState(props.amountRaised)
const [loadingCreatorDetailsFromGithub, setLoadingCreatorDetailsFromGithub] = useState(true);
const [copied, setCopied] = useState(false);
const [image, setImage] = useState(props.image);
const [supportAuthorModalOpen, setSupportAuthorModalOpen] = useState(false);
const [amountToBeDonated, setAmountToBeDonated] = useState("");
const [supportAuthorTransactionInProgress, setSupportAuthorTransactionInProgress] = useState(false);
const wallet = useWallet();
const handleCounterStart = (duration: number) => {
let bar = new Path("#progress-bar", {
easing: "linear",
duration,
});
bar.set(0);
const percentage = raisedSol / props.amountGoal;
bar.animate(percentage);
};
const oneDay = 24 * 60 * 60 * 1000; // hours*minutes*seconds*milliseconds
const daysToRelease = Math.round(
Math.abs((new Date().getTime() - props.targetDate) / oneDay)
);
const fetchCreatorDetailsFromGithubApi = async () => {
const githubUserDataResponse = await fetchGithubUserDataFromUserId(props.ghUserId);
if (!githubUserDataResponse.err) {
props.author.name = githubUserDataResponse.data.name;
props.author.ghUser = githubUserDataResponse.data.login;
props.author.ghAvatar = githubUserDataResponse.data.avatar_url;
}
setLoadingCreatorDetailsFromGithub(false);
}
useEffect(() => {
fetchCreatorDetailsFromGithubApi()
}, []);
const toggleSupportAuthorModal = (preview: boolean) => {
setSupportAuthorModalOpen(preview);
}
const supportAuthor = async () => {
setSupportAuthorTransactionInProgress(true);
if (!wallet || !wallet.connected) {
toastError("You must be connected to a wallet to send funds");
setSupportAuthorTransactionInProgress(false);
return;
}
if (parseFloat(amountToBeDonated) <= 0) {
toastError("Enter a valid amount");
setSupportAuthorTransactionInProgress(false);
return;
}
const response = await sendSol(wallet, props.author.walletAddress, parseFloat(amountToBeDonated));
if (response.err){
toastError("Something went wrong! Please try again later");
}
else {
toastSuccess("Successfully Supported the author");
}
setSupportAuthorModalOpen(false);
setSupportAuthorTransactionInProgress(false);
}
if (props.err) {
return <Error statusCode={props.message === "Not Found" ? 404 : 500} title={props.message} />
}
return (
<div className='flex flex-row flex-wrap max-w-6xl p-4 mx-auto space-y-10'>
<div className='w-full gap-4 mx-auto mb-4 prose text-center md:prose-lg'>
<h1 className=''>{props.title}</h1>
<p className='mx-auto md:text-xl'>{props.about}</p>
</div>
<div className='relative w-full pb-2/3 md:pb-1/3 md:w-2/3'>
<img
className='absolute object-cover h-full'
onError={() => {
setImage(DEFAULT_GRANT_HEADER_IMAGE)
}}
src={image}
alt='grant background'
/>
</div>
<div className='mx-auto sm:px-4 w-sm md:w-1/3'>
<div className='flex flex-row h-48 gap-4 mx-auto md:h-80 '>
<svg
className="md:hidden lg:block stroke-slate-800 stroke-[20px] md:stroke-[12px] h-full w-1/2 pl-4 pb-4"
viewBox="-10 10 40 180"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M8.50006 194C14.5001 181.5 22.9001 145.2 8.50006 100C-5.89994 54.8 2.50006 19.5 8.50006 1" />
<path
id="progress-bar"
d="M8.50006 194C14.5001 181.5 22.9001 145.2 8.50006 100C-5.89994 54.8 2.50006 19.5 8.50006 1"
stroke="#14F195"
/>
</svg>
<div id='stats' className='flex flex-wrap content-between pb-4'>
<div className='w-full'>
<p id='amount-raised' className='text-5xl'>
<CountUp
end={raisedSol}
duration={animationDuration}
separator=","
useEasing={true}
onStart={() => handleCounterStart(animationDuration * 1000)}
/>
{" "}SOL
</p>
<p className='text-base'>out of {props.amountGoal} SOL</p>
</div>
<div className="w-1/2 md:w-full">
<h1 className="text-5xl">
<CountUp
end={props.numContributors}
duration={animationDuration}
separator=","
useEasing={true}
/>
</h1>
<p className="text-base">supporters</p>
</div>
<div className="w-1/2 md:w-full">
<h1 className="text-5xl">
<CountUp
start={365}
end={daysToRelease}
duration={animationDuration}
separator=","
useEasing={true}
/>
</h1>
<p className="text-base">days to release</p>
</div>
</div>
</div>
<a
href="#donate"
className="w-full gap-2 m-2 mx-auto btn btn-success"
onClick={() => {
setPreview(true);
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
className="w-6 h-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
/>
</svg>
Donate
</a>
{preview && (
<DonateSol setpreview={setPreview} grantPDA={new PublicKey(props.grantPDA) } setRaisedSol={setRaisedSol} />
)}
{!props.allowDonation && <p className="text-sm">{props.reasonForNotAllowingDonation}</p>}
</div>
<main role='main' className='flex-grow sm:w-2/3 sm:pt-4 md:px-6'>
<article className='mx-auto prose-sm prose md:prose-base max-w-none lg:pr-16'>
<Markdown>{props.description}</Markdown>
</article>
</main>
<div className='flex-grow-0 flex-shrink max-w-sm px-2 mx-auto sm:w-1/3'>
<div className='flex px-2 pt-4 sm:flex-col'>
<div className='p-4 px-3 py-4 space-y-4 '>
<div className='grid items-center grid-cols-6'>
<img
className='w-6 h-6 justify-self-center'
src='/images/github.png'
alt='www logo'
/>
<a
className='col-span-5 text-current link link-secondary link-hover'
href={"https://" + props.ghRepo}
>
{props.ghRepo}
</a>
</div>
<div className='grid items-center grid-cols-6 pb-4 mb-4 border-b border-slate-800'>
<img
className='w-6 h-6 justify-self-center'
src='/images/website.png'
alt='www logo'
/>
<a
className='col-span-5 text-current link link-secondary link-hover'
href={"https://" + props.website}
>
{props.website}
</a>
</div>
<p className='text-sm text-slate-400'>Created by:</p>
{loadingCreatorDetailsFromGithub ? (
<div className='rounded-full w-7 h-7 animate-spin loading-spinner-gradients'></div>
) : (
<ul className='space-y-3'>
<li className='grid items-center grid-cols-6 gap-3'>
{props.author.name ? (
<>
<img
className='rounded-full '
src={props.author.ghAvatar}
alt='github avatar'
/>
<a
className='col-span-5 link link-secondary link-hover '
href={"https://github.com/" + props.author.ghUser}
>
{props.author.name}
</a>
</>
) : (
<p>Could not load author details</p>
)}
</li>
<li className='grid items-center grid-cols-6 gap-3'>
<CopyToClipboard
className='col-span-3 btn btn-ghost btn-sm'
text={props.author.walletAddress}
onCopy={() => setCopied(true)}
>
<div>
<span className='w-3/4 truncate '>
{props.author.walletAddress}
</span>
{copied
? <RiCheckboxMultipleFill className='w-1/4 text-xl text-emerald-400' />
: <RiCheckboxMultipleBlankLine className='w-1/4 text-xl' />
}
</div>
</CopyToClipboard>
<a
className='col-span-3 truncate group btn btn-secondary btn-sm'
href={
"https://explorer.solana.com/address/" +
props.author.walletAddress
}
>
<a href="#support-author" className='text-slate-600' onClick={() => setSupportAuthorModalOpen(true)}>Support author</a>
</a>
</li>
</ul>
)}
</div>
</div>
</div>
{supportAuthorModalOpen && (
<Modal id="support-author" showCloseButton={true} setpreview={toggleSupportAuthorModal}>
<h3 className="font-bold text-white m-[0.8rem] text-lg">Enter the amount to donate in SOL</h3>
<input
type="number"
min="0"
className="input w-full max-w-xs text-white border-zinc-50"
onChange={(e) => {
setAmountToBeDonated(e.target.value);
}}
/>
<div className="modal-action">
{supportAuthorTransactionInProgress ? (
<div className='w-6 h-6 rounded-full animate-spin loading-spinner-gradients ml-2'></div>
) : (
<button className="btn" onClick={supportAuthor}>Submit</button>
)}
</div>
</Modal>
)}
</div>
);
};
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/pages/index.tsx
|
import React, { useState } from 'react';
import type { NextPage } from "next";
import Head from "next/head";
import { LandingPageView } from "../views";
const LandingPage: NextPage = (props) => {
return (
<div>
<Head>
<title>Solana Grants</title>
<meta
name="description"
content="Solana Grants"
/>
</Head>
<LandingPageView />
</div>
);
};
export default LandingPage;
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/pages/_document.tsx
|
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document'
class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx)
return initialProps
}
render() {
return (
<Html>
<Head>
<link rel="shortcut icon" href="/favicon.ico"/>
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/pages/explore.tsx
|
import type { NextPage } from "next";
import Head from "next/head";
import { ExplorerView } from "views";
const Explore: NextPage = (props) => {
return (
<div>
<Head>
<title>Explore Grants</title>
<meta name='description' content='Explore Grants' />
</Head>
<ExplorerView />
</div>
);
};
export default Explore;
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/pages/_app.tsx
|
import { AppProps } from "next/app";
import { FC } from "react";
import { SessionProvider } from "next-auth/react";
import { ContextProvider } from "../contexts/ContextProvider";
import { AppBar } from "../components/AppBar";
import { Footer } from "../components/common/footer";
import Notifications from "../components/Notification";
import Toast from "components/Toast";
require("@solana/wallet-adapter-react-ui/styles.css");
require("../styles/globals.css");
const App: FC<AppProps> = ({ Component, pageProps }) => {
return (
<>
<SessionProvider session={pageProps.session}>
<ContextProvider>
<div className='flex flex-col h-screen'>
<Notifications/>
<div className='relative mb-20'>
<div className='absolute left-0 top-0 background-graphic-upper'></div>
<div className='absolute left-0 right-0 z-20'>
<AppBar/>
</div>
</div>
<div className='z-10'>
{/* @ts-ignore */}
<Component {...pageProps} />
<Footer/>
</div>
<Toast />
</div>
</ContextProvider>
</SessionProvider>
</>
);
};
export default App;
| 0
|
solana_public_repos/solana-grants/app/src
|
solana_public_repos/solana-grants/app/src/pages/create-grant.tsx
|
import type { NextPage } from "next";
import Head from "next/head";
import { GrantCreationView } from "views";
const GrantCreationFlow: NextPage = (props) => {
return (
<div>
<Head>
<title>Grants Explorer</title>
<meta name='description' content='Grants Explorer' />
</Head>
<GrantCreationView />
</div>
);
};
export default GrantCreationFlow;
| 0
|
solana_public_repos/solana-grants/app/src/pages
|
solana_public_repos/solana-grants/app/src/pages/api/hello.ts
|
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
type Data = {
name: string
}
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: 'John Doe' })
}
| 0
|
solana_public_repos/solana-grants/app/src/pages/api
|
solana_public_repos/solana-grants/app/src/pages/api/auth/[...nextauth].ts
|
import NextAuth from 'next-auth'
import GithubProvider from "next-auth/providers/github"
export default NextAuth({
providers: [
GithubProvider({
clientId: process.env.GITHUB_ID,
clientSecret: process.env.GITHUB_SECRET,
}),
],
callbacks: {
session: async ({ session, token }) => {
session.userId = token.sub;
return Promise.resolve(session);
}
}
})
| 0
|
solana_public_repos/solana-grants/app/src/pages
|
solana_public_repos/solana-grants/app/src/pages/grant/[id].tsx
|
import getProvider from "instructions/api/getProvider";
import getGrant from "instructions/getGrant";
import getProgramInfo from "instructions/getProgramInfo";
import { Keypair } from "@solana/web3.js";
import { loremIpsum } from "lorem-ipsum";
import type {
GetStaticPaths,
GetStaticProps,
InferGetStaticPropsType,
NextPage,
} from "next";
import Head from "next/head";
import { GrantView, Props as GrantViewProps } from "views/grant";
import { PublicKey } from "@solana/web3.js";
import { BN } from "@project-serum/anchor";
import fetchDataFromArweave from "../../utils/fetchDataFromArweave";
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
import { PhantomWalletAdapter } from "@solana/wallet-adapter-wallets";
const GrantPage: NextPage<{ grantViewProps: GrantViewProps }> = (props) => {
return (
<div>
<Head>
<title>{props.grantViewProps.title}</title>
<meta name='description' content='Grant details' />
</Head>
<GrantView {...props.grantViewProps} />
</div>
);
};
export const getStaticPaths: GetStaticPaths = async () => {
/* using new PhantomWalletAdapter to just fake a wallet here, since an actual connected wallet is not
needed for this operation, we just provide it since "new AnchorProvider()" expects a parameter type of AnchorWallet
*/
const provider = getProvider(new PhantomWalletAdapter(), true);
const programInfoResponse = await getProgramInfo(provider);
if (programInfoResponse.err || !programInfoResponse.data.grantsCount) {
return { paths: [], fallback: "blocking" };
}
const paths = Array(programInfoResponse.data.grantsCount).map((_, i) => ({
params: { id: i.toString() },
}));
return { paths, fallback: "blocking" };
};
export const getStaticProps: GetStaticProps = async ({ params }) => {
/* using new PhantomWalletAdapter to just fake a wallet here, since an actual connected wallet is not
needed for this operation, we just provide it since "new AnchorProvider()" expects a parameter type of AnchorWallet
*/
const provider = getProvider(new PhantomWalletAdapter(), true);
const grantInfo = await getGrant(provider, parseInt(params.id as string));
if (grantInfo.err) {
if (grantInfo.message?.includes("Account does not exist")) {
return { props: { grantViewProps: { err: true, message: "Not Found" } } };
}
return {
props: { grantViewProps: { err: true, message: "Something went wrong with this" } },
};
}
const grant = grantInfo.data;
if (!grant) {
return {
props: { grantViewProps: { err: true, message: "Something went wrong!" } },
};
}
let allowDonation = true;
let reasonForNotAllowingDonation = "";
const dueDate = grant.dueDate.toNumber();
if (new Date().getTime() > grant.dueDate.toNumber()) {
allowDonation = false;
reasonForNotAllowingDonation = "The due date has passed";
}
const lamportsRaised = grantInfo.lamportsRaised;
console.log(lamportsRaised);
const targetLamports = grant.targetLamports.toNumber();
if (lamportsRaised >= grant.targetLamports.toNumber()) {
allowDonation = false;
reasonForNotAllowingDonation =
"The target amount has already been achieved";
}
if (!grant.isMatchingEligible) {
allowDonation = false;
reasonForNotAllowingDonation =
"This grant is not currently ready to accept donations. Please check again later";
}
if (grant.fundingState === { cancelled: {} }) {
allowDonation = false;
reasonForNotAllowingDonation = "This grant has been cancelled";
}
const walletAddress = grant.author.toString();
const arweaveResponse = await fetchDataFromArweave(grant.info);
if (arweaveResponse.err) {
return {
props: { grantViewProps: { err: true, message: "Something went wrong :O" } },
};
}
const dataFromArweave = arweaveResponse.data;
const grantViewProps: GrantViewProps = {
grantNum: parseInt(params.id as string),
grantPDA: grantInfo.grantPDA.toString(),
title: dataFromArweave.title,
author: {
name: "", // will be populated on frontend
ghUser: "", // will be populated on frontend
ghAvatar: "", // will be populated on frontend
walletAddress: walletAddress,
},
about: dataFromArweave.about,
description: dataFromArweave.description,
amountRaised: parseFloat(
(lamportsRaised / LAMPORTS_PER_SOL).toFixed(2)
),
amountGoal: parseFloat(
(targetLamports / LAMPORTS_PER_SOL).toFixed(2)
),
numContributors: grant.totalDonors,
targetDate: dueDate,
ghRepo: dataFromArweave.projectGithubLink,
ghUserId: dataFromArweave.githubUserId,
website: dataFromArweave.projectWebsite,
image: dataFromArweave.imageLink,
allowDonation,
reasonForNotAllowingDonation,
};
// Pass grant data to the page via props
return { props: { grantViewProps } };
};
export default GrantPage;
| 0
|
solana_public_repos/solana-grants
|
solana_public_repos/solana-grants/tests/grants-program.ts
|
import * as anchor from "@project-serum/anchor";
import { BN, Program } from "@project-serum/anchor";
import { encode } from "@project-serum/anchor/dist/cjs/utils/bytes/utf8";
import {
Keypair,
LAMPORTS_PER_SOL,
PublicKey,
SystemProgram,
Transaction,
} from "@solana/web3.js";
import { expect } from "chai";
import { describe } from "mocha";
import { toBytesInt32 } from "../app/src/utils/conversion";
import { GrantsProgram } from "../app/src/idl/grants_program";
import donations from "./suites/donations.test";
import grants from "./suites/grants.test";
import matches from "./suites/matches.test";
describe("grants-program", function () {
// Configure the client to use the local cluster.
const provider = anchor.AnchorProvider.env();
anchor.setProvider(provider);
const program = anchor.workspace.GrantsProgram as Program<GrantsProgram>;
const programWallet = (program.provider as anchor.AnchorProvider).wallet;
let programInfoPDA: PublicKey;
before(async function () {
this.provider = provider;
this.program = program;
this.programWallet = programWallet;
this.admin = await generateFundedKeypair();
this.generateFundedKeypair = generateFundedKeypair;
this.createGrant = createGrant;
this.createGrantWithDueDate = createGrantWithDueDate;
programInfoPDA = await initializeProgramInfo(this.admin);
this.programInfoPDA = programInfoPDA;
});
it("Initializes Grant Program Info!", async function () {
// Only assert it because we need it to initialize during `before` hook
// to be able to use `.only` on other specific tests.
const programInfo = await program.account.programInfo.fetch(this.programInfoPDA);
expect(programInfo.grantsCount).to.eql(0);
expect(programInfo.admin.toString()).to.eql(this.admin.publicKey.toString());
});
describe("Grants", grants.bind(this)); // execute the grants suite
describe("Matches", matches.bind(this)); // execute the matches suite
describe("Donations", donations.bind(this)); // execute the donations suite
// *** Rest of helper functions ***
async function initializeProgramInfo(admin: Keypair) {
const [newProgramInfoPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("program_info")],
program.programId
);
const programInfo = await program.account.programInfo.fetchNullable(
newProgramInfoPDA
);
if (programInfo === null) {
const _tx = await program.methods
.initializeProgramInfo()
.accounts({
admin: admin.publicKey,
programInfo: newProgramInfoPDA,
})
.signers([admin])
.rpc();
}
// console.log("programInfo address: " + programInfoPDA.toString());
return newProgramInfoPDA;
}
async function generateFundedKeypair(): Promise<anchor.web3.Keypair> {
const newKeypair = anchor.web3.Keypair.generate();
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: programWallet.publicKey,
toPubkey: newKeypair.publicKey,
lamports: 5 * LAMPORTS_PER_SOL,
})
);
const _confirmation = await (
program.provider as anchor.AnchorProvider
).sendAndConfirm(transaction);
return newKeypair;
}
async function createGrantWithDueDate(author: Keypair, dueDate: number) {
const targetLamports = new BN(LAMPORTS_PER_SOL);
const info = "";
const programInfo = await program.account.programInfo.fetch(programInfoPDA);
const [newGrantPDA, _grantBump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("grant"), toBytesInt32(programInfo.grantsCount)],
program.programId
);
const [matchingDonationPDA, _bump1] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), newGrantPDA.toBuffer()],
program.programId
);
try {
await program.methods
.createGrant(info, targetLamports, new BN(dueDate))
.accounts({
grant: newGrantPDA,
programInfo: programInfoPDA,
author: author.publicKey,
matchingDonation: matchingDonationPDA,
})
.signers([author])
.rpc();
} catch (err) {
console.log(err);
expect.fail();
}
return newGrantPDA;
}
async function createGrant(author: Keypair) {
// Unix timestamp in solana is in seconds, getTime() gives it in milliseconds
const dueDate = Math.floor(new Date().getTime() / 1000) + 60 * 60 * 24 * 7;
return createGrantWithDueDate(author, dueDate);
}
});
export const matchedDonation = (lamports: number) => {
// 1:1
return lamports;
}
| 0
|
solana_public_repos/solana-grants/tests
|
solana_public_repos/solana-grants/tests/suites/donations.test.ts
|
import * as anchor from "@project-serum/anchor";
import { AnchorError, BN, Program } from "@project-serum/anchor";
import { encode } from "@project-serum/anchor/dist/cjs/utils/bytes/utf8";
import {
Keypair,
LAMPORTS_PER_SOL,
PublicKey,
SendTransactionError,
} from "@solana/web3.js";
import { assert, expect } from "chai";
import { processed } from "../../app/src/constants";
import { GrantsProgram } from "../../app/src/idl/grants_program";
import getProgram from "../../app/src/instructions/api/getProgram";
import { makeDonation, cancelGrant } from "../../app/src/transactions";
import { toBytesInt32 } from "../../app/src/utils/conversion";
import { matchedDonation } from "../grants-program";
export default function donations() {
// to be initialized in the `before` method from the context
let provider: anchor.Provider;
let program: Program<GrantsProgram>;
let programInfoPDA: PublicKey;
let admin: Keypair;
let generateFundedKeypair: () => Promise<Keypair>;
let createGrant: (author: Keypair) => Promise<PublicKey>;
let createGrantWithDueDate: (
author: Keypair,
dueDate: number
) => Promise<PublicKey>;
// to be initialized in the `beforeEach` method
let author: Keypair;
let grantPDA: PublicKey;
before(async function () {
provider = this.test.ctx.provider;
program = this.test.ctx.program;
programInfoPDA = this.test.ctx.programInfoPDA;
admin = this.test.ctx.admin;
generateFundedKeypair = this.test.ctx.generateFundedKeypair;
createGrant = this.test.ctx.createGrant;
createGrantWithDueDate = this.test.ctx.createGrantWithDueDate;
// put some money on the matching account
await provider.connection.requestAirdrop(
programInfoPDA,
100 * LAMPORTS_PER_SOL
);
});
beforeEach(async () => {
author = await generateFundedKeypair();
grantPDA = await createGrant(author);
// Set matching eligibility to true
await program.methods
.eligibleMatching()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
grant: grantPDA,
})
.signers([admin])
.rpc();
});
async function createDonation(
grantPDA: PublicKey,
donor: Keypair,
lamports: BN
): Promise<PublicKey> {
// donationPDA with grant key + donor key
const [donationPDA, _bump0] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("donation"), grantPDA.toBuffer(), donor.publicKey.toBuffer()],
program.programId
);
// donationIndexPDA with grant key + latest donor count
const totalDonors = (await program.account.grant.fetch(grantPDA))
.totalDonors;
const [donationIndexPDA, _bump1] =
await anchor.web3.PublicKey.findProgramAddress(
[
encode("donation_index"),
grantPDA.toBuffer(),
toBytesInt32(totalDonors),
],
program.programId
);
const [matchingDonationPDA, _bump2] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
try {
await program.methods
.createDonation(lamports)
.accounts({
payer: donor.publicKey,
grant: grantPDA,
donation: donationPDA,
donationIndex: donationIndexPDA,
matchingDonation: matchingDonationPDA,
programInfo: programInfoPDA,
})
.signers([donor])
.rpc();
} catch (err) {
// console.info(err); // uncomment to see the error
throw err;
}
return donationPDA;
}
it("creates a donation", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(0.7 * LAMPORTS_PER_SOL);
const initialGrantBalance = await provider.connection.getBalance(grantPDA);
// Act
const donationPDA = await createDonation(grantPDA, donor, lamports);
// Assert
let donation = await program.account.donation.fetch(donationPDA);
const grantBalance = await provider.connection.getBalance(grantPDA);
expect(donation.payer).to.eql(donor.publicKey);
expect(donation.grant).to.eql(grantPDA);
assert(donation.amount.eq(lamports));
expect(donation.state).to.eql({ funded: {} });
expect(grantBalance).to.eql(
initialGrantBalance +
lamports.toNumber() +
matchedDonation(lamports.toNumber())
);
});
it("releases the grant funds to the author", async () => {
// Arrange
const initialGrantBalance = await provider.connection.getBalance(grantPDA);
const initialAuthorBalance = await provider.connection.getBalance(
author.publicKey
);
const donor = await generateFundedKeypair();
const lamports = new BN(0.7 * LAMPORTS_PER_SOL);
await createDonation(grantPDA, donor, lamports);
// Act
await program.methods
.releaseGrant()
.accounts({
admin: admin.publicKey,
author: author.publicKey,
grant: grantPDA,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
// Assert
const grantBalance = await provider.connection.getBalance(grantPDA);
const authorBalance = await provider.connection.getBalance(
author.publicKey
);
const grant = await program.account.grant.fetch(grantPDA);
expect(grant.fundingState).to.eql({ released: {} });
expect(grantBalance).to.eql(initialGrantBalance);
expect(authorBalance).to.eql(
initialAuthorBalance +
lamports.toNumber() +
matchedDonation(lamports.toNumber())
);
});
it("fails when trying to release same grant", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(0.7 * LAMPORTS_PER_SOL);
const _donationPDA = await createDonation(grantPDA, donor, lamports);
await program.methods
.releaseGrant()
.accounts({
admin: admin.publicKey,
author: author.publicKey,
grant: grantPDA,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
const grant = await program.account.grant.fetch(grantPDA);
expect(grant.fundingState).to.eql({ released: {} });
// Act
try {
await program.methods
.releaseGrant()
.accounts({
admin: admin.publicKey,
author: author.publicKey,
grant: grantPDA,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
// Assert
expect.fail("Should've failed but didn't");
} catch (_err) {
expect(_err).to.be.instanceOf(AnchorError);
const err: AnchorError = _err;
expect(err.error.errorCode.code).to.equal("ReleasedGrant");
expect(err.error.errorCode.number).to.equal(6001);
expect(err.program.equals(program.programId)).is.true;
}
});
it("fails when trying to release a cancelled grant", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(0.7 * LAMPORTS_PER_SOL);
const _donationPDA = await createDonation(grantPDA, donor, lamports);
await program.methods
.cancelGrantAdmin()
.accounts({
admin: admin.publicKey,
grant: grantPDA,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
const grant = await program.account.grant.fetch(grantPDA);
expect(grant.fundingState).to.eql({ cancelled: {} });
// Act
try {
await program.methods
.releaseGrant()
.accounts({
admin: admin.publicKey,
author: author.publicKey,
grant: grantPDA,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
// Assert
expect.fail("Should've failed but didn't");
} catch (_err) {
expect(_err).to.be.instanceOf(AnchorError);
const err: AnchorError = _err;
expect(err.error.errorCode.code).to.equal("CancelledGrant");
expect(err.error.errorCode.number).to.equal(6002);
expect(err.program.equals(program.programId)).is.true;
}
});
it("cannot create another donation account with same user and grant", async () => {
// Arrange
const donor = await generateFundedKeypair();
const donationPDA = await createDonation(
grantPDA,
donor,
new BN(2.4 * LAMPORTS_PER_SOL)
);
const [donationIndexPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("donation_index"), grantPDA.toBuffer(), Buffer.from([1])],
program.programId
);
const [matchingDonationPDA, _bump1] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
try {
// Act
await program.methods
.createDonation(new BN(0.7 * LAMPORTS_PER_SOL))
.accounts({
payer: donor.publicKey,
donation: donationPDA,
donationIndex: donationIndexPDA,
grant: grantPDA,
matchingDonation: matchingDonationPDA,
programInfo: programInfoPDA,
})
.signers([donor])
.rpc();
// Assert
expect.fail("This should've failed but didn't");
} catch (_err) {
expect(_err).to.be.instanceOf(SendTransactionError);
}
});
it("creates another donation with other user", async () => {
const donor1 = await generateFundedKeypair();
await createDonation(grantPDA, donor1, new BN(2.1 * LAMPORTS_PER_SOL));
const donor2 = await generateFundedKeypair();
await createDonation(grantPDA, donor2, new BN(2.1 * LAMPORTS_PER_SOL));
});
it("cancels a donation", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
const donationPDA = await createDonation(grantPDA, donor, lamports);
const payer = donor.publicKey;
const initialGrantBalance = await provider.connection.getBalance(grantPDA);
const initialDonorBalance = await provider.connection.getBalance(payer);
await program.methods
.cancelGrantAdmin()
.accounts({
admin: admin.publicKey,
grant: grantPDA,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
// Act
await program.methods
.cancelDonation()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
donation: donationPDA,
payer,
grant: grantPDA,
})
.signers([admin])
.rpc();
// Assert
const donation = await program.account.donation.fetch(donationPDA);
const grantBalance = await provider.connection.getBalance(grantPDA);
const donorBalance = await provider.connection.getBalance(payer);
expect(grantBalance).to.be.eql(initialGrantBalance - lamports.toNumber());
expect(donorBalance).to.be.eql(initialDonorBalance + lamports.toNumber());
expect(donation.state).to.eql({ cancelled: {} });
});
it("forbids cancelling a donation when the grant is still active", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
const donationPDA = await createDonation(grantPDA, donor, lamports);
const payer = donor.publicKey;
// Act
try {
await program.methods
.cancelDonation()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
donation: donationPDA,
payer,
grant: grantPDA,
})
.signers([admin])
.rpc();
// Assert
expect.fail("This should not be allowed");
} catch (e) {
expect(e).to.be.instanceOf(AnchorError);
const err: AnchorError = e;
expect(err.error.errorCode.code).to.equal("GrantStillActive");
expect(err.error.errorCode.number).to.equal(6003);
expect(err.program.equals(program.programId)).is.true;
}
});
describe("When a donation is cancelled", function () {
it("fails when trying to cancel it again", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
const donationPDA = await createDonation(grantPDA, donor, lamports);
await program.methods
.cancelGrantAdmin()
.accounts({
admin: admin.publicKey,
grant: grantPDA,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
const payer = donor.publicKey;
await program.methods
.cancelDonation()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
donation: donationPDA,
payer,
grant: grantPDA,
})
.signers([admin])
.rpc();
const donation = await program.account.donation.fetch(donationPDA);
expect(donation.state).to.eql({ cancelled: {} });
try {
// Act
await program.methods
.cancelDonation()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
donation: donationPDA,
payer,
grant: grantPDA,
})
.signers([admin])
.rpc();
// Assert
expect.fail("Should've failed but didn't");
} catch (_err) {
expect(_err).to.be.instanceOf(AnchorError);
const err: AnchorError = _err;
expect(err.error.errorCode.code).to.equal("CancelledDonation");
expect(err.error.errorCode.number).to.equal(6000);
expect(err.program.equals(program.programId)).is.true;
}
});
});
it("fails when donating to an expired grant", async () => {
// Arrange
grantPDA = await createGrantWithDueDate(
author,
Math.floor(Date.now() / 1000) + 1
);
await program.methods
.eligibleMatching()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
grant: grantPDA,
})
.signers([admin])
.rpc();
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
await new Promise((resolve) => setTimeout(resolve, 2000));
// Act
try {
await createDonation(grantPDA, donor, lamports);
expect.fail("Should've failed but didn't");
} catch (e) {
// Assert
expect(e).to.be.instanceOf(AnchorError);
const err: AnchorError = e;
expect(err.error.errorCode.code).to.equal("DueDateInPast");
expect(err.error.errorCode.number).to.equal(6004);
expect(err.program.equals(program.programId)).is.true;
}
});
it("same user and grant can increment the donation amount", async () => {
// Arrange
const donor = await generateFundedKeypair();
const donationPDA = await createDonation(
grantPDA,
donor,
new BN(1 * LAMPORTS_PER_SOL)
);
const [matchingDonationPDA, _bump2] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
// Act
await program.methods
.incrementDonation(new BN(1 * LAMPORTS_PER_SOL))
.accounts({
donation: donationPDA,
payer: donor.publicKey,
grant: grantPDA,
matchingDonation: matchingDonationPDA,
programInfo: programInfoPDA,
})
.signers([donor])
.rpc();
// Assert
const donation = await program.account.donation.fetch(donationPDA);
const grantBalance = await provider.connection.getBalance(grantPDA);
expect(donation.state).to.eql({ funded: {} });
expect(grantBalance).to.be.above(2 * LAMPORTS_PER_SOL);
});
it("donations can be fetched when we only know the grant", async () => {
// Arrange
const donor = await generateFundedKeypair();
const totalDonors = (await program.account.grant.fetch(grantPDA))
.totalDonors;
const donationPDA = await createDonation(
grantPDA,
donor,
new BN(1 * LAMPORTS_PER_SOL)
);
const [donationIndexPDA, _] =
await anchor.web3.PublicKey.findProgramAddress(
[
encode("donation_index"),
grantPDA.toBuffer(),
toBytesInt32(totalDonors),
],
program.programId
);
// Act
const donationIndex = await program.account.link.fetch(donationIndexPDA);
// Assert
expect(donationIndex.address).to.eql(donationPDA);
const donation = await program.account.donation.fetch(
donationIndex.address
);
expect(donation.payer).to.eql(donor.publicKey);
});
describe("makeDonation helper", () => {
it("creates a new donation", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
const provider = new anchor.AnchorProvider(
program.provider.connection,
new anchor.Wallet(donor),
{ preflightCommitment: processed }
);
const program_ = getProgram(provider);
// Act
let sig = await makeDonation(
program_,
donor.publicKey,
grantPDA,
lamports
);
// const _txSignature = await provider.sendAndConfirm(transaction, [donor]);
// Assert
const [donationPDA, _] = await anchor.web3.PublicKey.findProgramAddress(
[encode("donation"), grantPDA.toBuffer(), donor.publicKey.toBuffer()],
program.programId
);
const donation = await program.account.donation.fetch(donationPDA);
expect(donation.state).to.eql({ funded: {} });
assert(donation.amount.eq(lamports));
});
it("increments an existing donation", async () => {
// Arrange
// make first donation
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
const provider = new anchor.AnchorProvider(
program.provider.connection,
new anchor.Wallet(donor),
{ preflightCommitment: processed }
);
const program_ = getProgram(provider);
let transaction = await makeDonation(
program_,
donor.publicKey,
grantPDA,
lamports
);
// let _txSignature = await provider.sendAndConfirm(transaction, [donor]);
// Act
// make second donation
transaction = await makeDonation(
program_,
donor.publicKey,
grantPDA,
lamports
);
// _txSignature = await provider.sendAndConfirm(transaction, [donor]);
// Assert
// fetch the donation
const [donationPDA, _bump0] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("donation"), grantPDA.toBuffer(), donor.publicKey.toBuffer()],
program.programId
);
const donation = await program.account.donation.fetch(donationPDA);
expect(donation.state).to.eql({ funded: {} });
assert(donation.amount.eq(lamports.mul(new BN(2))));
});
});
describe("cancelGrant helper", function () {
it("cancels the grant and refunds all the grant's donors", async function () {
// Arrange
const initialGrantBalance = await provider.connection.getBalance(
grantPDA
);
const initialMatcherBalance = await provider.connection.getBalance(
programInfoPDA
);
const donor1 = await generateFundedKeypair();
const donor2 = await generateFundedKeypair();
const donor3 = await generateFundedKeypair();
const lamports1 = new BN(2.1 * LAMPORTS_PER_SOL);
const lamports2 = new BN(3.5 * LAMPORTS_PER_SOL);
const lamports3 = new BN(4.2 * LAMPORTS_PER_SOL);
const donation1PDA = await createDonation(grantPDA, donor1, lamports1);
const donation2PDA = await createDonation(grantPDA, donor2, lamports2);
const donation3PDA = await createDonation(grantPDA, donor3, lamports3);
const initialDonor1Balance = await provider.connection.getBalance(
donor1.publicKey
);
const initialDonor2Balance = await provider.connection.getBalance(
donor2.publicKey
);
const initialDonor3Balance = await provider.connection.getBalance(
donor3.publicKey
);
// Act
let tx = await cancelGrant(program, grantPDA, admin.publicKey);
try {
await provider.sendAndConfirm(tx, [admin]);
} catch (e) {
console.log(e);
expect.fail();
}
// Assert
const grantBalance = await provider.connection.getBalance(grantPDA);
const matcherBalance = await provider.connection.getBalance(
programInfoPDA
);
const grant = await program.account.grant.fetch(grantPDA);
const donation1 = await program.account.donation.fetch(donation1PDA);
const donation2 = await program.account.donation.fetch(donation2PDA);
const donation3 = await program.account.donation.fetch(donation3PDA);
const donor1Balance = await provider.connection.getBalance(
donor1.publicKey
);
const donor2Balance = await provider.connection.getBalance(
donor2.publicKey
);
const donor3Balance = await provider.connection.getBalance(
donor3.publicKey
);
expect(grant.fundingState).to.eql({ cancelled: {} });
expect(donation1.state).to.eql({ cancelled: {} });
expect(donation2.state).to.eql({ cancelled: {} });
expect(donation3.state).to.eql({ cancelled: {} });
expect(donor1Balance).to.eql(initialDonor1Balance + lamports1.toNumber());
expect(donor2Balance).to.eql(initialDonor2Balance + lamports2.toNumber());
expect(donor3Balance).to.eql(initialDonor3Balance + lamports3.toNumber());
expect(grantBalance).to.eql(initialGrantBalance);
expect(matcherBalance).to.eql(initialMatcherBalance);
});
});
}
| 0
|
solana_public_repos/solana-grants/tests
|
solana_public_repos/solana-grants/tests/suites/grants.test.ts
|
import * as anchor from "@project-serum/anchor";
import {AnchorError, BN, Program} from "@project-serum/anchor";
import {GrantsProgram} from "../../target/types/grants_program";
import {LAMPORTS_PER_SOL, PublicKey, Keypair} from "@solana/web3.js";
import {encode} from "@project-serum/anchor/dist/cjs/utils/bytes/utf8";
import {assert, expect} from "chai";
import { toBytesInt32 } from "../../app/src/utils/conversion";
export default function suite() {
// initialize in `before` from the context
let program: Program<GrantsProgram>;
let admin: Keypair;
let programInfoPDA: PublicKey;
let generateFundedKeypair: () => Promise<Keypair>;
// create new for every test in `beforeEach`
let grantPDA: PublicKey;
let author: Keypair;
before( function() {
program = this.test.ctx.program;
programInfoPDA = this.test.ctx.programInfoPDA;
admin = this.test.ctx.admin;
generateFundedKeypair = this.test.ctx.generateFundedKeypair;
})
// runs before each test, updates the grant PDA and author keypair
beforeEach(async () => {
const programInfo = await program.account.programInfo.fetch(programInfoPDA)
const [newGrantPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("grant"), toBytesInt32(programInfo.grantsCount)],
program.programId
);
grantPDA = newGrantPDA;
author = await generateFundedKeypair();
});
async function createGrant(author: Keypair) {
const targetLamports = new BN(LAMPORTS_PER_SOL);
const dueDate = new BN(new Date().getTime() + 1000 * 60 * 60 * 24 * 7);
const info = "";
const [matchingDonationPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
await program.methods
.createGrant(info, targetLamports, dueDate)
.accounts({
grant: grantPDA,
programInfo: programInfoPDA,
author: author.publicKey,
matchingDonation: matchingDonationPDA,
})
.signers([author])
.rpc();
return program.account.grant.fetch(grantPDA);
}
it("Creates a grant", async () => {
const targetLamports = new BN(LAMPORTS_PER_SOL);
// const dueDate = 123124;
const grant = await createGrant(author);
// TODO: Check for due date
// expect(grant.dueDate).to.eql(dueDate);
expect(grant.author).to.eql(author.publicKey);
expect(grant.totalDonors).to.eql(0);
assert(grant.targetLamports.eq(targetLamports));
expect(grant.fundingState).to.eql({ active: {} });
expect(grant.info).to.eql("")
})
it("Is updating the number of grants", async () => {
await createGrant(author);
const grantsCount = (await program.account.programInfo.fetch(programInfoPDA)).grantsCount;
expect(grantsCount).to.eql(2)
})
it("admin can cancel the grant", async () => {
const programInfo = await program.account.programInfo.fetch(programInfoPDA)
await createGrant(author);
await program.methods
.cancelGrantAdmin()
.accounts({
grant: grantPDA,
admin: programInfo.admin,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
const grant = await program.account.grant.fetch(grantPDA)
expect(grant.fundingState).to.eql({ cancelled: {} })
})
it("author can cancel the grant", async () => {
await createGrant(author);
await program.methods
.cancelGrantAuthor()
.accounts({
grant: grantPDA,
author: author.publicKey,
})
.signers([author])
.rpc();
const grant = await program.account.grant.fetch(grantPDA)
expect(grant.fundingState).to.eql({ cancelled: {} })
})
it("admin can make grant eligible matching", async () => {
const programInfo = await program.account.programInfo.fetch(programInfoPDA)
await createGrant(author);
await program.methods
.eligibleMatching()
.accounts({
grant: grantPDA,
admin: programInfo.admin,
programInfo: programInfoPDA,
})
.signers([admin])
.rpc();
const grant = await program.account.grant.fetch(grantPDA)
expect(grant.isMatchingEligible).to.eql(true)
})
it("author cannot make grant eligible matching", async () => {
await createGrant(author);
try {
await program.methods
.eligibleMatching()
.accounts({
grant: grantPDA,
admin: author.publicKey,
programInfo: programInfoPDA,
})
.signers([author])
.rpc();
expect.fail("Author can make grant eligible matching, but it should not be allowed");
} catch (e) {
expect(e).to.be.instanceOf(AnchorError);
const err: AnchorError = e;
expect(err.error.errorCode.code).to.equal("ConstraintHasOne");
expect(err.error.errorCode.number).to.equal(2001);
expect(err.program.equals(program.programId)).is.true;
}
});
}
| 0
|
solana_public_repos/solana-grants/tests
|
solana_public_repos/solana-grants/tests/suites/matches.test.ts
|
import * as anchor from "@project-serum/anchor";
import { AnchorError, BN, Program, Provider } from "@project-serum/anchor";
import { encode } from "@project-serum/anchor/dist/cjs/utils/bytes/utf8";
import {
Keypair,
LAMPORTS_PER_SOL,
PublicKey,
SendTransactionError,
SystemProgram,
Transaction,
} from "@solana/web3.js";
import { expect, assert } from "chai";
import { makeDonation } from "../../app/src/transactions";
import { GrantsProgram } from "../../target/types/grants_program";
export default function () {
// to be initialized in the `before` method from the context
let provider: Provider;
let program: Program<GrantsProgram>;
let programInfoPDA: PublicKey;
let admin: Keypair;
let generateFundedKeypair: () => Promise<Keypair>;
let createGrant: (author: Keypair) => Promise<PublicKey>;
// to be initialized in the `beforeEach` method
let author: Keypair;
let grantPDA: PublicKey;
before(async function () {
provider = this.test.ctx.provider;
program = this.test.ctx.program;
programInfoPDA = this.test.ctx.programInfoPDA;
admin = this.test.ctx.admin;
generateFundedKeypair = this.test.ctx.generateFundedKeypair;
createGrant = this.test.ctx.createGrant;
});
beforeEach(async () => {
author = await generateFundedKeypair();
grantPDA = await createGrant(author);
});
it("creates a new matching account on grant creation", async () => {
// Assumes a grant was created with the `beforeEach` hook
const [matchingDonationPDA, _bump] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
const matchingDonation = await program.account.donation.fetch(
matchingDonationPDA
);
expect(matchingDonation.amount.eq(new BN(0))).to.be.true;
expect(matchingDonation.grant).to.eql(grantPDA);
expect(matchingDonation.payer).to.eql(programInfoPDA);
});
describe("without matching funds", function () {
before(async () => {
// TODO: drain the matcher account to not depend on the suite execution order
// right now it is failing to verify the signature for the PDA
// const balance = await provider.connection.getBalance(programInfoPDA);
// const transaction = new Transaction().add(
// SystemProgram.transfer({
// fromPubkey: programInfoPDA,
// toPubkey: anchor.web3.Keypair.generate().publicKey,
// lamports: balance,
// })
// );
// await (program.provider as anchor.AnchorProvider).sendAndConfirm(transaction);
});
beforeEach(async function () {
// Set matching eligibility to true
await program.methods
.eligibleMatching()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
grant: grantPDA,
})
.signers([admin])
.rpc();
});
it("fails to match donations on donation creation", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
// Act
let transaction = await makeDonation(program, donor.publicKey, grantPDA, lamports);
try {
await provider.sendAndConfirm(transaction, [donor]);
// Assert
expect.fail("should have failed to match");
} catch (e) {
expect(e).to.be.instanceOf(SendTransactionError);
const err = AnchorError.parse(e.logs);
expect(err.error.errorCode.code).to.equal("InsufficientFunds");
expect(err.program).to.eql(program.programId);
}
});
});
describe("with matching eligibility and matcher funds", function () {
before(async () => {
// put some money on the matching account
await provider.connection.requestAirdrop(
programInfoPDA,
100 * LAMPORTS_PER_SOL
);
});
beforeEach(async function () {
// Set matching eligibility to true
await program.methods
.eligibleMatching()
.accounts({
admin: admin.publicKey,
programInfo: programInfoPDA,
grant: grantPDA,
})
.signers([admin])
.rpc();
});
it("matches each donation on a 1:1 basis", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
// Act
let transaction = await makeDonation(program, donor.publicKey, grantPDA, lamports);
const tx = await provider.sendAndConfirm(transaction, [donor]);
// Assert
const [matchingDonationPDA, _] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
const matchingDonation = await program.account.donation.fetch(
matchingDonationPDA
);
const grantBalance = await provider.connection.getBalance(grantPDA);
expect(matchingDonation.amount.toNumber()).to.eq(lamports.toNumber());
expect(grantBalance).to.be.above(2 * lamports.toNumber());
});
it("updates the matching amount when incrementing a donation", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
let transaction1 = await makeDonation(
program,
donor.publicKey,
grantPDA,
lamports
);
await provider.sendAndConfirm(transaction1, [donor]);
// Act
let transaction2 = await makeDonation(program,
donor.publicKey,
grantPDA,
lamports
);
await provider.sendAndConfirm(transaction2, [donor]);
// Assert
const [matchingDonationPDA, _] =
await anchor.web3.PublicKey.findProgramAddress(
[encode("matching_donation"), grantPDA.toBuffer()],
program.programId
);
const matchingDonation = await program.account.donation.fetch(
matchingDonationPDA
);
const grantBalance = await provider.connection.getBalance(grantPDA);
expect(matchingDonation.amount.toNumber()).to.eq(2 * lamports.toNumber());
expect(grantBalance).to.be.above(4 * lamports.toNumber());
});
});
describe("without matching eligibility", function () {
it("fails to match donations on donation creation", async () => {
// Arrange
const donor = await generateFundedKeypair();
const lamports = new BN(2.1 * LAMPORTS_PER_SOL);
const initialGrantBalance = await provider.connection.getBalance(
grantPDA
);
// Act
let transaction = await makeDonation(program, donor.publicKey, grantPDA, lamports);
try {
await provider.sendAndConfirm(transaction, [donor]);
// Assert
expect.fail("should have failed to match");
} catch (e) {
expect(e).to.be.instanceOf(SendTransactionError);
const err = AnchorError.parse(e.logs);
expect(err.error.errorCode.code).to.equal("NotMatchingEligible");
expect(err.program.equals(program.programId)).is.true;
}
});
});
}
| 0
|
solana_public_repos/solana-grants/programs
|
solana_public_repos/solana-grants/programs/grants-program/Cargo.toml
|
[package]
name = "grants-program"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "grants_program"
[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
[profile.release]
overflow-checks = true
[dependencies]
anchor-lang = "0.24.2"
| 0
|
solana_public_repos/solana-grants/programs
|
solana_public_repos/solana-grants/programs/grants-program/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/solana-grants/programs/grants-program
|
solana_public_repos/solana-grants/programs/grants-program/src/lib.rs
|
//! This library has all the logic for the smart contract of Solana Grants.
use anchor_lang::prelude::*;
use instructions::*;
pub mod state;
mod instructions;
mod errors;
declare_id!("8Gz5WWV7T2w8gBBVa4bcsmXqGETjhoBwKN5gLhgXkAQf");
/// Main program entrypoint
#[program]
pub mod grants_program {
#![warn(missing_docs)]
use super::*;
/// Initializes a grant and updates the program info's grant count
pub fn create_grant(ctx: Context<CreateGrant>, info: String, target_lamports: u64, due_date: i64) -> Result<()> {
instructions::create_grant(ctx, info, target_lamports, due_date)
}
/// Creates a donation which transfers money from the payer to the grant
pub fn create_donation(ctx: Context<CreateDonation>, lamports: u64) -> Result<()> {
instructions::create_donation(ctx, lamports)
}
/// Increments the amount donated from a payer to a grant, effectively transferring it
pub fn increment_donation(ctx: Context<IncrementDonation>, lamports: u64) -> Result<()> {
instructions::increment_donation(ctx, lamports)
}
/// Releases the funds from the grant to the grant creator account
pub fn release_grant(ctx: Context<ReleaseGrant>) -> Result<()> {
instructions::release_grant(ctx)
}
/// Cancels a specific donation and refunds the money to the donor,
/// this need authorization by an admin or DAO.
pub fn cancel_donation(ctx: Context<CancelDonation>) -> Result<()> {
instructions::cancel_donation(ctx)
}
/// Initializes the program info data, which sets the admin.
pub fn initialize_program_info(ctx: Context<Initialize>) -> Result<()> {
instructions::initialize(ctx)
}
/// Lets an admin cancel a grant
pub fn cancel_grant_admin(ctx: Context<CancelGrantAdmin>) -> Result<()> {
instructions::cancel_grant_admin(ctx)
}
/// Lets an author cancel a grant
pub fn cancel_grant_author(ctx: Context<CancelGrantAuthor>) -> Result<()> {
instructions::cancel_grant_author(ctx)
}
/// Sets the matching eligibility to true
pub fn eligible_matching(ctx: Context<EligibleMatching>) -> Result<()> {
instructions::eligible_matching(ctx)
}
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/eligible_matching.rs
|
use crate::state::{Grant, ProgramInfo};
use anchor_lang::prelude::*;
/// This instruction lets an admin make a grant eligible for matching.
#[derive(Accounts)]
pub struct EligibleMatching<'info> {
admin: Signer<'info>,
#[account(
mut,
seeds = [b"grant", grant.grant_num.to_be_bytes().as_ref()],
bump = grant.bump,
)]
grant: Account<'info, Grant>,
#[account(
seeds = [ProgramInfo::SEED.as_bytes().as_ref()],
bump = program_info.bump,
has_one = admin
)]
program_info: Account<'info, ProgramInfo>,
}
pub fn eligible_matching(ctx: Context<EligibleMatching>) -> Result<()> {
ctx.accounts.grant.is_active()?;
// making grant matching eligible
ctx.accounts.grant.is_matching_eligible = true;
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/release_grant.rs
|
use anchor_lang::{prelude::*, solana_program::sysvar::rent};
use crate::{state::{ProgramInfo, Grant, FundingState}, errors::GrantError};
#[derive(Accounts)]
pub struct ReleaseGrant<'info> {
admin: Signer<'info>,
#[account(
has_one = admin,
seeds = [ProgramInfo::SEED.as_bytes().as_ref()],
bump = program_info.bump,
)]
program_info: Account<'info, ProgramInfo>,
#[account(
mut,
has_one = author,
seeds = [b"grant", grant.grant_num.to_be_bytes().as_ref()],
bump = grant.bump,
)]
grant: Account<'info, Grant>,
#[account(mut)]
/// CHECK: We check that the grant has this author
author: AccountInfo<'info>,
}
pub fn release_grant(ctx: Context<ReleaseGrant>) -> Result<()> {
// Check that it is releasable
match ctx.accounts.grant.funding_state {
FundingState::Active => Ok(()),
FundingState::Released => err!(GrantError::ReleasedGrant),
FundingState::Cancelled => err!(GrantError::CancelledGrant),
}?;
// transfer lamports from grant to creator, keep enough for rent
let balance = ctx.accounts.grant
.to_account_info().try_borrow_lamports()?.clone() - Rent::get()?.minimum_balance( 8 + Grant::MAXIMUM_SPACE);
**ctx.accounts.grant
.to_account_info().try_borrow_mut_lamports()? -= balance;
**ctx.accounts.author.try_borrow_mut_lamports()? += balance;
// update grant state
ctx.accounts.grant.funding_state = FundingState::Released;
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/create_grant.rs
|
use crate::{
errors::GrantError,
state::{Grant, ProgramInfo, Donation},
};
use anchor_lang::prelude::*;
#[derive(Accounts)]
pub struct CreateGrant<'info> {
#[account(mut)]
author: Signer<'info>,
#[account(
init,
payer = author,
seeds = [b"grant", program_info.grants_count.to_be_bytes().as_ref()],
bump,
space = 8 + Grant::MAXIMUM_SPACE
)]
grant: Account<'info, Grant>,
#[account(
init,
payer = author,
seeds = [b"matching_donation", grant.key().as_ref()],
bump,
space = 8 + Donation::MAXIMUM_SPACE
)]
matching_donation: Account<'info, Donation>,
#[account(mut, seeds = [ProgramInfo::SEED.as_bytes().as_ref()], bump = program_info.bump)]
program_info: Account<'info, ProgramInfo>,
system_program: Program<'info, System>,
}
pub fn create_grant(
ctx: Context<CreateGrant>,
info: String,
target_lamports: u64,
due_date: i64,
) -> Result<()> {
// checking if info is longer than 45 characters
if info.chars().count() > 45 {
return err!(GrantError::InfoTooLong);
}
if due_date <= Clock::get()?.unix_timestamp {
return err!(GrantError::DueDateInPast);
}
ctx.accounts.grant.set_inner(Grant::new(
*ctx.bumps
.get("grant")
.expect("We should've gotten the grant's canonical bump"),
ctx.accounts.author.key(),
info,
target_lamports,
due_date,
ctx.accounts.program_info.grants_count as u32,
));
ctx.accounts.matching_donation.set_inner(Donation::new(
*ctx.bumps
.get("matching_donation")
.expect("We should've gotten the matching donation's canonical bump"),
ctx.accounts.program_info.key(),
ctx.accounts.grant.key(),
0,
));
// Increment the number of grants by one
ctx.accounts.program_info.increment_grants_count();
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/initialize_program_info.rs
|
use anchor_lang::prelude::*;
use crate::state::{ProgramInfo};
#[derive(Accounts)]
pub struct Initialize<'info> {
#[account(mut)]
admin: Signer<'info>,
#[account(
init,
payer = admin,
seeds = [ProgramInfo::SEED.as_bytes().as_ref()],
bump,
space = 8 + ProgramInfo::MAXIMUM_SPACE)]
program_info: Account<'info, ProgramInfo>,
system_program: Program<'info, System>,
}
pub fn initialize(ctx: Context<Initialize>) -> Result<()> {
ctx.accounts.program_info.set_inner(
ProgramInfo::new(
*ctx.bumps.get(ProgramInfo::SEED).expect("We should've gotten the program_info's canonical bump"),
ctx.accounts.admin.key()
)
);
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/increment_donation.rs
|
use anchor_lang::{prelude::*, solana_program::{program::invoke, system_instruction}};
use crate::{state::{Donation, Grant, ProgramInfo}, errors::DonationError};
#[derive(Accounts)]
pub struct IncrementDonation<'info> {
#[account(
mut,
has_one = payer,
has_one = grant,
seeds = [
Donation::SEED_PREFIX.as_ref(),
donation.grant.as_ref(),
donation.payer.as_ref()
],
bump = donation.bump()
)]
donation: Account<'info, Donation>,
#[account(mut)]
/// CHECK: We check that the donation has this payer
payer: Signer<'info>,
#[account(
mut,
seeds = [b"matching_donation", grant.key().as_ref()],
bump,
)]
matching_donation: Account<'info, Donation>,
#[account(mut, seeds = [ProgramInfo::SEED.as_bytes().as_ref()], bump = program_info.bump)]
program_info: Account<'info, ProgramInfo>,
#[account(
mut,
seeds = [b"grant", grant.grant_num.to_be_bytes().as_ref()],
bump = grant.bump,
)]
/// CHECK: We check that the donation has this grant
grant: Account<'info, Grant>,
system_program: Program<'info, System>,
}
/// Transfers the lamports from the payer to the grant
/// on an existing donation, and increments the match.
///
/// Returns true if the donation was matched, false otherwise.
pub fn increment_donation(ctx: Context<IncrementDonation>, lamports: u64) -> Result<()> {
// check that the grant is still available for funding
ctx.accounts.grant.is_active()?;
// transfer lamports from payer to grant
invoke(
&system_instruction::transfer(
&ctx.accounts.payer.key(),
&ctx.accounts.grant.key(),
lamports
),
&[
ctx.accounts.payer.to_account_info(),
ctx.accounts.grant.to_account_info(),
]
)?;
let previously_matched_amount = ctx.accounts.donation.matching_amount();
// update donation
ctx.accounts.donation.amount += lamports;
// make matching donation
if !ctx.accounts.grant.is_matching_eligible {
// not eligible for matching
return err!(DonationError::NotMatchingEligible);
}
// increment the matched amount
let matched_diff = ctx.accounts.donation.matching_amount() - previously_matched_amount;
let program_info = ctx.accounts.program_info.to_account_info();
let new_program_info_balance =
program_info
.try_borrow_lamports()?
.checked_sub(matched_diff)
.ok_or(DonationError::InsufficientFunds)?;
**program_info.try_borrow_mut_lamports()? = new_program_info_balance;
**ctx.accounts.grant.to_account_info().try_borrow_mut_lamports()? += matched_diff;
// update matching donation
ctx.accounts.matching_donation.amount += matched_diff;
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/mod.rs
|
mod initialize_program_info;
mod create_grant;
mod create_donation;
mod release_grant;
mod cancel_donation;
mod increment_donation;
mod cancel_grant_admin;
mod cancel_grant_author;
mod eligible_matching;
pub use initialize_program_info::*;
pub use create_grant::*;
pub use create_donation::*;
pub use release_grant::*;
pub use cancel_donation::*;
pub use increment_donation::*;
pub use cancel_grant_admin::*;
pub use cancel_grant_author::*;
pub use eligible_matching::*;
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/create_donation.rs
|
use crate::errors::DonationError;
use crate::state::Donation;
use crate::state::Grant;
use crate::state::Link;
use crate::state::ProgramInfo;
use anchor_lang::prelude::*;
use anchor_lang::solana_program::program::invoke;
use anchor_lang::solana_program::system_instruction;
#[derive(Accounts)]
pub struct CreateDonation<'info> {
#[account(mut)]
payer: Signer<'info>,
#[account(
mut,
seeds = [b"grant", grant.grant_num.to_be_bytes().as_ref()],
bump = grant.bump,
)]
grant: Account<'info, Grant>,
#[account(
init,
payer = payer,
space = 8 + Donation::MAXIMUM_SPACE,
seeds = [
Donation::SEED_PREFIX.as_bytes().as_ref(),
grant.key().as_ref(),
payer.key().as_ref()
],
bump
)]
donation: Account<'info, Donation>,
#[account(
init,
payer = payer,
space = 8 + Link::MAXIMUM_SPACE,
seeds = [
b"donation_index",
grant.key().as_ref(),
grant.total_donors.to_be_bytes().as_ref()
],
bump
)]
donation_index: Account<'info, Link>,
#[account(
mut,
seeds = [b"matching_donation", grant.key().as_ref()],
bump,
)]
matching_donation: Account<'info, Donation>,
#[account(mut, seeds = [ProgramInfo::SEED.as_bytes().as_ref()], bump = program_info.bump)]
program_info: Account<'info, ProgramInfo>,
system_program: Program<'info, System>,
}
/// Transfers the lamports from the payer to the grant,
/// and increments the match.
///
/// Returns true if the donation was matched, false otherwise.
pub fn create_donation(ctx: Context<CreateDonation>, lamports: u64) -> Result<()> {
// Make sure the grant is still active
ctx.accounts.grant.is_active()?;
if !ctx.accounts.grant.is_matching_eligible {
// not eligible for matching
return err!(DonationError::NotMatchingEligible)
}
// transfer lamports from payer to grant
invoke(
&system_instruction::transfer(
&ctx.accounts.payer.key(),
&ctx.accounts.grant.key(),
lamports
),
&[
ctx.accounts.payer.to_account_info(),
ctx.accounts.grant.to_account_info(),
]
)?;
// initialize donation account
let donation = Donation::new(
*ctx.bumps.get(Donation::SEED_PREFIX).expect("we should have gotten the donation's canonical bump"),
ctx.accounts.payer.key(),
ctx.accounts.grant.key(),
lamports,
);
ctx.accounts
.donation.set_inner(donation.clone());
// initialize index account
ctx.accounts
.donation_index
.set_inner(
Link::new(
*ctx.bumps.get("donation_index").expect("we should have gotten the donation index's canonical bump"),
ctx.accounts.donation.key()
)
);
// update grant data
ctx.accounts
.grant.total_donors += 1;
// make matching donation
let matching = donation.matching_amount();
let program_info = ctx.accounts.program_info.to_account_info();
let new_program_info_balance =
program_info
.try_borrow_lamports()?
.checked_sub(matching)
.ok_or(DonationError::InsufficientFunds)?;
**program_info.try_borrow_mut_lamports()? = new_program_info_balance;
**ctx.accounts.grant.to_account_info().try_borrow_mut_lamports()? += matching;
// update matching donation
ctx.accounts.matching_donation.amount += matching;
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/cancel_grant_admin.rs
|
use crate::state::{Grant, ProgramInfo};
use anchor_lang::prelude::*;
/// Lets an admin cancel a grant.
#[derive(Accounts)]
pub struct CancelGrantAdmin<'info> {
admin: Signer<'info>,
#[account(
mut,
seeds = [b"grant", grant.grant_num.to_be_bytes().as_ref()],
bump = grant.bump,
)]
grant: Account<'info, Grant>,
#[account(
seeds = [b"program_info"],
bump = program_info.bump,
has_one = admin,
)]
program_info: Account<'info, ProgramInfo>,
}
pub fn cancel_grant_admin(ctx: Context<CancelGrantAdmin>) -> Result<()> {
ctx.accounts.grant.cancel_grant();
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/cancel_donation.rs
|
use anchor_lang::prelude::*;
use crate::{
errors::{DonationError, GrantError},
state::{Donation, DonationState, FundingState, Grant, ProgramInfo},
};
#[derive(Accounts)]
pub struct CancelDonation<'info> {
admin: Signer<'info>,
#[account(has_one = admin, seeds = [ProgramInfo::SEED.as_bytes().as_ref()], bump = program_info.bump)]
program_info: Account<'info, ProgramInfo>,
#[account(
mut,
has_one = payer,
has_one = grant,
)]
/// CHECK: We don't check for the seeds because they can be normal donations
/// or a matching donation, which have different seed formats.
donation: Account<'info, Donation>,
#[account(mut)]
/// CHECK: We check that the donation has this payer
payer: AccountInfo<'info>,
#[account(
mut,
seeds = [b"grant", grant.grant_num.to_be_bytes().as_ref()],
bump = grant.bump,
)]
/// CHECK: We check that the donation has this grant
grant: Account<'info, Grant>,
}
/// Refunds the money from the grant to the payer
pub fn cancel_donation(ctx: Context<CancelDonation>) -> Result<()> {
// check if it is cancellable
match ctx.accounts.donation.state {
DonationState::Funded => Ok(()),
DonationState::Cancelled => err!(DonationError::CancelledDonation),
}?;
// check that the grant is on a cancelled state
match ctx.accounts.grant.funding_state {
FundingState::Cancelled => Ok(()),
FundingState::Active => err!(GrantError::GrantStillActive),
FundingState::Released => err!(GrantError::ReleasedGrant),
}?;
// transfer lamports from the grant to the payer
let lamports = ctx.accounts.donation.amount();
**ctx
.accounts
.grant
.to_account_info()
.try_borrow_mut_lamports()? -= lamports;
**ctx.accounts.payer.try_borrow_mut_lamports()? += lamports;
// update donation state
ctx.accounts.donation.state = DonationState::Cancelled;
Ok(())
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/instructions/cancel_grant_author.rs
|
use crate::state::Grant;
use anchor_lang::prelude::*;
/// Lets an author cancel a grant.
#[derive(Accounts)]
pub struct CancelGrantAuthor<'info> {
author: Signer<'info>,
#[account(
mut,
seeds = [b"grant", grant.grant_num.to_be_bytes().as_ref()],
bump = grant.bump,
has_one = author
)]
grant: Account<'info, Grant>,
}
pub fn cancel_grant_author(ctx: Context<CancelGrantAuthor>) -> Result<()> {
ctx.accounts.grant.cancel_grant()
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/state/link.rs
|
use anchor_lang::prelude::*;
/// This is just a linking account intended to be used as a PDA for
/// when a different seed is needed to reach another account.
#[account]
pub struct Link {
pub bump: u8, // 1
pub address: Pubkey, // 32
}
impl Link {
pub const MAXIMUM_SPACE: usize = 1 + 32;
pub fn new( bump: u8, address: Pubkey) -> Self {
Link {
bump,
address
}
}
pub fn bump(&self) -> u8 {
self.bump
}
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/state/mod.rs
|
mod donation;
mod grant;
mod link;
mod program_info;
pub use donation::*;
pub use grant::*;
pub use link::*;
pub use program_info::*;
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/state/donation.rs
|
use anchor_lang::prelude::*;
/// This account will keep track of the money given to a grant, which can be
/// either a user donation or a match. This will not hold the money.
#[account]
pub struct Donation {
pub payer: Pubkey, // 32
pub grant: Pubkey, // 32
pub amount: u64, // 8
pub state: DonationState, // 1
bump: u8, // 1
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)]
pub enum DonationState {
Funded,
Cancelled,
}
impl Donation {
pub const MAXIMUM_SPACE: usize = 32 + 32 + 8 + 1 + 1;
pub const SEED_PREFIX: &'static str = "donation";
pub fn new(bump: u8, payer: Pubkey, grant: Pubkey, amount: u64) -> Self {
Donation {
payer,
grant,
amount,
state: DonationState::Funded,
bump,
}
}
pub fn amount(&self) -> u64 {
self.amount
}
pub fn bump(&self) -> u8 {
self.bump
}
/// the equivalent of what will be matched with the current donation
pub fn matching_amount(&self) -> u64 {
// TODO: this will be replaced by quadratic matching or any other matching algorithm
// 1:1 matching
self.amount
}
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/state/program_info.rs
|
use anchor_lang::prelude::*;
/// This account holds the information of number of grants and admin
#[account]
#[derive(Default)]
pub struct ProgramInfo {
pub bump: u8, // 1
pub grants_count: u32, // 8
pub admin: Pubkey, // 32
}
impl ProgramInfo {
pub const MAXIMUM_SPACE: usize = 1 + 8 + 32;
pub const SEED: &'static str = "program_info";
pub fn new(bump: u8, admin: Pubkey) -> Self {
Self {
bump,
admin,
..Default::default()
}
}
/// Increment the number of grants by one
pub fn increment_grants_count(&mut self) {
self.grants_count += 1;
}
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/state/grant.rs
|
use crate::errors::GrantError;
use anchor_lang::prelude::*;
use super::Donation;
/// This account holds the information for a grant account
#[account]
#[derive(Default)]
pub struct Grant {
pub bump: u8, // 1
pub author: Pubkey, // 32
info: String, // 4 + (4 * 45) Added 4 at the beginning since we need to provide string length prefix
pub total_donors: u32, // 8
target_lamports: u64, // 16
due_date: i64, // 16 (UnixTimestamp)
pub funding_state: FundingState, // 1
pub is_matching_eligible: bool, // 1
pub grant_num: u32, // 8
}
impl Grant {
pub const MAXIMUM_SPACE: usize = 1 + 32 + (4 + (4 * 45)) + 8 + 16 + 16 + 1 + 1 + 8;
pub fn new(
bump: u8,
author: Pubkey,
info: String,
target_lamports: u64,
due_date: i64,
grant_num: u32,
) -> Self {
Grant {
bump,
author,
info,
target_lamports,
due_date,
grant_num,
..Default::default() // rest of the fields are initialized to default values
}
}
/// Checks if the grant is active and cancells it
pub fn cancel_grant(&mut self) -> Result<()> {
self.is_active()?;
self.funding_state = FundingState::Cancelled;
Ok(())
}
/// Checks if the grant is available for funding
pub fn is_active(&self) -> Result<()> {
let now = Clock::get()?.unix_timestamp;
msg!("now: {}", now);
msg!("due_date: {}", self.due_date);
if now > self.due_date {
return err!(GrantError::DueDateInPast)
}
match self.funding_state {
FundingState::Active => Ok(()),
FundingState::Released => err!(GrantError::ReleasedGrant),
FundingState::Cancelled => err!(GrantError::CancelledGrant),
}
}
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)]
pub enum FundingState {
Active,
Released,
Cancelled,
}
impl Default for FundingState {
fn default() -> Self {
FundingState::Active
}
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/errors/grant_error.rs
|
use anchor_lang::prelude::*;
#[error_code]
pub enum GrantError {
#[msg("The provided info string should be 200 characters long maximum.")]
InfoTooLong,
#[msg("This grant has already transferred the funds to the receiver")]
ReleasedGrant,
#[msg("This grant has already been cancelled")]
CancelledGrant,
#[msg("This grant is still active")]
GrantStillActive,
#[msg("The due date has already passed")]
DueDateInPast
}
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/errors/mod.rs
|
mod grant_error;
mod donation_error;
pub use grant_error::*;
pub use donation_error::*;
| 0
|
solana_public_repos/solana-grants/programs/grants-program/src
|
solana_public_repos/solana-grants/programs/grants-program/src/errors/donation_error.rs
|
use anchor_lang::prelude::*;
#[error_code]
pub enum DonationError {
#[msg("This donation has already refunded the payer")]
CancelledDonation,
#[msg("The grant related to this donation is not eligible for matching")]
NotMatchingEligible,
#[msg("The matching account does not have to sufficient funds to match the donation")]
InsufficientFunds,
}
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/Cargo.toml
|
[workspace]
members = [
"lib/client",
"programs/*",
]
[workspace.dependencies]
anchor-client = "0.29.0"
anchor-lang = "0.29.0"
anchor-spl = "0.29.0"
fixed = { git = "https://github.com/blockworks-foundation/fixed.git", branch = "v1.11.0-borsh0_10-mango" }
pyth-sdk-solana = "0.10.1"
solana-account-decoder = "~1.17.1"
solana-client = "~1.17.1"
solana-logger = "~1.17.1"
solana-program = "~1.17.1"
solana-program-test = "~1.17.1"
solana-rpc = "~1.17.1"
solana-sdk = "~1.17.1"
spl-associated-token-account = "1.0.3"
[profile.release]
codegen-units = 1
lto = "fat"
overflow-checks = true
[profile.release.build-override]
codegen-units = 1
incremental = false
opt-level = 3
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/tsconfig.types.json
|
{
"extends": "./tsconfig",
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/types",
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true
}
}
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/idl-fixup.sh
|
#!/bin/bash
# Anchor works purely on a token level and does not know that the index types
# are just type aliases for a primitive type. This hack replaces them with the
# primitive in the idl json and types ts file.
TYPES_TO_REPLACE=(
"MarketIndex"
"NodeHandle"
"usize"
)
pairs=()
for type in ${TYPES_TO_REPLACE[@]}; do
if [[ "$type" == "usize" ]]; then
pairs+=("usize u64")
else
value=$(grep -r "type $type" "./programs/openbook-v2/src" | awk '{print $NF}' | tr -d ';')
pairs+=("$type $value")
fi
done
for pair_str in "${pairs[@]}"; do
pair=($pair_str)
perl -0777 -pi -e "s/\{\s*\"defined\":\s*\"${pair[0]}\"\s*\}/\"${pair[1]}\"/g" \
target/idl/openbook_v2.json target/types/openbook_v2.ts
done
# Anchor puts all enums in the IDL, independent of visibility. And then it
# errors on enums that have tuple variants. This hack drops these from the idl.
perl -0777 -pi -e 's/ *{\s*"name": "NodeRef(?<nested>(?:[^{}[\]]+|\{(?&nested)\}|\[(?&nested)\])*)\},\n//g' \
target/idl/openbook_v2.json target/types/openbook_v2.ts
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/LICENSE
|
The following licenses apply to the contents of this repository:
All files in the programs/openbook-v2/src/instructions directory and below
are licensed under the GNU General Public License v3.0. See
programs/openbook-v2/src/instructions/LICENSE.
The contents of the 3rdparty/ directory and below are covered by the
licenses specified in the subfolders.
All other files are licensed under the MIT License reproduced below.
MIT License
Copyright (c) 2023 GluonicLedger Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/justfile
|
fuzz-toolchain := if `arch` == "arm64" { "+nightly-2023-04-01-x86_64-apple-darwin" } else { "+nightly-2023-04-01" }
build:
cargo build-sbf --features enable-gpl
lint:
cargo clippy --no-deps --tests --features enable-gpl --features test-bpf -- --allow=clippy::result-large-err
test TEST_NAME:
cargo test-sbf --features enable-gpl -- {{ TEST_NAME }}
test-all:
(cd ./programs/openbook-v2 && RUST_LOG=ERROR cargo test-sbf --features enable-gpl)
test-dev:
(find programs) | entr -s 'just test-all'
idl:
anchor build --arch sbf -- --features enable-gpl
bash {{ justfile_directory() }}/idl-fixup.sh
cp -v ./target/types/openbook_v2.ts ./ts/client/src/openbook_v2.ts
cp -v ./target/idl/openbook_v2.json ./idl/openbook_v2.json
yarn lint --fix
yarn format
fuzz:
cd ./programs/openbook-v2/fuzz && cargo {{ fuzz-toolchain }} fuzz run --strip-dead-code multiple_orders
fuzz-reproduce CASE:
cd ./programs/openbook-v2/fuzz && RUST_LOG=debug cargo {{ fuzz-toolchain }} fuzz run --strip-dead-code multiple_orders {{ CASE }}
publish:
yarn format && yarn lint && yarn build && npm publish
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/Cargo.lock
|
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "Inflector"
version = "0.11.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3"
dependencies = [
"lazy_static",
"regex",
]
[[package]]
name = "addr2line"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
dependencies = [
"gimli",
]
[[package]]
name = "adler"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "aead"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877"
dependencies = [
"generic-array",
]
[[package]]
name = "aes"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8"
dependencies = [
"cfg-if 1.0.0",
"cipher",
"cpufeatures",
"opaque-debug",
]
[[package]]
name = "aes-gcm-siv"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589c637f0e68c877bbd59a4599bbe849cac8e5f3e4b5a3ebae8f528cd218dcdc"
dependencies = [
"aead",
"aes",
"cipher",
"ctr",
"polyval",
"subtle",
"zeroize",
]
[[package]]
name = "ahash"
version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd"
dependencies = [
"getrandom 0.2.11",
"once_cell",
"version_check 0.9.4",
]
[[package]]
name = "ahash"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a"
dependencies = [
"cfg-if 1.0.0",
"getrandom 0.2.11",
"once_cell",
"version_check 0.9.4",
"zerocopy",
]
[[package]]
name = "aho-corasick"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0"
dependencies = [
"memchr",
]
[[package]]
name = "aliasable"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd"
[[package]]
name = "alloc-no-stdlib"
version = "2.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
[[package]]
name = "alloc-stdlib"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"
dependencies = [
"alloc-no-stdlib",
]
[[package]]
name = "anchor-attribute-access-control"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5f619f1d04f53621925ba8a2e633ba5a6081f2ae14758cbb67f38fd823e0a3e"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-account"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7f2a3e1df4685f18d12a943a9f2a7456305401af21a07c9fe076ef9ecd6e400"
dependencies = [
"anchor-syn",
"bs58 0.5.0",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-constant"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9423945cb55627f0b30903288e78baf6f62c6c8ab28fb344b6b25f1ffee3dca7"
dependencies = [
"anchor-syn",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-error"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93ed12720033cc3c3bf3cfa293349c2275cd5ab99936e33dd4bf283aaad3e241"
dependencies = [
"anchor-syn",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-event"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eef4dc0371eba2d8c8b54794b0b0eb786a234a559b77593d6f80825b6d2c77a2"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-program"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b18c4f191331e078d4a6a080954d1576241c29c56638783322a18d308ab27e4f"
dependencies = [
"anchor-syn",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-client"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb48c4a7911038da546dc752655a29fa49f6bd50ebc1edca218bac8da1012acd"
dependencies = [
"anchor-lang",
"anyhow",
"futures 0.3.29",
"regex",
"serde",
"solana-account-decoder",
"solana-client",
"solana-sdk",
"thiserror",
"tokio",
"url 2.5.0",
]
[[package]]
name = "anchor-derive-accounts"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5de10d6e9620d3bcea56c56151cad83c5992f50d5960b3a9bebc4a50390ddc3c"
dependencies = [
"anchor-syn",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-derive-serde"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4e2e5be518ec6053d90a2a7f26843dbee607583c779e6c8395951b9739bdfbe"
dependencies = [
"anchor-syn",
"borsh-derive-internal 0.10.3",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-derive-space"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ecc31d19fa54840e74b7a979d44bcea49d70459de846088a1d71e87ba53c419"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "anchor-lang"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35da4785497388af0553586d55ebdc08054a8b1724720ef2749d313494f2b8ad"
dependencies = [
"anchor-attribute-access-control",
"anchor-attribute-account",
"anchor-attribute-constant",
"anchor-attribute-error",
"anchor-attribute-event",
"anchor-attribute-program",
"anchor-derive-accounts",
"anchor-derive-serde",
"anchor-derive-space",
"arrayref",
"base64 0.13.1",
"bincode",
"borsh 0.10.3",
"bytemuck",
"getrandom 0.2.11",
"solana-program",
"thiserror",
]
[[package]]
name = "anchor-spl"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c4fd6e43b2ca6220d2ef1641539e678bfc31b6cc393cf892b373b5997b6a39a"
dependencies = [
"anchor-lang",
"solana-program",
"spl-associated-token-account 2.2.0",
"spl-token 4.0.0",
"spl-token-2022 0.9.0",
]
[[package]]
name = "anchor-syn"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9101b84702fed2ea57bd22992f75065da5648017135b844283a2f6d74f27825"
dependencies = [
"anyhow",
"bs58 0.5.0",
"heck 0.3.3",
"proc-macro2 1.0.79",
"quote 1.0.36",
"serde",
"serde_json",
"sha2 0.10.8",
"syn 1.0.109",
"thiserror",
]
[[package]]
name = "android-tzdata"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
dependencies = [
"libc",
]
[[package]]
name = "ansi_term"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "anyhow"
version = "1.0.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
[[package]]
name = "arbitrary"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "510c76ecefdceada737ea728f4f9a84bd2e1ef29f1ba555e560940fe279954de"
dependencies = [
"derive_arbitrary",
]
[[package]]
name = "arc-swap"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bddcadddf5e9015d310179a59bb28c4d4b9920ad0f11e8e14dbadf654890c9a6"
[[package]]
name = "ark-bn254"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f"
dependencies = [
"ark-ec",
"ark-ff",
"ark-std",
]
[[package]]
name = "ark-ec"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba"
dependencies = [
"ark-ff",
"ark-poly",
"ark-serialize",
"ark-std",
"derivative",
"hashbrown 0.13.2",
"itertools",
"num-traits",
"zeroize",
]
[[package]]
name = "ark-ff"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba"
dependencies = [
"ark-ff-asm",
"ark-ff-macros",
"ark-serialize",
"ark-std",
"derivative",
"digest 0.10.7",
"itertools",
"num-bigint 0.4.4",
"num-traits",
"paste",
"rustc_version 0.4.0",
"zeroize",
]
[[package]]
name = "ark-ff-asm"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348"
dependencies = [
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "ark-ff-macros"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565"
dependencies = [
"num-bigint 0.4.4",
"num-traits",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "ark-poly"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf"
dependencies = [
"ark-ff",
"ark-serialize",
"ark-std",
"derivative",
"hashbrown 0.13.2",
]
[[package]]
name = "ark-serialize"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5"
dependencies = [
"ark-serialize-derive",
"ark-std",
"digest 0.10.7",
"num-bigint 0.4.4",
]
[[package]]
name = "ark-serialize-derive"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "ark-std"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185"
dependencies = [
"num-traits",
"rand 0.8.5",
]
[[package]]
name = "arrayref"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545"
[[package]]
name = "arrayvec"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
[[package]]
name = "arrayvec"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
[[package]]
name = "ascii"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eab1c04a571841102f5345a8fc0f6bb3d31c315dec879b5c6e42e40ce7ffa34e"
[[package]]
name = "asn1-rs"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0"
dependencies = [
"asn1-rs-derive",
"asn1-rs-impl",
"displaydoc",
"nom 7.1.3",
"num-traits",
"rusticata-macros",
"thiserror",
"time 0.3.30",
]
[[package]]
name = "asn1-rs-derive"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "726535892e8eae7e70657b4c8ea93d26b8553afb1ce617caee529ef96d7dee6c"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
"synstructure",
]
[[package]]
name = "asn1-rs-impl"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2777730b2039ac0f95f093556e61b6d26cebed5393ca6f152717777cec3a42ed"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "assert_matches"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9"
[[package]]
name = "async-channel"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35"
dependencies = [
"concurrent-queue",
"event-listener",
"futures-core",
]
[[package]]
name = "async-compression"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07dbbf24db18d609b1462965249abdf49129ccad073ec257da372adc83259c60"
dependencies = [
"brotli",
"flate2",
"futures-core",
"memchr",
"pin-project-lite",
"tokio",
]
[[package]]
name = "async-mutex"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "479db852db25d9dbf6204e6cb6253698f175c15726470f78af0d918e99d6156e"
dependencies = [
"event-listener",
]
[[package]]
name = "async-once-cell"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b49bd4c5b769125ea6323601c39815848972880efd33ffb2d01f9f909adc699"
[[package]]
name = "async-stream"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51"
dependencies = [
"async-stream-impl",
"futures-core",
"pin-project-lite",
]
[[package]]
name = "async-stream-impl"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "async-trait"
version = "0.1.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
dependencies = [
"hermit-abi 0.1.19",
"libc",
"winapi 0.3.9",
]
[[package]]
name = "autocfg"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78"
dependencies = [
"autocfg 1.1.0",
]
[[package]]
name = "autocfg"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "autotools"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aef8da1805e028a172334c3b680f93e71126f2327622faef2ec3d893c0a4ad77"
dependencies = [
"cc",
]
[[package]]
name = "axum"
version = "0.6.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf"
dependencies = [
"async-trait",
"axum-core",
"bitflags 1.3.2",
"bytes 1.5.0",
"futures-util",
"http",
"http-body",
"hyper 0.14.27",
"itoa",
"matchit",
"memchr",
"mime 0.3.17",
"percent-encoding 2.3.1",
"pin-project-lite",
"rustversion",
"serde",
"sync_wrapper",
"tower",
"tower-layer",
"tower-service",
]
[[package]]
name = "axum-core"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c"
dependencies = [
"async-trait",
"bytes 1.5.0",
"futures-util",
"http",
"http-body",
"mime 0.3.17",
"rustversion",
"tower-layer",
"tower-service",
]
[[package]]
name = "az"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b7e4c2464d97fe331d41de9d5db0def0a96f4d823b8b32a2efd503578988973"
[[package]]
name = "backoff"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1"
dependencies = [
"futures-core",
"getrandom 0.2.11",
"instant",
"pin-project-lite",
"rand 0.8.5",
"tokio",
]
[[package]]
name = "backtrace"
version = "0.3.71"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d"
dependencies = [
"addr2line",
"cc",
"cfg-if 1.0.0",
"libc",
"miniz_oxide",
"object",
"rustc-demangle",
]
[[package]]
name = "base64"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643"
dependencies = [
"byteorder",
"safemem",
]
[[package]]
name = "base64"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
dependencies = [
"byteorder",
]
[[package]]
name = "base64"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff"
[[package]]
name = "base64"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
[[package]]
name = "base64"
version = "0.21.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9"
[[package]]
name = "base64ct"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"
[[package]]
name = "bincode"
version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
dependencies = [
"serde",
]
[[package]]
name = "bindgen"
version = "0.65.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5"
dependencies = [
"bitflags 1.3.2",
"cexpr",
"clang-sys",
"lazy_static",
"lazycell",
"peeking_take_while",
"prettyplease 0.2.15",
"proc-macro2 1.0.79",
"quote 1.0.36",
"regex",
"rustc-hash",
"shlex",
"syn 2.0.58",
]
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
dependencies = [
"serde",
]
[[package]]
name = "bitmaps"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2"
dependencies = [
"typenum",
]
[[package]]
name = "blake3"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0231f06152bf547e9c2b5194f247cd97aacf6dcd8b15d8e5ec0663f64580da87"
dependencies = [
"arrayref",
"arrayvec 0.7.4",
"cc",
"cfg-if 1.0.0",
"constant_time_eq",
"digest 0.10.7",
]
[[package]]
name = "block-buffer"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
dependencies = [
"block-padding",
"generic-array",
]
[[package]]
name = "block-buffer"
version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
dependencies = [
"generic-array",
]
[[package]]
name = "block-padding"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae"
[[package]]
name = "borsh"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15bf3650200d8bffa99015595e10f1fbd17de07abbc25bb067da79e769939bfa"
dependencies = [
"borsh-derive 0.9.3",
"hashbrown 0.11.2",
]
[[package]]
name = "borsh"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b"
dependencies = [
"borsh-derive 0.10.3",
"hashbrown 0.13.2",
]
[[package]]
name = "borsh-derive"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775"
dependencies = [
"borsh-derive-internal 0.9.3",
"borsh-schema-derive-internal 0.9.3",
"proc-macro-crate 0.1.5",
"proc-macro2 1.0.79",
"syn 1.0.109",
]
[[package]]
name = "borsh-derive"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0754613691538d51f329cce9af41d7b7ca150bc973056f1156611489475f54f7"
dependencies = [
"borsh-derive-internal 0.10.3",
"borsh-schema-derive-internal 0.10.3",
"proc-macro-crate 0.1.5",
"proc-macro2 1.0.79",
"syn 1.0.109",
]
[[package]]
name = "borsh-derive-internal"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5449c28a7b352f2d1e592a8a28bf139bc71afb0764a14f3c02500935d8c44065"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "borsh-derive-internal"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "afb438156919598d2c7bad7e1c0adf3d26ed3840dbc010db1a882a65583ca2fb"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "borsh-schema-derive-internal"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdbd5696d8bfa21d53d9fe39a714a18538bad11492a42d066dbbc395fb1951c0"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "borsh-schema-derive-internal"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "634205cc43f74a1b9046ef87c4540ebda95696ec0f315024860cad7c5b0f5ccd"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "brotli"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "125740193d7fee5cc63ab9e16c2fdc4e07c74ba755cc53b327d6ea029e9fc569"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
"brotli-decompressor",
]
[[package]]
name = "brotli-decompressor"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65622a320492e09b5e0ac436b14c54ff68199bac392d0e89a6832c4518eea525"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
]
[[package]]
name = "bs58"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3"
[[package]]
name = "bs58"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f5353f36341f7451062466f0b755b96ac3a9547e4d7f6b70d603fc721a7d7896"
dependencies = [
"tinyvec",
]
[[package]]
name = "bstr"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "542f33a8835a0884b006a0c3df3dadd99c0c3f296ed26c2fdc8028e01ad6230c"
dependencies = [
"memchr",
"serde",
]
[[package]]
name = "bumpalo"
version = "3.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
[[package]]
name = "bv"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340"
dependencies = [
"feature-probe",
"serde",
]
[[package]]
name = "bytemuck"
version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "965ab7eb5f8f97d2a083c799f3a1b994fc397b2fe2da5d1da1626ce15a39f2b1"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "byteorder"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
[[package]]
name = "bytes"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
dependencies = [
"byteorder",
"iovec",
]
[[package]]
name = "bytes"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
[[package]]
name = "bzip2"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8"
dependencies = [
"bzip2-sys",
"libc",
]
[[package]]
name = "bzip2-sys"
version = "0.1.11+1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc"
dependencies = [
"cc",
"libc",
"pkg-config",
]
[[package]]
name = "caps"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "190baaad529bcfbde9e1a19022c42781bdb6ff9de25721abdb8fd98c0807730b"
dependencies = [
"libc",
"thiserror",
]
[[package]]
name = "cc"
version = "1.0.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2678b2e3449475e95b0aa6f9b506a28e61b3dc8996592b983695e8ebb58a8b41"
dependencies = [
"jobserver",
"libc",
]
[[package]]
name = "cexpr"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
dependencies = [
"nom 7.1.3",
]
[[package]]
name = "cfg-if"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"serde",
"wasm-bindgen",
"windows-targets 0.48.5",
]
[[package]]
name = "chrono-humanize"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "799627e6b4d27827a814e837b9d8a504832086081806d45b1afa34dc982b023b"
dependencies = [
"chrono",
]
[[package]]
name = "cipher"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7"
dependencies = [
"generic-array",
]
[[package]]
name = "clang-sys"
version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f"
dependencies = [
"glob",
"libc",
"libloading",
]
[[package]]
name = "clap"
version = "2.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
dependencies = [
"ansi_term",
"atty",
"bitflags 1.3.2",
"strsim 0.8.0",
"textwrap 0.11.0",
"unicode-width",
"vec_map",
]
[[package]]
name = "clap"
version = "3.2.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123"
dependencies = [
"atty",
"bitflags 1.3.2",
"clap_lex",
"indexmap 1.9.3",
"once_cell",
"strsim 0.10.0",
"termcolor",
"textwrap 0.16.0",
]
[[package]]
name = "clap_lex"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5"
dependencies = [
"os_str_bytes",
]
[[package]]
name = "cloudabi"
version = "0.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "combine"
version = "3.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da3da6baa321ec19e1cc41d31bf599f00c783d0517095cdaf0332e3fe8d20680"
dependencies = [
"ascii",
"byteorder",
"either",
"memchr",
"unreachable",
]
[[package]]
name = "concurrent-queue"
version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f057a694a54f12365049b0958a1685bb52d567f5593b355fbf685838e873d400"
dependencies = [
"crossbeam-utils 0.8.16",
]
[[package]]
name = "console"
version = "0.15.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c926e00cc70edefdc64d3a5ff31cc65bb97a3460097762bd23afb4d8145fccf8"
dependencies = [
"encode_unicode",
"lazy_static",
"libc",
"unicode-width",
"windows-sys 0.45.0",
]
[[package]]
name = "console_error_panic_hook"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc"
dependencies = [
"cfg-if 1.0.0",
"wasm-bindgen",
]
[[package]]
name = "console_log"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f"
dependencies = [
"log 0.4.20",
"web-sys",
]
[[package]]
name = "const-oid"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4c78c047431fee22c1a7bb92e00ad095a02a983affe4d8a72e2a2c62c1b94f3"
[[package]]
name = "constant_time_eq"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2"
[[package]]
name = "convert_case"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
[[package]]
name = "core-foundation"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "core-foundation-sys"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
[[package]]
name = "core_affinity"
version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f8a03115cc34fb0d7c321dd154a3914b3ca082ccc5c11d91bf7117dbbe7171f"
dependencies = [
"kernel32-sys",
"libc",
"num_cpus",
"winapi 0.2.8",
]
[[package]]
name = "cpufeatures"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0"
dependencies = [
"libc",
]
[[package]]
name = "crc32fast"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "cron"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f8c3e73077b4b4a6ab1ea5047c37c57aee77657bc8ecd6f29b0af082d0b0c07"
dependencies = [
"chrono",
"nom 7.1.3",
"once_cell",
]
[[package]]
name = "crossbeam-channel"
version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200"
dependencies = [
"cfg-if 1.0.0",
"crossbeam-utils 0.8.16",
]
[[package]]
name = "crossbeam-deque"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
dependencies = [
"cfg-if 1.0.0",
"crossbeam-epoch",
"crossbeam-utils 0.8.16",
]
[[package]]
name = "crossbeam-epoch"
version = "0.9.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
dependencies = [
"autocfg 1.1.0",
"cfg-if 1.0.0",
"crossbeam-utils 0.8.16",
"memoffset 0.9.0",
"scopeguard",
]
[[package]]
name = "crossbeam-utils"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
dependencies = [
"autocfg 1.1.0",
"cfg-if 0.1.10",
"lazy_static",
]
[[package]]
name = "crossbeam-utils"
version = "0.8.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "crunchy"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
[[package]]
name = "crypto-common"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
dependencies = [
"generic-array",
"typenum",
]
[[package]]
name = "crypto-mac"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab"
dependencies = [
"generic-array",
"subtle",
]
[[package]]
name = "ctr"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea"
dependencies = [
"cipher",
]
[[package]]
name = "curve25519-dalek"
version = "3.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0"
dependencies = [
"byteorder",
"digest 0.9.0",
"rand_core 0.5.1",
"serde",
"subtle",
"zeroize",
]
[[package]]
name = "darling"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0209d94da627ab5605dcccf08bb18afa5009cfbef48d8a8b7d7bdbc79be25c5e"
dependencies = [
"darling_core",
"darling_macro",
]
[[package]]
name = "darling_core"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "177e3443818124b357d8e76f53be906d60937f0d3a90773a664fa63fa253e621"
dependencies = [
"fnv",
"ident_case",
"proc-macro2 1.0.79",
"quote 1.0.36",
"strsim 0.10.0",
"syn 2.0.58",
]
[[package]]
name = "darling_macro"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5"
dependencies = [
"darling_core",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "dashmap"
version = "4.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e77a43b28d0668df09411cb0bc9a8c2adc40f9a048afe863e05fd43251e8e39c"
dependencies = [
"cfg-if 1.0.0",
"num_cpus",
"rayon",
]
[[package]]
name = "dashmap"
version = "5.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856"
dependencies = [
"cfg-if 1.0.0",
"hashbrown 0.14.2",
"lock_api 0.4.11",
"once_cell",
"parking_lot_core 0.9.9",
]
[[package]]
name = "data-encoding"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5"
[[package]]
name = "default-env"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f753eb82d29277e79efc625e84aecacfd4851ee50e05a8573a4740239a77bfd3"
dependencies = [
"proc-macro2 0.4.30",
"quote 0.6.13",
"syn 0.15.44",
]
[[package]]
name = "der"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6919815d73839e7ad218de758883aae3a257ba6759ce7a9992501efbb53d705c"
dependencies = [
"const-oid",
]
[[package]]
name = "der-parser"
version = "8.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e"
dependencies = [
"asn1-rs",
"displaydoc",
"nom 7.1.3",
"num-bigint 0.4.4",
"num-traits",
"rusticata-macros",
]
[[package]]
name = "deranged"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f32d04922c60427da6f9fef14d042d9edddef64cb9d4ce0d64d0685fbeb1fd3"
dependencies = [
"powerfmt",
]
[[package]]
name = "derivation-path"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0"
[[package]]
name = "derivative"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "derive_arbitrary"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "derive_more"
version = "0.99.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321"
dependencies = [
"convert_case",
"proc-macro2 1.0.79",
"quote 1.0.36",
"rustc_version 0.4.0",
"syn 1.0.109",
]
[[package]]
name = "dialoguer"
version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59c6f2989294b9a498d3ad5491a79c6deb604617378e1cdc4bfc1c1361fe2f87"
dependencies = [
"console",
"shell-words",
"tempfile",
"zeroize",
]
[[package]]
name = "digest"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
dependencies = [
"generic-array",
]
[[package]]
name = "digest"
version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer 0.10.4",
"crypto-common",
"subtle",
]
[[package]]
name = "dir-diff"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2860407d7d7e2e004bb2128510ad9e8d669e76fa005ccf567977b5d71b8b4a0b"
dependencies = [
"walkdir",
]
[[package]]
name = "dirs"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"
dependencies = [
"dirs-sys",
]
[[package]]
name = "dirs-next"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
dependencies = [
"cfg-if 1.0.0",
"dirs-sys-next",
]
[[package]]
name = "dirs-sys"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
dependencies = [
"libc",
"redox_users",
"winapi 0.3.9",
]
[[package]]
name = "dirs-sys-next"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
dependencies = [
"libc",
"redox_users",
"winapi 0.3.9",
]
[[package]]
name = "displaydoc"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "dlopen2"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa"
dependencies = [
"dlopen2_derive",
"libc",
"once_cell",
"winapi 0.3.9",
]
[[package]]
name = "dlopen2_derive"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6cbae11b3de8fce2a456e8ea3dada226b35fe791f0dc1d360c0941f0bb681f3"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "dyn-clone"
version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d"
[[package]]
name = "eager"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abe71d579d1812060163dff96056261deb5bf6729b100fa2e36a68b9649ba3d3"
[[package]]
name = "ed25519"
version = "1.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7"
dependencies = [
"signature",
]
[[package]]
name = "ed25519-dalek"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d"
dependencies = [
"curve25519-dalek",
"ed25519",
"rand 0.7.3",
"serde",
"sha2 0.9.9",
"zeroize",
]
[[package]]
name = "ed25519-dalek-bip32"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908"
dependencies = [
"derivation-path",
"ed25519-dalek",
"hmac 0.12.1",
"sha2 0.10.8",
]
[[package]]
name = "educe"
version = "0.4.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f0042ff8246a363dbe77d2ceedb073339e85a804b9a47636c6e016a9a32c05f"
dependencies = [
"enum-ordinalize",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "either"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
[[package]]
name = "encode_unicode"
version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
[[package]]
name = "encoding_rs"
version = "0.8.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1"
dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "enum-iterator"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7add3873b5dd076766ee79c8e406ad1a472c385476b9e38849f8eec24f1be689"
dependencies = [
"enum-iterator-derive",
]
[[package]]
name = "enum-iterator-derive"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eecf8589574ce9b895052fa12d69af7a233f99e6107f5cb8dd1044f2a17bfdcb"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "enum-ordinalize"
version = "3.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bf1fa3f06bbff1ea5b1a9c7b14aa992a39657db60a2759457328d7e058f49ee"
dependencies = [
"num-bigint 0.4.4",
"num-traits",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "env_logger"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7"
dependencies = [
"atty",
"humantime",
"log 0.4.20",
"regex",
"termcolor",
]
[[package]]
name = "envy"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f47e0157f2cb54f5ae1bd371b30a2ae4311e1c028f575cd4e81de7353215965"
dependencies = [
"serde",
]
[[package]]
name = "equivalent"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "erased-serde"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b73807008a3c7f171cc40312f37d95ef0396e048b5848d775f54b1a4dd4a0d3"
dependencies = [
"serde",
]
[[package]]
name = "errno"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8"
dependencies = [
"libc",
"windows-sys 0.48.0",
]
[[package]]
name = "event-listener"
version = "2.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
[[package]]
name = "fast-math"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2465292146cdfc2011350fe3b1c616ac83cf0faeedb33463ba1c332ed8948d66"
dependencies = [
"ieee754",
]
[[package]]
name = "fastrand"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5"
[[package]]
name = "feature-probe"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da"
[[package]]
name = "filetime"
version = "0.2.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0"
dependencies = [
"cfg-if 1.0.0",
"libc",
"redox_syscall 0.3.5",
"windows-sys 0.48.0",
]
[[package]]
name = "fixed"
version = "1.11.0"
source = "git+https://github.com/blockworks-foundation/fixed.git?branch=v1.11.0-borsh0_10-mango#01516ae3e29418feb066b67830540aa81d04df05"
dependencies = [
"az",
"borsh 0.10.3",
"bytemuck",
"half",
"serde",
"typenum",
]
[[package]]
name = "fixedbitset"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
[[package]]
name = "flate2"
version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]]
name = "fnv"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "foreign-types"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
dependencies = [
"foreign-types-shared",
]
[[package]]
name = "foreign-types-shared"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
[[package]]
name = "form_urlencoded"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
dependencies = [
"percent-encoding 2.3.1",
]
[[package]]
name = "fs-err"
version = "2.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41"
dependencies = [
"autocfg 1.1.0",
]
[[package]]
name = "fs_extra"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]]
name = "fuchsia-cprng"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
[[package]]
name = "fuchsia-zircon"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
dependencies = [
"bitflags 1.3.2",
"fuchsia-zircon-sys",
]
[[package]]
name = "fuchsia-zircon-sys"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
[[package]]
name = "futures"
version = "0.1.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678"
[[package]]
name = "futures"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335"
dependencies = [
"futures-channel",
"futures-core",
"futures-executor",
"futures-io",
"futures-sink",
"futures-task",
"futures-util",
]
[[package]]
name = "futures-channel"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb"
dependencies = [
"futures-core",
"futures-sink",
]
[[package]]
name = "futures-core"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c"
[[package]]
name = "futures-executor"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc"
dependencies = [
"futures-core",
"futures-task",
"futures-util",
"num_cpus",
]
[[package]]
name = "futures-io"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa"
[[package]]
name = "futures-macro"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "futures-sink"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817"
[[package]]
name = "futures-task"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2"
[[package]]
name = "futures-util"
version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104"
dependencies = [
"futures 0.1.31",
"futures-channel",
"futures-core",
"futures-io",
"futures-macro",
"futures-sink",
"futures-task",
"memchr",
"pin-project-lite",
"pin-utils",
"slab",
]
[[package]]
name = "generic-array"
version = "0.14.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
dependencies = [
"serde",
"typenum",
"version_check 0.9.4",
]
[[package]]
name = "gethostname"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e"
dependencies = [
"libc",
"winapi 0.3.9",
]
[[package]]
name = "getrandom"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
dependencies = [
"cfg-if 1.0.0",
"js-sys",
"libc",
"wasi 0.9.0+wasi-snapshot-preview1",
"wasm-bindgen",
]
[[package]]
name = "getrandom"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f"
dependencies = [
"cfg-if 1.0.0",
"js-sys",
"libc",
"wasi 0.11.0+wasi-snapshot-preview1",
"wasm-bindgen",
]
[[package]]
name = "gimli"
version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253"
[[package]]
name = "glob"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
[[package]]
name = "globset"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d"
dependencies = [
"aho-corasick",
"bstr",
"fnv",
"log 0.4.20",
"regex",
]
[[package]]
name = "goauth"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8af59a261bcf42f45d1b261232847b9b850ba0a1419d6100698246fb66e9240"
dependencies = [
"arc-swap",
"futures 0.3.29",
"log 0.4.20",
"reqwest",
"serde",
"serde_derive",
"serde_json",
"simpl",
"smpl_jwt",
"time 0.3.30",
"tokio",
]
[[package]]
name = "goblin"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7666983ed0dd8d21a6f6576ee00053ca0926fb281a5522577a4dbd0f1b54143"
dependencies = [
"log 0.4.20",
"plain",
"scroll",
]
[[package]]
name = "h2"
version = "0.3.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d6250322ef6e60f93f9a2162799302cd6f68f79f6e5d85c8c16f14d1d958178"
dependencies = [
"bytes 1.5.0",
"fnv",
"futures-core",
"futures-sink",
"futures-util",
"http",
"indexmap 2.1.0",
"slab",
"tokio",
"tokio-util 0.7.10",
"tracing",
]
[[package]]
name = "half"
version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7"
[[package]]
name = "hash32"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67"
dependencies = [
"byteorder",
]
[[package]]
name = "hashbrown"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
dependencies = [
"ahash 0.7.7",
]
[[package]]
name = "hashbrown"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
dependencies = [
"ahash 0.7.7",
]
[[package]]
name = "hashbrown"
version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
dependencies = [
"ahash 0.8.6",
]
[[package]]
name = "hashbrown"
version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156"
[[package]]
name = "headers"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06683b93020a07e3dbcf5f8c0f6d40080d725bea7936fc01ad345c01b97dc270"
dependencies = [
"base64 0.21.5",
"bytes 1.5.0",
"headers-core",
"http",
"httpdate",
"mime 0.3.17",
"sha1 0.10.6",
]
[[package]]
name = "headers-core"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7f66481bfee273957b1f20485a4ff3362987f85b2c236580d81b4eb7a326429"
dependencies = [
"http",
]
[[package]]
name = "heck"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
dependencies = [
"unicode-segmentation",
]
[[package]]
name = "heck"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]]
name = "hermit-abi"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
[[package]]
name = "hermit-abi"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
[[package]]
name = "hex"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
dependencies = [
"serde",
]
[[package]]
name = "histogram"
version = "0.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12cb882ccb290b8646e554b157ab0b71e64e8d5bef775cd66b6531e52d302669"
[[package]]
name = "hmac"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840"
dependencies = [
"crypto-mac",
"digest 0.9.0",
]
[[package]]
name = "hmac"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
dependencies = [
"digest 0.10.7",
]
[[package]]
name = "hmac-drbg"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1"
dependencies = [
"digest 0.9.0",
"generic-array",
"hmac 0.8.1",
]
[[package]]
name = "home"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb"
dependencies = [
"windows-sys 0.48.0",
]
[[package]]
name = "http"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb"
dependencies = [
"bytes 1.5.0",
"fnv",
"itoa",
]
[[package]]
name = "http-body"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1"
dependencies = [
"bytes 1.5.0",
"http",
"pin-project-lite",
]
[[package]]
name = "httparse"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904"
[[package]]
name = "httpdate"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
[[package]]
name = "humantime"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
version = "0.10.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273"
dependencies = [
"base64 0.9.3",
"httparse",
"language-tags",
"log 0.3.9",
"mime 0.2.6",
"num_cpus",
"time 0.1.45",
"traitobject",
"typeable",
"unicase 1.4.2",
"url 1.7.2",
]
[[package]]
name = "hyper"
version = "0.14.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468"
dependencies = [
"bytes 1.5.0",
"futures-channel",
"futures-core",
"futures-util",
"h2",
"http",
"http-body",
"httparse",
"httpdate",
"itoa",
"pin-project-lite",
"socket2 0.4.10",
"tokio",
"tower-service",
"tracing",
"want",
]
[[package]]
name = "hyper-proxy"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca815a891b24fdfb243fa3239c86154392b0953ee584aa1a2a1f66d20cbe75cc"
dependencies = [
"bytes 1.5.0",
"futures 0.3.29",
"headers",
"http",
"hyper 0.14.27",
"hyper-tls",
"native-tls",
"tokio",
"tokio-native-tls",
"tower-service",
]
[[package]]
name = "hyper-rustls"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590"
dependencies = [
"futures-util",
"http",
"hyper 0.14.27",
"rustls",
"tokio",
"tokio-rustls",
]
[[package]]
name = "hyper-timeout"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1"
dependencies = [
"hyper 0.14.27",
"pin-project-lite",
"tokio",
"tokio-io-timeout",
]
[[package]]
name = "hyper-tls"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
dependencies = [
"bytes 1.5.0",
"hyper 0.14.27",
"native-tls",
"tokio",
"tokio-native-tls",
]
[[package]]
name = "iana-time-zone"
version = "0.1.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows-core",
]
[[package]]
name = "iana-time-zone-haiku"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
dependencies = [
"cc",
]
[[package]]
name = "ident_case"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "idna"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
dependencies = [
"matches",
"unicode-bidi",
"unicode-normalization",
]
[[package]]
name = "idna"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
dependencies = [
"unicode-bidi",
"unicode-normalization",
]
[[package]]
name = "ieee754"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9007da9cacbd3e6343da136e98b0d2df013f553d35bdec8b518f07bea768e19c"
[[package]]
name = "im"
version = "15.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9"
dependencies = [
"bitmaps",
"rand_core 0.6.4",
"rand_xoshiro",
"rayon",
"serde",
"sized-chunks",
"typenum",
"version_check 0.9.4",
]
[[package]]
name = "index_list"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70891286cb8e844fdfcf1178b47569699f9e20b5ecc4b45a6240a64771444638"
[[package]]
name = "indexmap"
version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
dependencies = [
"autocfg 1.1.0",
"hashbrown 0.12.3",
]
[[package]]
name = "indexmap"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
dependencies = [
"equivalent",
"hashbrown 0.14.2",
"rayon",
]
[[package]]
name = "indicatif"
version = "0.17.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb28741c9db9a713d93deb3bb9515c20788cef5815265bee4980e87bde7e0f25"
dependencies = [
"console",
"instant",
"number_prefix",
"portable-atomic",
"unicode-width",
]
[[package]]
name = "instant"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "iovec"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
dependencies = [
"libc",
]
[[package]]
name = "ipnet"
version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"
[[package]]
name = "itertools"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
[[package]]
name = "jobserver"
version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d"
dependencies = [
"libc",
]
[[package]]
name = "js-sys"
version = "0.3.65"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "jsonrpc-client-transports"
version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2b99d4207e2a04fb4581746903c2bb7eb376f88de9c699d0f3e10feeac0cd3a"
dependencies = [
"derive_more",
"futures 0.3.29",
"hyper 0.14.27",
"hyper-tls",
"jsonrpc-core",
"jsonrpc-pubsub",
"log 0.4.20",
"serde",
"serde_json",
"tokio",
"url 1.7.2",
"websocket",
]
[[package]]
name = "jsonrpc-core"
version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb"
dependencies = [
"futures 0.3.29",
"futures-executor",
"futures-util",
"log 0.4.20",
"serde",
"serde_derive",
"serde_json",
]
[[package]]
name = "jsonrpc-core-client"
version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b51da17abecbdab3e3d4f26b01c5ec075e88d3abe3ab3b05dc9aa69392764ec0"
dependencies = [
"futures 0.3.29",
"jsonrpc-client-transports",
]
[[package]]
name = "jsonrpc-derive"
version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b939a78fa820cdfcb7ee7484466746a7377760970f6f9c6fe19f9edcc8a38d2"
dependencies = [
"proc-macro-crate 0.1.5",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "jsonrpc-http-server"
version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff"
dependencies = [
"futures 0.3.29",
"hyper 0.14.27",
"jsonrpc-core",
"jsonrpc-server-utils",
"log 0.4.20",
"net2",
"parking_lot 0.11.2",
"unicase 2.7.0",
]
[[package]]
name = "jsonrpc-pubsub"
version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "240f87695e6c6f62fb37f05c02c04953cf68d6408b8c1c89de85c7a0125b1011"
dependencies = [
"futures 0.3.29",
"jsonrpc-core",
"lazy_static",
"log 0.4.20",
"parking_lot 0.11.2",
"rand 0.7.3",
"serde",
]
[[package]]
name = "jsonrpc-server-utils"
version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa4fdea130485b572c39a460d50888beb00afb3e35de23ccd7fad8ff19f0e0d4"
dependencies = [
"bytes 1.5.0",
"futures 0.3.29",
"globset",
"jsonrpc-core",
"lazy_static",
"log 0.4.20",
"tokio",
"tokio-stream",
"tokio-util 0.6.10",
"unicase 2.7.0",
]
[[package]]
name = "jupiter-amm-interface"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0a07d892e79ae4ad8f0947f30633188269287967ceb0b2c182f894745f49952"
dependencies = [
"anyhow",
"borsh 0.9.3",
"rust_decimal",
"serde",
"serde_json",
"solana-account-decoder",
"solana-sdk",
]
[[package]]
name = "keccak"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940"
dependencies = [
"cpufeatures",
]
[[package]]
name = "kernel32-sys"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
dependencies = [
"winapi 0.2.8",
"winapi-build",
]
[[package]]
name = "kv-log-macro"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"
dependencies = [
"log 0.4.20",
]
[[package]]
name = "language-tags"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "lazycell"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "lexical-core"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe"
dependencies = [
"arrayvec 0.5.2",
"bitflags 1.3.2",
"cfg-if 1.0.0",
"ryu",
"static_assertions",
]
[[package]]
name = "libc"
version = "0.2.150"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
[[package]]
name = "libloading"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
dependencies = [
"cfg-if 1.0.0",
"winapi 0.3.9",
]
[[package]]
name = "libm"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
[[package]]
name = "libredox"
version = "0.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8"
dependencies = [
"bitflags 2.4.1",
"libc",
"redox_syscall 0.4.1",
]
[[package]]
name = "librocksdb-sys"
version = "0.11.0+8.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3386f101bcb4bd252d8e9d2fb41ec3b0862a15a62b478c355b2982efa469e3e"
dependencies = [
"bindgen",
"bzip2-sys",
"cc",
"glob",
"libc",
"libz-sys",
"lz4-sys",
]
[[package]]
name = "libsecp256k1"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73"
dependencies = [
"arrayref",
"base64 0.12.3",
"digest 0.9.0",
"hmac-drbg",
"libsecp256k1-core",
"libsecp256k1-gen-ecmult",
"libsecp256k1-gen-genmult",
"rand 0.7.3",
"serde",
"sha2 0.9.9",
"typenum",
]
[[package]]
name = "libsecp256k1-core"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80"
dependencies = [
"crunchy",
"digest 0.9.0",
"subtle",
]
[[package]]
name = "libsecp256k1-gen-ecmult"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3"
dependencies = [
"libsecp256k1-core",
]
[[package]]
name = "libsecp256k1-gen-genmult"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d"
dependencies = [
"libsecp256k1-core",
]
[[package]]
name = "libz-sys"
version = "1.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d97137b25e321a73eef1418d1d5d2eda4d77e12813f8e6dead84bc52c5870a7b"
dependencies = [
"cc",
"pkg-config",
"vcpkg",
]
[[package]]
name = "light-poseidon"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee"
dependencies = [
"ark-bn254",
"ark-ff",
"num-bigint 0.4.4",
"thiserror",
]
[[package]]
name = "linux-raw-sys"
version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829"
[[package]]
name = "lock_api"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
dependencies = [
"scopeguard",
]
[[package]]
name = "lock_api"
version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
dependencies = [
"autocfg 1.1.0",
"scopeguard",
]
[[package]]
name = "log"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b"
dependencies = [
"log 0.4.20",
]
[[package]]
name = "log"
version = "0.4.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
dependencies = [
"value-bag",
]
[[package]]
name = "lru"
version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999beba7b6e8345721bd280141ed958096a2e4abdf74f67ff4ce49b4b54e47a"
dependencies = [
"hashbrown 0.12.3",
]
[[package]]
name = "lz4"
version = "1.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e9e2dd86df36ce760a60f6ff6ad526f7ba1f14ba0356f8254fb6905e6494df1"
dependencies = [
"libc",
"lz4-sys",
]
[[package]]
name = "lz4-sys"
version = "1.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57d27b317e207b10f69f5e75494119e391a96f48861ae870d1da6edac98ca900"
dependencies = [
"cc",
"libc",
]
[[package]]
name = "matches"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"
[[package]]
name = "matchit"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
[[package]]
name = "maybe-uninit"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
[[package]]
name = "memchr"
version = "2.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
[[package]]
name = "memmap2"
version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
dependencies = [
"libc",
]
[[package]]
name = "memoffset"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4"
dependencies = [
"autocfg 1.1.0",
]
[[package]]
name = "memoffset"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
dependencies = [
"autocfg 1.1.0",
]
[[package]]
name = "merlin"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d"
dependencies = [
"byteorder",
"keccak",
"rand_core 0.6.4",
"zeroize",
]
[[package]]
name = "mime"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0"
dependencies = [
"log 0.3.9",
]
[[package]]
name = "mime"
version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
[[package]]
name = "minimal-lexical"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "miniz_oxide"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
dependencies = [
"adler",
]
[[package]]
name = "mio"
version = "0.6.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
dependencies = [
"cfg-if 0.1.10",
"fuchsia-zircon",
"fuchsia-zircon-sys",
"iovec",
"kernel32-sys",
"libc",
"log 0.4.20",
"miow",
"net2",
"slab",
"winapi 0.2.8",
]
[[package]]
name = "mio"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c"
dependencies = [
"libc",
"wasi 0.11.0+wasi-snapshot-preview1",
"windows-sys 0.48.0",
]
[[package]]
name = "miow"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
dependencies = [
"kernel32-sys",
"net2",
"winapi 0.2.8",
"ws2_32-sys",
]
[[package]]
name = "modular-bitfield"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a53d79ba8304ac1c4f9eb3b9d281f21f7be9d4626f72ce7df4ad8fbde4f38a74"
dependencies = [
"modular-bitfield-impl",
"static_assertions",
]
[[package]]
name = "modular-bitfield-impl"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a7d5f7076603ebc68de2dc6a650ec331a062a13abaa346975be747bbfa4b789"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "multimap"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"
[[package]]
name = "native-tls"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e"
dependencies = [
"lazy_static",
"libc",
"log 0.4.20",
"openssl",
"openssl-probe",
"openssl-sys",
"schannel",
"security-framework",
"security-framework-sys",
"tempfile",
]
[[package]]
name = "net2"
version = "0.2.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b13b648036a2339d06de780866fbdfda0dde886de7b3af2ddeba8b14f4ee34ac"
dependencies = [
"cfg-if 0.1.10",
"libc",
"winapi 0.3.9",
]
[[package]]
name = "nix"
version = "0.26.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b"
dependencies = [
"bitflags 1.3.2",
"cfg-if 1.0.0",
"libc",
"memoffset 0.7.1",
"pin-utils",
]
[[package]]
name = "nom"
version = "5.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08959a387a676302eebf4ddbcbc611da04285579f76f88ee0506c63b1a61dd4b"
dependencies = [
"lexical-core",
"memchr",
"version_check 0.9.4",
]
[[package]]
name = "nom"
version = "7.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
dependencies = [
"memchr",
"minimal-lexical",
]
[[package]]
name = "num"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8536030f9fea7127f841b45bb6243b27255787fb4eb83958aa1ef9d2fdc0c36"
dependencies = [
"num-bigint 0.2.6",
"num-complex 0.2.4",
"num-integer",
"num-iter",
"num-rational 0.2.4",
"num-traits",
]
[[package]]
name = "num"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b05180d69e3da0e530ba2a1dae5110317e49e3b7f3d41be227dc5f92e49ee7af"
dependencies = [
"num-bigint 0.4.4",
"num-complex 0.4.4",
"num-integer",
"num-iter",
"num-rational 0.4.1",
"num-traits",
]
[[package]]
name = "num-bigint"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304"
dependencies = [
"autocfg 1.1.0",
"num-integer",
"num-traits",
]
[[package]]
name = "num-bigint"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0"
dependencies = [
"autocfg 1.1.0",
"num-integer",
"num-traits",
]
[[package]]
name = "num-complex"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95"
dependencies = [
"autocfg 1.1.0",
"num-traits",
]
[[package]]
name = "num-complex"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214"
dependencies = [
"num-traits",
]
[[package]]
name = "num-derive"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "num-derive"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfb77679af88f8b125209d354a202862602672222e7f2313fdd6dc349bad4712"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "num-integer"
version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
dependencies = [
"autocfg 1.1.0",
"num-traits",
]
[[package]]
name = "num-iter"
version = "0.1.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252"
dependencies = [
"autocfg 1.1.0",
"num-integer",
"num-traits",
]
[[package]]
name = "num-rational"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef"
dependencies = [
"autocfg 1.1.0",
"num-bigint 0.2.6",
"num-integer",
"num-traits",
]
[[package]]
name = "num-rational"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0"
dependencies = [
"autocfg 1.1.0",
"num-bigint 0.4.4",
"num-integer",
"num-traits",
]
[[package]]
name = "num-traits"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c"
dependencies = [
"autocfg 1.1.0",
]
[[package]]
name = "num_cpus"
version = "1.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
dependencies = [
"hermit-abi 0.3.3",
"libc",
]
[[package]]
name = "num_enum"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9"
dependencies = [
"num_enum_derive 0.5.11",
]
[[package]]
name = "num_enum"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1"
dependencies = [
"num_enum_derive 0.6.1",
]
[[package]]
name = "num_enum"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683751d591e6d81200c39fb0d1032608b77724f34114db54f571ff1317b337c0"
dependencies = [
"num_enum_derive 0.7.1",
]
[[package]]
name = "num_enum_derive"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "num_enum_derive"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "num_enum_derive"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c11e44798ad209ccdd91fc192f0526a369a01234f7373e1b141c96d7cee4f0e"
dependencies = [
"proc-macro-crate 2.0.0",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "number_prefix"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"
[[package]]
name = "object"
version = "0.32.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441"
dependencies = [
"memchr",
]
[[package]]
name = "oid-registry"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff"
dependencies = [
"asn1-rs",
]
[[package]]
name = "once_cell"
version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]]
name = "opaque-debug"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "openbook-v2"
version = "0.1.0"
dependencies = [
"anchor-lang",
"anchor-spl",
"arbitrary",
"arrayref",
"async-trait",
"base64 0.13.1",
"bytemuck",
"default-env",
"derivative",
"env_logger",
"fixed",
"itertools",
"lazy_static",
"log 0.4.20",
"num 0.4.1",
"num_enum 0.5.11",
"pyth-sdk-solana",
"rand 0.8.5",
"solana-logger",
"solana-program",
"solana-program-test",
"solana-sdk",
"solana-security-txt",
"spl-associated-token-account 1.1.3",
"spl-token 3.5.0",
"static_assertions",
"switchboard-program",
"switchboard-solana",
]
[[package]]
name = "openbook-v2-client"
version = "0.3.0"
dependencies = [
"anchor-client",
"anchor-lang",
"anchor-spl",
"anyhow",
"async-channel",
"async-once-cell",
"async-trait",
"base64 0.13.1",
"bincode",
"fixed",
"futures 0.3.29",
"itertools",
"jsonrpc-core",
"jsonrpc-core-client",
"jupiter-amm-interface",
"log 0.4.20",
"openbook-v2",
"pyth-sdk-solana",
"reqwest",
"serde",
"serde_json",
"shellexpand",
"solana-account-decoder",
"solana-client",
"solana-program-test",
"solana-rpc",
"solana-rpc-client",
"solana-rpc-client-api",
"solana-sdk",
"spl-associated-token-account 1.1.3",
"thiserror",
"tokio",
"tokio-stream",
]
[[package]]
name = "openssl"
version = "0.10.59"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a257ad03cd8fb16ad4172fedf8094451e1af1c4b70097636ef2eac9a5f0cc33"
dependencies = [
"bitflags 2.4.1",
"cfg-if 1.0.0",
"foreign-types",
"libc",
"once_cell",
"openssl-macros",
"openssl-sys",
]
[[package]]
name = "openssl-macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "openssl-probe"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-src"
version = "300.1.6+3.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439fac53e092cd7442a3660c85dde4643ab3b5bd39040912388dcdabf6b88085"
dependencies = [
"cc",
]
[[package]]
name = "openssl-sys"
version = "0.9.95"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40a4130519a360279579c2053038317e40eff64d13fd3f004f9e1b72b8a6aaf9"
dependencies = [
"cc",
"libc",
"openssl-src",
"pkg-config",
"vcpkg",
]
[[package]]
name = "opentelemetry"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6105e89802af13fdf48c49d7646d3b533a70e536d818aae7e78ba0433d01acb8"
dependencies = [
"async-trait",
"crossbeam-channel",
"futures-channel",
"futures-executor",
"futures-util",
"js-sys",
"lazy_static",
"percent-encoding 2.3.1",
"pin-project",
"rand 0.8.5",
"thiserror",
]
[[package]]
name = "os_str_bytes"
version = "6.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2355d85b9a3786f481747ced0e0ff2ba35213a1f9bd406ed906554d7af805a1"
[[package]]
name = "ouroboros"
version = "0.15.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1358bd1558bd2a083fed428ffeda486fbfb323e698cdda7794259d592ca72db"
dependencies = [
"aliasable",
"ouroboros_macro",
]
[[package]]
name = "ouroboros_macro"
version = "0.15.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f7d21ccd03305a674437ee1248f3ab5d4b1db095cf1caf49f1713ddf61956b7"
dependencies = [
"Inflector",
"proc-macro-error",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "parking_lot"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252"
dependencies = [
"lock_api 0.3.4",
"parking_lot_core 0.6.3",
"rustc_version 0.2.3",
]
[[package]]
name = "parking_lot"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
dependencies = [
"instant",
"lock_api 0.4.11",
"parking_lot_core 0.8.6",
]
[[package]]
name = "parking_lot"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
dependencies = [
"lock_api 0.4.11",
"parking_lot_core 0.9.9",
]
[[package]]
name = "parking_lot_core"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bda66b810a62be75176a80873726630147a5ca780cd33921e0b5709033e66b0a"
dependencies = [
"cfg-if 0.1.10",
"cloudabi",
"libc",
"redox_syscall 0.1.57",
"rustc_version 0.2.3",
"smallvec 0.6.14",
"winapi 0.3.9",
]
[[package]]
name = "parking_lot_core"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc"
dependencies = [
"cfg-if 1.0.0",
"instant",
"libc",
"redox_syscall 0.2.16",
"smallvec 1.11.2",
"winapi 0.3.9",
]
[[package]]
name = "parking_lot_core"
version = "0.9.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
dependencies = [
"cfg-if 1.0.0",
"libc",
"redox_syscall 0.4.1",
"smallvec 1.11.2",
"windows-targets 0.48.5",
]
[[package]]
name = "paste"
version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
[[package]]
name = "pbkdf2"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd"
dependencies = [
"crypto-mac",
]
[[package]]
name = "pbkdf2"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917"
dependencies = [
"digest 0.10.7",
]
[[package]]
name = "peeking_take_while"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
[[package]]
name = "pem"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8835c273a76a90455d7344889b0964598e3316e2a79ede8e36f16bdcf2228b8"
dependencies = [
"base64 0.13.1",
]
[[package]]
name = "percent-encoding"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
[[package]]
name = "percent-encoding"
version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "percentage"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fd23b938276f14057220b707937bcb42fa76dda7560e57a2da30cb52d557937"
dependencies = [
"num 0.2.1",
]
[[package]]
name = "petgraph"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9"
dependencies = [
"fixedbitset",
"indexmap 2.1.0",
]
[[package]]
name = "pin-project"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422"
dependencies = [
"pin-project-internal",
]
[[package]]
name = "pin-project-internal"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "pin-project-lite"
version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58"
[[package]]
name = "pin-utils"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "pkcs8"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7cabda3fb821068a9a4fab19a683eac3af12edf0f34b94a8be53c4972b8149d0"
dependencies = [
"der",
"spki",
"zeroize",
]
[[package]]
name = "pkg-config"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
[[package]]
name = "plain"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
[[package]]
name = "polyval"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1"
dependencies = [
"cfg-if 1.0.0",
"cpufeatures",
"opaque-debug",
"universal-hash",
]
[[package]]
name = "portable-atomic"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3bccab0e7fd7cc19f820a1c8c91720af652d0c88dc9664dd72aef2614f04af3b"
[[package]]
name = "powerfmt"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "ppv-lite86"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "prettyplease"
version = "0.1.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86"
dependencies = [
"proc-macro2 1.0.79",
"syn 1.0.109",
]
[[package]]
name = "prettyplease"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d"
dependencies = [
"proc-macro2 1.0.79",
"syn 2.0.58",
]
[[package]]
name = "proc-macro-crate"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785"
dependencies = [
"toml",
]
[[package]]
name = "proc-macro-crate"
version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
dependencies = [
"once_cell",
"toml_edit 0.19.15",
]
[[package]]
name = "proc-macro-crate"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8"
dependencies = [
"toml_edit 0.20.7",
]
[[package]]
name = "proc-macro-error"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
"version_check 0.9.4",
]
[[package]]
name = "proc-macro-error-attr"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"version_check 0.9.4",
]
[[package]]
name = "proc-macro2"
version = "0.4.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759"
dependencies = [
"unicode-xid 0.1.0",
]
[[package]]
name = "proc-macro2"
version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e"
dependencies = [
"unicode-ident",
]
[[package]]
name = "prost"
version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd"
dependencies = [
"bytes 1.5.0",
"prost-derive",
]
[[package]]
name = "prost-build"
version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270"
dependencies = [
"bytes 1.5.0",
"heck 0.4.1",
"itertools",
"lazy_static",
"log 0.4.20",
"multimap",
"petgraph",
"prettyplease 0.1.25",
"prost",
"prost-types",
"regex",
"syn 1.0.109",
"tempfile",
"which",
]
[[package]]
name = "prost-derive"
version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4"
dependencies = [
"anyhow",
"itertools",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "prost-types"
version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13"
dependencies = [
"prost",
]
[[package]]
name = "protobuf-src"
version = "1.1.0+21.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7ac8852baeb3cc6fb83b93646fb93c0ffe5d14bf138c945ceb4b9948ee0e3c1"
dependencies = [
"autotools",
]
[[package]]
name = "pyth-sdk"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e7aeef4d5f0a9c98ff5af2ddd84a8b89919c512188305b497a9eb9afa97a949"
dependencies = [
"borsh 0.10.3",
"borsh-derive 0.10.3",
"getrandom 0.2.11",
"hex",
"schemars",
"serde",
]
[[package]]
name = "pyth-sdk-solana"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f913de6eb29d8def199af3beaee645e84c5281327d58777eff3fdd9f1d37105"
dependencies = [
"borsh 0.10.3",
"borsh-derive 0.10.3",
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"pyth-sdk",
"serde",
"solana-program",
"thiserror",
]
[[package]]
name = "qstring"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e"
dependencies = [
"percent-encoding 2.3.1",
]
[[package]]
name = "qualifier_attr"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "quick-protobuf"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ca6639207ac869e31cca06b8adbc7676278f22b321e51115766009b4f192dbb"
dependencies = [
"byteorder",
]
[[package]]
name = "quinn"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8cc2c5017e4b43d5995dcea317bc46c1e09404c0a9664d2908f7f02dfe943d75"
dependencies = [
"bytes 1.5.0",
"pin-project-lite",
"quinn-proto",
"quinn-udp",
"rustc-hash",
"rustls",
"thiserror",
"tokio",
"tracing",
]
[[package]]
name = "quinn-proto"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "141bf7dfde2fbc246bfd3fe12f2455aa24b0fbd9af535d8c86c7bd1381ff2b1a"
dependencies = [
"bytes 1.5.0",
"rand 0.8.5",
"ring 0.16.20",
"rustc-hash",
"rustls",
"rustls-native-certs",
"slab",
"thiserror",
"tinyvec",
"tracing",
]
[[package]]
name = "quinn-udp"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "055b4e778e8feb9f93c4e439f71dc2156ef13360b432b799e179a8c4cdf0b1d7"
dependencies = [
"bytes 1.5.0",
"libc",
"socket2 0.5.6",
"tracing",
"windows-sys 0.48.0",
]
[[package]]
name = "quote"
version = "0.6.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1"
dependencies = [
"proc-macro2 0.4.30",
]
[[package]]
name = "quote"
version = "1.0.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
dependencies = [
"proc-macro2 1.0.79",
]
[[package]]
name = "rand"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca"
dependencies = [
"autocfg 0.1.8",
"libc",
"rand_chacha 0.1.1",
"rand_core 0.4.2",
"rand_hc 0.1.0",
"rand_isaac",
"rand_jitter",
"rand_os",
"rand_pcg",
"rand_xorshift",
"winapi 0.3.9",
]
[[package]]
name = "rand"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
dependencies = [
"getrandom 0.1.16",
"libc",
"rand_chacha 0.2.2",
"rand_core 0.5.1",
"rand_hc 0.2.0",
]
[[package]]
name = "rand"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"libc",
"rand_chacha 0.3.1",
"rand_core 0.6.4",
]
[[package]]
name = "rand_chacha"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef"
dependencies = [
"autocfg 0.1.8",
"rand_core 0.3.1",
]
[[package]]
name = "rand_chacha"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
dependencies = [
"ppv-lite86",
"rand_core 0.5.1",
]
[[package]]
name = "rand_chacha"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
"rand_core 0.6.4",
]
[[package]]
name = "rand_core"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"
dependencies = [
"rand_core 0.4.2",
]
[[package]]
name = "rand_core"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"
[[package]]
name = "rand_core"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
dependencies = [
"getrandom 0.1.16",
]
[[package]]
name = "rand_core"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
"getrandom 0.2.11",
]
[[package]]
name = "rand_hc"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4"
dependencies = [
"rand_core 0.3.1",
]
[[package]]
name = "rand_hc"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
dependencies = [
"rand_core 0.5.1",
]
[[package]]
name = "rand_isaac"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08"
dependencies = [
"rand_core 0.3.1",
]
[[package]]
name = "rand_jitter"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b"
dependencies = [
"libc",
"rand_core 0.4.2",
"winapi 0.3.9",
]
[[package]]
name = "rand_os"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071"
dependencies = [
"cloudabi",
"fuchsia-cprng",
"libc",
"rand_core 0.4.2",
"rdrand",
"winapi 0.3.9",
]
[[package]]
name = "rand_pcg"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44"
dependencies = [
"autocfg 0.1.8",
"rand_core 0.4.2",
]
[[package]]
name = "rand_xorshift"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c"
dependencies = [
"rand_core 0.3.1",
]
[[package]]
name = "rand_xoshiro"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa"
dependencies = [
"rand_core 0.6.4",
]
[[package]]
name = "rayon"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1"
dependencies = [
"either",
"rayon-core",
]
[[package]]
name = "rayon-core"
version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed"
dependencies = [
"crossbeam-deque",
"crossbeam-utils 0.8.16",
]
[[package]]
name = "rcgen"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffbe84efe2f38dea12e9bfc1f65377fdf03e53a18cb3b995faedf7934c7e785b"
dependencies = [
"pem",
"ring 0.16.20",
"time 0.3.30",
"yasna",
]
[[package]]
name = "rdrand"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
dependencies = [
"rand_core 0.3.1",
]
[[package]]
name = "redox_syscall"
version = "0.1.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
[[package]]
name = "redox_syscall"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "redox_syscall"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "redox_syscall"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "redox_users"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4"
dependencies = [
"getrandom 0.2.11",
"libredox",
"thiserror",
]
[[package]]
name = "reed-solomon-erasure"
version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7263373d500d4d4f505d43a2a662d475a894aa94503a1ee28e9188b5f3960d4f"
dependencies = [
"cc",
"libc",
"libm",
"lru",
"parking_lot 0.11.2",
"smallvec 1.11.2",
"spin 0.9.8",
]
[[package]]
name = "regex"
version = "1.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
dependencies = [
"aho-corasick",
"memchr",
"regex-automata",
"regex-syntax",
]
[[package]]
name = "regex-automata"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
[[package]]
name = "reqwest"
version = "0.11.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62"
dependencies = [
"async-compression",
"base64 0.21.5",
"bytes 1.5.0",
"encoding_rs",
"futures-core",
"futures-util",
"h2",
"http",
"http-body",
"hyper 0.14.27",
"hyper-rustls",
"hyper-tls",
"ipnet",
"js-sys",
"log 0.4.20",
"mime 0.3.17",
"native-tls",
"once_cell",
"percent-encoding 2.3.1",
"pin-project-lite",
"rustls",
"rustls-pemfile",
"serde",
"serde_json",
"serde_urlencoded",
"sync_wrapper",
"system-configuration",
"tokio",
"tokio-native-tls",
"tokio-rustls",
"tokio-util 0.7.10",
"tower-service",
"url 2.5.0",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"webpki-roots 0.25.4",
"winreg",
]
[[package]]
name = "ring"
version = "0.16.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
dependencies = [
"cc",
"libc",
"once_cell",
"spin 0.5.2",
"untrusted 0.7.1",
"web-sys",
"winapi 0.3.9",
]
[[package]]
name = "ring"
version = "0.17.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b"
dependencies = [
"cc",
"getrandom 0.2.11",
"libc",
"spin 0.9.8",
"untrusted 0.9.0",
"windows-sys 0.48.0",
]
[[package]]
name = "rocksdb"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb6f170a4041d50a0ce04b0d2e14916d6ca863ea2e422689a5b694395d299ffe"
dependencies = [
"libc",
"librocksdb-sys",
]
[[package]]
name = "rpassword"
version = "7.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80472be3c897911d0137b2d2b9055faf6eeac5b14e324073d83bc17b191d7e3f"
dependencies = [
"libc",
"rtoolbox",
"windows-sys 0.48.0",
]
[[package]]
name = "rtoolbox"
version = "0.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c247d24e63230cdb56463ae328478bd5eac8b8faa8c69461a77e8e323afac90e"
dependencies = [
"libc",
"windows-sys 0.48.0",
]
[[package]]
name = "rust_decimal"
version = "1.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee9164faf726e4f3ece4978b25ca877ddc6802fa77f38cdccb32c7f805ecd70c"
dependencies = [
"arrayvec 0.7.4",
"num-traits",
"serde",
]
[[package]]
name = "rust_decimal_macros"
version = "1.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4903d8db81d2321699ca8318035d6ff805c548868df435813968795a802171b2"
dependencies = [
"quote 1.0.36",
"rust_decimal",
]
[[package]]
name = "rustc-demangle"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
[[package]]
name = "rustc-hash"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
[[package]]
name = "rustc_version"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
dependencies = [
"semver 0.9.0",
]
[[package]]
name = "rustc_version"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
dependencies = [
"semver 1.0.20",
]
[[package]]
name = "rusticata-macros"
version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632"
dependencies = [
"nom 7.1.3",
]
[[package]]
name = "rustix"
version = "0.38.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e"
dependencies = [
"bitflags 2.4.1",
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.48.0",
]
[[package]]
name = "rustls"
version = "0.21.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba"
dependencies = [
"log 0.4.20",
"ring 0.17.5",
"rustls-webpki",
"sct",
]
[[package]]
name = "rustls-native-certs"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00"
dependencies = [
"openssl-probe",
"rustls-pemfile",
"schannel",
"security-framework",
]
[[package]]
name = "rustls-pemfile"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c"
dependencies = [
"base64 0.21.5",
]
[[package]]
name = "rustls-webpki"
version = "0.101.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
dependencies = [
"ring 0.17.5",
"untrusted 0.9.0",
]
[[package]]
name = "rustversion"
version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4"
[[package]]
name = "ryu"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
[[package]]
name = "safemem"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
[[package]]
name = "same-file"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
dependencies = [
"winapi-util",
]
[[package]]
name = "schannel"
version = "0.1.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88"
dependencies = [
"windows-sys 0.48.0",
]
[[package]]
name = "schemars"
version = "0.8.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
dependencies = [
"dyn-clone",
"schemars_derive",
"serde",
"serde_json",
]
[[package]]
name = "schemars_derive"
version = "0.8.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c767fd6fa65d9ccf9cf026122c1b555f2ef9a4f0cea69da4d7dbc3e258d30967"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"serde_derive_internals",
"syn 1.0.109",
]
[[package]]
name = "scopeguard"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "scroll"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da"
dependencies = [
"scroll_derive",
]
[[package]]
name = "scroll_derive"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1db149f81d46d2deba7cd3c50772474707729550221e69588478ebf9ada425ae"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "sct"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
dependencies = [
"ring 0.17.5",
"untrusted 0.9.0",
]
[[package]]
name = "security-framework"
version = "2.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de"
dependencies = [
"bitflags 1.3.2",
"core-foundation",
"core-foundation-sys",
"libc",
"security-framework-sys",
]
[[package]]
name = "security-framework-sys"
version = "2.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "semver"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
dependencies = [
"semver-parser",
]
[[package]]
name = "semver"
version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090"
[[package]]
name = "semver-parser"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]]
name = "serde"
version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_bytes"
version = "0.11.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab33ec92f677585af6d88c65593ae2375adde54efdbf16d597f2cbc7a6d368ff"
dependencies = [
"serde",
]
[[package]]
name = "serde_derive"
version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "serde_derive_internals"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "serde_fmt"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1d4ddca14104cd60529e8c7f7ba71a2c8acd8f7f5cfcdc2faf97eeb7c3010a4"
dependencies = [
"serde",
]
[[package]]
name = "serde_json"
version = "1.0.108"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b"
dependencies = [
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_urlencoded"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
dependencies = [
"form_urlencoded",
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_with"
version = "2.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe"
dependencies = [
"serde",
"serde_with_macros",
]
[[package]]
name = "serde_with_macros"
version = "2.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f"
dependencies = [
"darling",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "serde_yaml"
version = "0.9.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3cc7a1570e38322cfe4154732e5110f887ea57e22b76f4bfd32b5bdd3368666c"
dependencies = [
"indexmap 2.1.0",
"itoa",
"ryu",
"serde",
"unsafe-libyaml",
]
[[package]]
name = "sgx-quote"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1640577af7b81d10db340c4b31006b77972e3918f351eec4e65c389c8b58e21"
dependencies = [
"nom 5.1.3",
]
[[package]]
name = "sha-1"
version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6"
dependencies = [
"block-buffer 0.9.0",
"cfg-if 1.0.0",
"cpufeatures",
"digest 0.9.0",
"opaque-debug",
]
[[package]]
name = "sha1"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770"
dependencies = [
"sha1_smol",
]
[[package]]
name = "sha1"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
dependencies = [
"cfg-if 1.0.0",
"cpufeatures",
"digest 0.10.7",
]
[[package]]
name = "sha1_smol"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
[[package]]
name = "sha2"
version = "0.9.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800"
dependencies = [
"block-buffer 0.9.0",
"cfg-if 1.0.0",
"cpufeatures",
"digest 0.9.0",
"opaque-debug",
]
[[package]]
name = "sha2"
version = "0.10.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
dependencies = [
"cfg-if 1.0.0",
"cpufeatures",
"digest 0.10.7",
]
[[package]]
name = "sha3"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809"
dependencies = [
"block-buffer 0.9.0",
"digest 0.9.0",
"keccak",
"opaque-debug",
]
[[package]]
name = "sha3"
version = "0.10.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60"
dependencies = [
"digest 0.10.7",
"keccak",
]
[[package]]
name = "sharded-slab"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
dependencies = [
"lazy_static",
]
[[package]]
name = "shell-words"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
[[package]]
name = "shellexpand"
version = "2.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ccc8076840c4da029af4f87e4e8daeb0fca6b87bbb02e10cb60b791450e11e4"
dependencies = [
"dirs",
]
[[package]]
name = "shlex"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380"
[[package]]
name = "signal-hook-registry"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1"
dependencies = [
"libc",
]
[[package]]
name = "signature"
version = "1.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c"
[[package]]
name = "simpl"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a30f10c911c0355f80f1c2faa8096efc4a58cdf8590b954d5b395efa071c711"
[[package]]
name = "siphasher"
version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
[[package]]
name = "sized-chunks"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e"
dependencies = [
"bitmaps",
"typenum",
]
[[package]]
name = "slab"
version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
dependencies = [
"autocfg 1.1.0",
]
[[package]]
name = "smallvec"
version = "0.6.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0"
dependencies = [
"maybe-uninit",
]
[[package]]
name = "smallvec"
version = "1.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
[[package]]
name = "smpl_jwt"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95b6ff8c21c74ce7744643a7cddbb02579a44f1f77e4316bff1ddb741aca8ac9"
dependencies = [
"base64 0.13.1",
"log 0.4.20",
"openssl",
"serde",
"serde_derive",
"serde_json",
"simpl",
"time 0.3.30",
]
[[package]]
name = "socket2"
version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d"
dependencies = [
"libc",
"winapi 0.3.9",
]
[[package]]
name = "socket2"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "soketto"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2"
dependencies = [
"base64 0.13.1",
"bytes 1.5.0",
"futures 0.3.29",
"httparse",
"log 0.4.20",
"rand 0.8.5",
"sha-1",
]
[[package]]
name = "solana-account-decoder"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c48541b782c0fbb15ac202f2487353c3649fbf868afacae6ca1c9fe0f7df0b4a"
dependencies = [
"Inflector",
"base64 0.21.5",
"bincode",
"bs58 0.4.0",
"bv",
"lazy_static",
"serde",
"serde_derive",
"serde_json",
"solana-config-program",
"solana-sdk",
"spl-token 4.0.0",
"spl-token-2022 0.9.0",
"spl-token-metadata-interface",
"thiserror",
"zstd",
]
[[package]]
name = "solana-accounts-db"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a5a48e3dfffb0699a7b2c6a0714f4c6dd974a8fd744b4e4ac67238ed3fc3ba0"
dependencies = [
"arrayref",
"bincode",
"blake3",
"bv",
"bytemuck",
"byteorder",
"bzip2",
"crossbeam-channel",
"dashmap 4.0.2",
"flate2",
"fnv",
"fs-err",
"im",
"index_list",
"itertools",
"lazy_static",
"log 0.4.20",
"lz4",
"memmap2",
"modular-bitfield",
"num-derive 0.3.3",
"num-traits",
"num_cpus",
"num_enum 0.6.1",
"ouroboros",
"percentage",
"qualifier_attr",
"rand 0.8.5",
"rayon",
"regex",
"rustc_version 0.4.0",
"serde",
"serde_derive",
"solana-bucket-map",
"solana-config-program",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-measure",
"solana-metrics",
"solana-program-runtime",
"solana-rayon-threadlimit",
"solana-sdk",
"solana-stake-program",
"solana-system-program",
"solana-vote-program",
"static_assertions",
"strum",
"strum_macros",
"tar",
"tempfile",
"thiserror",
]
[[package]]
name = "solana-address-lookup-table-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "918eaf2c89e92960ab5fa7c21921fb3921ace134770c371b5d25b13569e2993f"
dependencies = [
"bincode",
"bytemuck",
"log 0.4.20",
"num-derive 0.3.3",
"num-traits",
"rustc_version 0.4.0",
"serde",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-program",
"solana-program-runtime",
"solana-sdk",
"thiserror",
]
[[package]]
name = "solana-banks-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c565499d7fdb92ac2dc6ad2de23c9b8e9cedd54630953e8fcdd98a03a898b8e6"
dependencies = [
"borsh 0.10.3",
"futures 0.3.29",
"solana-banks-interface",
"solana-program",
"solana-sdk",
"tarpc",
"thiserror",
"tokio",
"tokio-serde",
]
[[package]]
name = "solana-banks-interface"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b88919cc1dc06b78da78d2f82b0afd094926981d7538ed68fe204201c5f60d72"
dependencies = [
"serde",
"solana-sdk",
"tarpc",
]
[[package]]
name = "solana-banks-server"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fcf6f5a00e3e30b33a6f72c4e5b02a0933dfdf294efabf47dfed4d6a1640928"
dependencies = [
"bincode",
"crossbeam-channel",
"futures 0.3.29",
"solana-accounts-db",
"solana-banks-interface",
"solana-client",
"solana-runtime",
"solana-sdk",
"solana-send-transaction-service",
"tarpc",
"tokio",
"tokio-serde",
]
[[package]]
name = "solana-bloom"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f937197c7f16c95f120e4d88b42c1a053d5ff6df599412656e70046d28181b63"
dependencies = [
"bv",
"fnv",
"log 0.4.20",
"rand 0.8.5",
"rayon",
"rustc_version 0.4.0",
"serde",
"serde_derive",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-sdk",
]
[[package]]
name = "solana-bpf-loader-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b1f0c6b35b805f7bf31d08b3c609fb37eb13031d675e2e4db227873e1050c27"
dependencies = [
"bincode",
"byteorder",
"libsecp256k1",
"log 0.4.20",
"scopeguard",
"solana-measure",
"solana-program-runtime",
"solana-sdk",
"solana-zk-token-sdk",
"solana_rbpf",
"thiserror",
]
[[package]]
name = "solana-bucket-map"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93f4038e5bf34bcca677fd749512fbca8db2db21ca629b6b1095e502d11e4265"
dependencies = [
"bv",
"bytemuck",
"log 0.4.20",
"memmap2",
"modular-bitfield",
"num_enum 0.6.1",
"rand 0.8.5",
"solana-measure",
"solana-sdk",
"tempfile",
]
[[package]]
name = "solana-clap-utils"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3a78952f057a7d4f87b3a6a5f4a8705cefbb67bbc00ecffc2c75b168a54c931"
dependencies = [
"chrono",
"clap 2.34.0",
"rpassword",
"solana-remote-wallet",
"solana-sdk",
"thiserror",
"tiny-bip39",
"uriparse",
"url 2.5.0",
]
[[package]]
name = "solana-cli-config"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "679dc3185379986a1cfa8dce737a59a9899b8114a38cb8e184bac228fabb4a04"
dependencies = [
"dirs-next",
"lazy_static",
"serde",
"serde_derive",
"serde_yaml",
"solana-clap-utils",
"solana-sdk",
"url 2.5.0",
]
[[package]]
name = "solana-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e85b1d68bce244750bd02c4d71ed0df415c9b8d91a4b0f1e7ce6b97748db46c"
dependencies = [
"async-trait",
"bincode",
"dashmap 4.0.2",
"futures 0.3.29",
"futures-util",
"indexmap 2.1.0",
"indicatif",
"log 0.4.20",
"quinn",
"rayon",
"solana-connection-cache",
"solana-measure",
"solana-metrics",
"solana-pubsub-client",
"solana-quic-client",
"solana-rpc-client",
"solana-rpc-client-api",
"solana-rpc-client-nonce-utils",
"solana-sdk",
"solana-streamer",
"solana-thin-client",
"solana-tpu-client",
"solana-udp-client",
"thiserror",
"tokio",
]
[[package]]
name = "solana-compute-budget-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cc2978cf6a5335576b2c12ce4bb3cf6c95178a9e2f1f110a39c17c7ca79ba94"
dependencies = [
"solana-program-runtime",
"solana-sdk",
]
[[package]]
name = "solana-config-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c66c9c5bbc148affd42127061af9c0e7e5901b5e5142e951912f165272203c1"
dependencies = [
"bincode",
"chrono",
"serde",
"serde_derive",
"solana-program-runtime",
"solana-sdk",
]
[[package]]
name = "solana-connection-cache"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4180686b6384013f062242ee9f18ea6ea68268e9b35fa9aa0206c2a622d1773f"
dependencies = [
"async-trait",
"bincode",
"crossbeam-channel",
"futures-util",
"indexmap 2.1.0",
"log 0.4.20",
"rand 0.8.5",
"rayon",
"rcgen",
"solana-measure",
"solana-metrics",
"solana-sdk",
"thiserror",
"tokio",
]
[[package]]
name = "solana-cost-model"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2ad4fb3639f3d1751fad91bfbfc07d99427633705328d2e123fe578ca9dedf67"
dependencies = [
"lazy_static",
"log 0.4.20",
"rustc_version 0.4.0",
"solana-address-lookup-table-program",
"solana-bpf-loader-program",
"solana-compute-budget-program",
"solana-config-program",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-loader-v4-program",
"solana-metrics",
"solana-program-runtime",
"solana-sdk",
"solana-stake-program",
"solana-system-program",
"solana-vote-program",
]
[[package]]
name = "solana-entry"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4e50f3ac126a87e614a56f36f5196e792c1d4e4d97b81199aafa2e0e43ac8b1"
dependencies = [
"bincode",
"crossbeam-channel",
"dlopen2",
"lazy_static",
"log 0.4.20",
"rand 0.8.5",
"rayon",
"serde",
"solana-measure",
"solana-merkle-tree",
"solana-metrics",
"solana-perf",
"solana-rayon-threadlimit",
"solana-sdk",
]
[[package]]
name = "solana-faucet"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13fbc9d1c48031c7fce035bb139e82a2a4fcfcc2bb189dd973fdba158eff1d8c"
dependencies = [
"bincode",
"byteorder",
"clap 2.34.0",
"crossbeam-channel",
"log 0.4.20",
"serde",
"serde_derive",
"solana-clap-utils",
"solana-cli-config",
"solana-logger",
"solana-metrics",
"solana-sdk",
"solana-version",
"spl-memo 4.0.0",
"thiserror",
"tokio",
]
[[package]]
name = "solana-frozen-abi"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "174a53486f9e0774680c2b6a53568a15c11ccc5cef1263a7e7d42958bfd61792"
dependencies = [
"ahash 0.8.6",
"blake3",
"block-buffer 0.10.4",
"bs58 0.4.0",
"bv",
"byteorder",
"cc",
"either",
"generic-array",
"im",
"lazy_static",
"log 0.4.20",
"memmap2",
"rustc_version 0.4.0",
"serde",
"serde_bytes",
"serde_derive",
"serde_json",
"sha2 0.10.8",
"solana-frozen-abi-macro",
"subtle",
"thiserror",
]
[[package]]
name = "solana-frozen-abi-macro"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e69b9bc56d9f92bd194569091d655be239a51a934df1db247e0c8bd2a9352909"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"rustc_version 0.4.0",
"syn 2.0.58",
]
[[package]]
name = "solana-gossip"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf2dec401edb16f0d8c49435ef63ab5d12dd1dd6dfe469bac855f6bb3f988ced"
dependencies = [
"assert_matches",
"bincode",
"bv",
"clap 2.34.0",
"crossbeam-channel",
"flate2",
"indexmap 2.1.0",
"itertools",
"log 0.4.20",
"lru",
"num-traits",
"rand 0.8.5",
"rand_chacha 0.3.1",
"rayon",
"rustc_version 0.4.0",
"rustversion",
"serde",
"serde_bytes",
"serde_derive",
"solana-bloom",
"solana-clap-utils",
"solana-client",
"solana-entry",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-ledger",
"solana-logger",
"solana-measure",
"solana-metrics",
"solana-net-utils",
"solana-perf",
"solana-rayon-threadlimit",
"solana-runtime",
"solana-sdk",
"solana-streamer",
"solana-thin-client",
"solana-tpu-client",
"solana-version",
"solana-vote",
"solana-vote-program",
"static_assertions",
"thiserror",
]
[[package]]
name = "solana-ledger"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd3f0589a5fcb03bdb8baf4d646cda12eb94b04c7e4926c819c7845454788ff0"
dependencies = [
"assert_matches",
"bincode",
"bitflags 2.4.1",
"byteorder",
"chrono",
"chrono-humanize",
"crossbeam-channel",
"dashmap 4.0.2",
"fs_extra",
"futures 0.3.29",
"itertools",
"lazy_static",
"libc",
"log 0.4.20",
"lru",
"num_cpus",
"num_enum 0.6.1",
"prost",
"rand 0.8.5",
"rand_chacha 0.3.1",
"rayon",
"reed-solomon-erasure",
"rocksdb",
"rustc_version 0.4.0",
"scopeguard",
"serde",
"serde_bytes",
"sha2 0.10.8",
"solana-account-decoder",
"solana-accounts-db",
"solana-bpf-loader-program",
"solana-cost-model",
"solana-entry",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-measure",
"solana-metrics",
"solana-perf",
"solana-program-runtime",
"solana-rayon-threadlimit",
"solana-runtime",
"solana-sdk",
"solana-stake-program",
"solana-storage-bigtable",
"solana-storage-proto",
"solana-transaction-status",
"solana-vote",
"solana-vote-program",
"spl-token 4.0.0",
"spl-token-2022 0.9.0",
"static_assertions",
"strum",
"strum_macros",
"tempfile",
"thiserror",
"tokio",
"tokio-stream",
"trees",
]
[[package]]
name = "solana-loader-v4-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21a62b38cd73c136635f9e8e56185b56d006a508bab67d4a06764efd1f3b0ef7"
dependencies = [
"log 0.4.20",
"solana-measure",
"solana-program-runtime",
"solana-sdk",
"solana_rbpf",
]
[[package]]
name = "solana-logger"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccb457626944fd2f192285c8281e887081dc346920c181aaf165426dbf081859"
dependencies = [
"env_logger",
"lazy_static",
"log 0.4.20",
]
[[package]]
name = "solana-measure"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b2a8bb3ec59a415b1c30827001c38af358a0c244e00a3d5280ca0b0ed264036"
dependencies = [
"log 0.4.20",
"solana-sdk",
]
[[package]]
name = "solana-merkle-tree"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd90d0e6c0519ea7b7bc3e3efe120d1d42c95397aff3b15cb8255d728ed717cb"
dependencies = [
"fast-math",
"solana-program",
]
[[package]]
name = "solana-metrics"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c89e3237a73f781e0156fe419831c554f6807eb4f4bffea42535be9627d6fc1"
dependencies = [
"crossbeam-channel",
"gethostname",
"lazy_static",
"log 0.4.20",
"reqwest",
"solana-sdk",
"thiserror",
]
[[package]]
name = "solana-net-utils"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ec445e2d9dbfab7360bc0d846a676e318c13eb4d1e0359ef199187d07795d02"
dependencies = [
"bincode",
"clap 3.2.25",
"crossbeam-channel",
"log 0.4.20",
"nix",
"rand 0.8.5",
"serde",
"serde_derive",
"socket2 0.5.6",
"solana-logger",
"solana-sdk",
"solana-version",
"tokio",
"url 2.5.0",
]
[[package]]
name = "solana-perf"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7b58cc4a2f4f450361bc8c1a24a94383c659e6212a74e6080a410f7d87e05a6"
dependencies = [
"ahash 0.8.6",
"bincode",
"bv",
"caps",
"curve25519-dalek",
"dlopen2",
"fnv",
"lazy_static",
"libc",
"log 0.4.20",
"nix",
"rand 0.8.5",
"rayon",
"rustc_version 0.4.0",
"serde",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-metrics",
"solana-rayon-threadlimit",
"solana-sdk",
"solana-vote-program",
]
[[package]]
name = "solana-poh"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03bcd81c56b972fd4cea5546ab817f1187f071fc5db990186d4f3864d5457f8c"
dependencies = [
"core_affinity",
"crossbeam-channel",
"log 0.4.20",
"solana-entry",
"solana-ledger",
"solana-measure",
"solana-metrics",
"solana-runtime",
"solana-sdk",
"thiserror",
]
[[package]]
name = "solana-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c183d16916dd70ce2b59a4b39088f5094649a592e475fb9ebfc3cfe78b3a192c"
dependencies = [
"ark-bn254",
"ark-ec",
"ark-ff",
"ark-serialize",
"base64 0.21.5",
"bincode",
"bitflags 2.4.1",
"blake3",
"borsh 0.10.3",
"borsh 0.9.3",
"bs58 0.4.0",
"bv",
"bytemuck",
"cc",
"console_error_panic_hook",
"console_log",
"curve25519-dalek",
"getrandom 0.2.11",
"itertools",
"js-sys",
"lazy_static",
"libc",
"libsecp256k1",
"light-poseidon",
"log 0.4.20",
"memoffset 0.9.0",
"num-bigint 0.4.4",
"num-derive 0.3.3",
"num-traits",
"parking_lot 0.12.1",
"rand 0.8.5",
"rustc_version 0.4.0",
"rustversion",
"serde",
"serde_bytes",
"serde_derive",
"serde_json",
"sha2 0.10.8",
"sha3 0.10.8",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-sdk-macro",
"thiserror",
"tiny-bip39",
"wasm-bindgen",
"zeroize",
]
[[package]]
name = "solana-program-runtime"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fca7d79b03e54e108069f32cf553c863838b647be7f7135644f8a1d2bdcd3a1"
dependencies = [
"base64 0.21.5",
"bincode",
"eager",
"enum-iterator",
"itertools",
"libc",
"log 0.4.20",
"num-derive 0.3.3",
"num-traits",
"percentage",
"rand 0.8.5",
"rustc_version 0.4.0",
"serde",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-measure",
"solana-metrics",
"solana-sdk",
"solana_rbpf",
"thiserror",
]
[[package]]
name = "solana-program-test"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5c27258c216a68f7fe927da2392d23cf1d1a329fccd888f3287cbf922614772"
dependencies = [
"assert_matches",
"async-trait",
"base64 0.21.5",
"bincode",
"chrono-humanize",
"crossbeam-channel",
"log 0.4.20",
"serde",
"solana-accounts-db",
"solana-banks-client",
"solana-banks-interface",
"solana-banks-server",
"solana-bpf-loader-program",
"solana-logger",
"solana-program-runtime",
"solana-runtime",
"solana-sdk",
"solana-vote-program",
"solana_rbpf",
"test-case",
"thiserror",
"tokio",
]
[[package]]
name = "solana-pubsub-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d90c6e27f0d1e627728f137db688c45accb1b7ae839021b978d1dcceff40d7a3"
dependencies = [
"crossbeam-channel",
"futures-util",
"log 0.4.20",
"reqwest",
"semver 1.0.20",
"serde",
"serde_derive",
"serde_json",
"solana-account-decoder",
"solana-rpc-client-api",
"solana-sdk",
"thiserror",
"tokio",
"tokio-stream",
"tokio-tungstenite",
"tungstenite",
"url 2.5.0",
]
[[package]]
name = "solana-quic-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f340646d1bdd7b7c8e0c71f1f817a4eaeba35c06f025944c52df8f82bb565c79"
dependencies = [
"async-mutex",
"async-trait",
"futures 0.3.29",
"itertools",
"lazy_static",
"log 0.4.20",
"quinn",
"quinn-proto",
"rcgen",
"rustls",
"solana-connection-cache",
"solana-measure",
"solana-metrics",
"solana-net-utils",
"solana-rpc-client-api",
"solana-sdk",
"solana-streamer",
"thiserror",
"tokio",
]
[[package]]
name = "solana-rayon-threadlimit"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7effa9e68a7ab9883f7fb4a91c083970223e8e8e355979eb605279608fafa6b7"
dependencies = [
"lazy_static",
"num_cpus",
]
[[package]]
name = "solana-remote-wallet"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e59fee3edad929473b7178f84ae58dbb3feb004a26873c8ab557b3aecfaa6d87"
dependencies = [
"console",
"dialoguer",
"log 0.4.20",
"num-derive 0.3.3",
"num-traits",
"parking_lot 0.12.1",
"qstring",
"semver 1.0.20",
"solana-sdk",
"thiserror",
"uriparse",
]
[[package]]
name = "solana-rpc"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f117472b63df0cc86594a6b50a0cf85b06956aa88243bc836e007055b3c1e565"
dependencies = [
"base64 0.21.5",
"bincode",
"bs58 0.4.0",
"crossbeam-channel",
"dashmap 4.0.2",
"itertools",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
"jsonrpc-http-server",
"jsonrpc-pubsub",
"libc",
"log 0.4.20",
"rayon",
"regex",
"serde",
"serde_derive",
"serde_json",
"soketto",
"solana-account-decoder",
"solana-accounts-db",
"solana-client",
"solana-entry",
"solana-faucet",
"solana-gossip",
"solana-ledger",
"solana-measure",
"solana-metrics",
"solana-perf",
"solana-poh",
"solana-rayon-threadlimit",
"solana-rpc-client-api",
"solana-runtime",
"solana-sdk",
"solana-send-transaction-service",
"solana-stake-program",
"solana-storage-bigtable",
"solana-streamer",
"solana-tpu-client",
"solana-transaction-status",
"solana-version",
"solana-vote",
"solana-vote-program",
"spl-token 4.0.0",
"spl-token-2022 0.9.0",
"stream-cancel",
"thiserror",
"tokio",
"tokio-util 0.6.10",
]
[[package]]
name = "solana-rpc-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94ae66b579851b5142ace6133b95192b38f9a72fb4a81ce936f0af92977c062f"
dependencies = [
"async-trait",
"base64 0.21.5",
"bincode",
"bs58 0.4.0",
"indicatif",
"log 0.4.20",
"reqwest",
"semver 1.0.20",
"serde",
"serde_derive",
"serde_json",
"solana-account-decoder",
"solana-rpc-client-api",
"solana-sdk",
"solana-transaction-status",
"solana-version",
"solana-vote-program",
"tokio",
]
[[package]]
name = "solana-rpc-client-api"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0a62a61c8c5989f2b5e4b75bda30b4647ad4affbcfe4a2890b1adb05e2b54c8"
dependencies = [
"base64 0.21.5",
"bs58 0.4.0",
"jsonrpc-core",
"reqwest",
"semver 1.0.20",
"serde",
"serde_derive",
"serde_json",
"solana-account-decoder",
"solana-sdk",
"solana-transaction-status",
"solana-version",
"spl-token-2022 0.9.0",
"thiserror",
]
[[package]]
name = "solana-rpc-client-nonce-utils"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9db51df524aceb35e305b735086191db052dc163d09b6d5d9be65e216ab7413b"
dependencies = [
"clap 2.34.0",
"solana-clap-utils",
"solana-rpc-client",
"solana-sdk",
"thiserror",
]
[[package]]
name = "solana-runtime"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba17961673c7ca5ac090d4e413d6d8b59956f03c36e1a20597b1d13ea4513077"
dependencies = [
"arrayref",
"base64 0.21.5",
"bincode",
"blake3",
"bv",
"bytemuck",
"byteorder",
"bzip2",
"crossbeam-channel",
"dashmap 4.0.2",
"dir-diff",
"flate2",
"fnv",
"fs-err",
"im",
"index_list",
"itertools",
"lazy_static",
"log 0.4.20",
"lru",
"lz4",
"memmap2",
"modular-bitfield",
"num-derive 0.3.3",
"num-traits",
"num_cpus",
"num_enum 0.6.1",
"ouroboros",
"percentage",
"qualifier_attr",
"rand 0.8.5",
"rayon",
"regex",
"rustc_version 0.4.0",
"serde",
"serde_derive",
"serde_json",
"siphasher",
"solana-accounts-db",
"solana-address-lookup-table-program",
"solana-bpf-loader-program",
"solana-bucket-map",
"solana-compute-budget-program",
"solana-config-program",
"solana-cost-model",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-loader-v4-program",
"solana-measure",
"solana-metrics",
"solana-perf",
"solana-program-runtime",
"solana-rayon-threadlimit",
"solana-sdk",
"solana-stake-program",
"solana-system-program",
"solana-version",
"solana-vote",
"solana-vote-program",
"solana-zk-token-proof-program",
"solana-zk-token-sdk",
"static_assertions",
"strum",
"strum_macros",
"symlink",
"tar",
"tempfile",
"thiserror",
"zstd",
]
[[package]]
name = "solana-sdk"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "284587e20a7256621b6061589a6d7f9fc1c1bcb9f25d183555034f7817ec49a6"
dependencies = [
"assert_matches",
"base64 0.21.5",
"bincode",
"bitflags 2.4.1",
"borsh 0.10.3",
"bs58 0.4.0",
"bytemuck",
"byteorder",
"chrono",
"derivation-path",
"digest 0.10.7",
"ed25519-dalek",
"ed25519-dalek-bip32",
"generic-array",
"hmac 0.12.1",
"itertools",
"js-sys",
"lazy_static",
"libsecp256k1",
"log 0.4.20",
"memmap2",
"num-derive 0.3.3",
"num-traits",
"num_enum 0.6.1",
"pbkdf2 0.11.0",
"qstring",
"qualifier_attr",
"rand 0.7.3",
"rand 0.8.5",
"rustc_version 0.4.0",
"rustversion",
"serde",
"serde_bytes",
"serde_derive",
"serde_json",
"serde_with",
"sha2 0.10.8",
"sha3 0.10.8",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-logger",
"solana-program",
"solana-sdk-macro",
"thiserror",
"uriparse",
"wasm-bindgen",
]
[[package]]
name = "solana-sdk-macro"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fee7090babd8fe6cedd2e377366979464d29fa958bf5fc6554f6c7577b73fd4"
dependencies = [
"bs58 0.4.0",
"proc-macro2 1.0.79",
"quote 1.0.36",
"rustversion",
"syn 2.0.58",
]
[[package]]
name = "solana-security-txt"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183"
[[package]]
name = "solana-send-transaction-service"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9d89f6816738de42436b6cb08798b8023a5106effc4f0c37ddca9ee8b10fe32"
dependencies = [
"crossbeam-channel",
"log 0.4.20",
"solana-client",
"solana-measure",
"solana-metrics",
"solana-runtime",
"solana-sdk",
"solana-tpu-client",
]
[[package]]
name = "solana-stake-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e46cec174bb995bb71ea3c875d17662d4c34f6e6ab853a08e9c3ddc06f0927c"
dependencies = [
"bincode",
"log 0.4.20",
"rustc_version 0.4.0",
"solana-config-program",
"solana-program-runtime",
"solana-sdk",
"solana-vote-program",
]
[[package]]
name = "solana-storage-bigtable"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "404c06ae453b4543376bc2a77a70d66b880d1318ee142d13dcd546e902e7acf1"
dependencies = [
"backoff",
"bincode",
"bytes 1.5.0",
"bzip2",
"enum-iterator",
"flate2",
"futures 0.3.29",
"goauth",
"http",
"hyper 0.14.27",
"hyper-proxy",
"log 0.4.20",
"openssl",
"prost",
"prost-types",
"serde",
"serde_derive",
"smpl_jwt",
"solana-metrics",
"solana-sdk",
"solana-storage-proto",
"solana-transaction-status",
"thiserror",
"tokio",
"tonic",
"zstd",
]
[[package]]
name = "solana-storage-proto"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26e26b94a4b4cea9286c1917bc9c64af9df960f0c5fd3233ce97df31b995bc25"
dependencies = [
"bincode",
"bs58 0.4.0",
"prost",
"protobuf-src",
"serde",
"solana-account-decoder",
"solana-sdk",
"solana-transaction-status",
"tonic-build",
]
[[package]]
name = "solana-streamer"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4219f40db983a290ea75212b9e47013a47715eb224ca18e05bd094d86baefc37"
dependencies = [
"async-channel",
"bytes 1.5.0",
"crossbeam-channel",
"futures-util",
"histogram",
"indexmap 2.1.0",
"itertools",
"libc",
"log 0.4.20",
"nix",
"pem",
"percentage",
"pkcs8",
"quinn",
"quinn-proto",
"rand 0.8.5",
"rcgen",
"rustls",
"solana-metrics",
"solana-perf",
"solana-sdk",
"thiserror",
"tokio",
"x509-parser",
]
[[package]]
name = "solana-system-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b9d710ecc45f8bb0219e46237df572efdf63fa2a1016d0a62e3b4a74f471863"
dependencies = [
"bincode",
"log 0.4.20",
"serde",
"serde_derive",
"solana-program-runtime",
"solana-sdk",
]
[[package]]
name = "solana-thin-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f8d9eb19550425cbb6a96fdea18171a2e44529414fe09f8cf7a238a78fd9a37"
dependencies = [
"bincode",
"log 0.4.20",
"rayon",
"solana-connection-cache",
"solana-rpc-client",
"solana-rpc-client-api",
"solana-sdk",
]
[[package]]
name = "solana-tpu-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "795d4d7e76f87640d7a3d1ab6ebc2376d9b9d76a7c2664653628dc6f4bc64ecc"
dependencies = [
"async-trait",
"bincode",
"futures-util",
"indexmap 2.1.0",
"indicatif",
"log 0.4.20",
"rayon",
"solana-connection-cache",
"solana-measure",
"solana-metrics",
"solana-pubsub-client",
"solana-rpc-client",
"solana-rpc-client-api",
"solana-sdk",
"thiserror",
"tokio",
]
[[package]]
name = "solana-transaction-status"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "176b554ca42e29abd21d56f31c01599f9b334e65b22911bcdb691b9b02706636"
dependencies = [
"Inflector",
"base64 0.21.5",
"bincode",
"borsh 0.10.3",
"bs58 0.4.0",
"lazy_static",
"log 0.4.20",
"serde",
"serde_derive",
"serde_json",
"solana-account-decoder",
"solana-sdk",
"spl-associated-token-account 2.2.0",
"spl-memo 4.0.0",
"spl-token 4.0.0",
"spl-token-2022 0.9.0",
"thiserror",
]
[[package]]
name = "solana-udp-client"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a60895d452a9e2de1115d4ebaef537fb608b9a6e206cb7b24c82881a35348e3"
dependencies = [
"async-trait",
"solana-connection-cache",
"solana-net-utils",
"solana-sdk",
"solana-streamer",
"thiserror",
"tokio",
]
[[package]]
name = "solana-version"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "572a7a0f49ee43473c2f235432f98b2594c3a4e8cc9a1befd7a085be8192f5bd"
dependencies = [
"log 0.4.20",
"rustc_version 0.4.0",
"semver 1.0.20",
"serde",
"serde_derive",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-sdk",
]
[[package]]
name = "solana-vote"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d11054cc7d40221e3b80aded18b4436c57d0ae8a586aff88e32e22099e99298"
dependencies = [
"crossbeam-channel",
"itertools",
"log 0.4.20",
"rustc_version 0.4.0",
"serde",
"serde_derive",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-sdk",
"solana-vote-program",
"thiserror",
]
[[package]]
name = "solana-vote-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89cffa52ab296ccc95ced7ae7875534cb4fd1cbb0bd9b8ad20e7ec55f15bcd5d"
dependencies = [
"bincode",
"log 0.4.20",
"num-derive 0.3.3",
"num-traits",
"rustc_version 0.4.0",
"serde",
"serde_derive",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-metrics",
"solana-program",
"solana-program-runtime",
"solana-sdk",
"thiserror",
]
[[package]]
name = "solana-zk-token-proof-program"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83089a1e9b5ceef00ac0d399922604b12e925667fc6c3f0024398bb805a4ae27"
dependencies = [
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"solana-program-runtime",
"solana-sdk",
"solana-zk-token-sdk",
]
[[package]]
name = "solana-zk-token-sdk"
version = "1.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3e8e2f6c0d78bc9eb07efc1fcd034dd0fcc508af8809343ac861096aab84876"
dependencies = [
"aes-gcm-siv",
"base64 0.21.5",
"bincode",
"bytemuck",
"byteorder",
"curve25519-dalek",
"getrandom 0.1.16",
"itertools",
"lazy_static",
"merlin",
"num-derive 0.3.3",
"num-traits",
"rand 0.7.3",
"serde",
"serde_json",
"sha3 0.9.1",
"solana-program",
"solana-sdk",
"subtle",
"thiserror",
"zeroize",
]
[[package]]
name = "solana_rbpf"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d457cc2ba742c120492a64b7fa60e22c575e891f6b55039f4d736568fb112a3"
dependencies = [
"byteorder",
"combine",
"goblin",
"hash32",
"libc",
"log 0.4.20",
"rand 0.8.5",
"rustc-demangle",
"scroll",
"thiserror",
"winapi 0.3.9",
]
[[package]]
name = "spin"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
name = "spin"
version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
[[package]]
name = "spki"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44d01ac02a6ccf3e07db148d2be087da624fea0221a16152ed01f0496a6b0a27"
dependencies = [
"base64ct",
"der",
]
[[package]]
name = "spl-associated-token-account"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "978dba3bcbe88d0c2c58366c254d9ea41c5f73357e72fc0bdee4d6b5fc99c8f4"
dependencies = [
"assert_matches",
"borsh 0.9.3",
"num-derive 0.3.3",
"num-traits",
"solana-program",
"spl-token 3.5.0",
"spl-token-2022 0.6.1",
"thiserror",
]
[[package]]
name = "spl-associated-token-account"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "385e31c29981488f2820b2022d8e731aae3b02e6e18e2fd854e4c9a94dc44fc3"
dependencies = [
"assert_matches",
"borsh 0.10.3",
"num-derive 0.4.1",
"num-traits",
"solana-program",
"spl-token 4.0.0",
"spl-token-2022 0.9.0",
"thiserror",
]
[[package]]
name = "spl-discriminator"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cce5d563b58ef1bb2cdbbfe0dfb9ffdc24903b10ae6a4df2d8f425ece375033f"
dependencies = [
"bytemuck",
"solana-program",
"spl-discriminator-derive",
]
[[package]]
name = "spl-discriminator-derive"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fadbefec4f3c678215ca72bd71862697bb06b41fd77c0088902dd3203354387b"
dependencies = [
"quote 1.0.36",
"spl-discriminator-syn",
"syn 2.0.58",
]
[[package]]
name = "spl-discriminator-syn"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e5f2044ca42c8938d54d1255ce599c79a1ffd86b677dfab695caa20f9ffc3f2"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"sha2 0.10.8",
"syn 2.0.58",
"thiserror",
]
[[package]]
name = "spl-memo"
version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd0dc6f70db6bacea7ff25870b016a65ba1d1b6013536f08e4fd79a8f9005325"
dependencies = [
"solana-program",
]
[[package]]
name = "spl-memo"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0f180b03318c3dbab3ef4e1e4d46d5211ae3c780940dd0a28695aba4b59a75a"
dependencies = [
"solana-program",
]
[[package]]
name = "spl-pod"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2881dddfca792737c0706fa0175345ab282b1b0879c7d877bad129645737c079"
dependencies = [
"borsh 0.10.3",
"bytemuck",
"solana-program",
"solana-zk-token-sdk",
"spl-program-error",
]
[[package]]
name = "spl-program-error"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "249e0318493b6bcf27ae9902600566c689b7dfba9f1bdff5893e92253374e78c"
dependencies = [
"num-derive 0.4.1",
"num-traits",
"solana-program",
"spl-program-error-derive",
"thiserror",
]
[[package]]
name = "spl-program-error-derive"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab5269c8e868da17b6552ef35a51355a017bd8e0eae269c201fef830d35fa52c"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"sha2 0.10.8",
"syn 2.0.58",
]
[[package]]
name = "spl-tlv-account-resolution"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "062e148d3eab7b165582757453632ffeef490c02c86a48bfdb4988f63eefb3b9"
dependencies = [
"bytemuck",
"solana-program",
"spl-discriminator",
"spl-pod",
"spl-program-error",
"spl-type-length-value",
]
[[package]]
name = "spl-token"
version = "3.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e85e168a785e82564160dcb87b2a8e04cee9bfd1f4d488c729d53d6a4bd300d"
dependencies = [
"arrayref",
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"num_enum 0.5.11",
"solana-program",
"thiserror",
]
[[package]]
name = "spl-token"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08459ba1b8f7c1020b4582c4edf0f5c7511a5e099a7a97570c9698d4f2337060"
dependencies = [
"arrayref",
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"num_enum 0.6.1",
"solana-program",
"thiserror",
]
[[package]]
name = "spl-token-2022"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0043b590232c400bad5ee9eb983ced003d15163c4c5d56b090ac6d9a57457b47"
dependencies = [
"arrayref",
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"num_enum 0.5.11",
"solana-program",
"solana-zk-token-sdk",
"spl-memo 3.0.1",
"spl-token 3.5.0",
"thiserror",
]
[[package]]
name = "spl-token-2022"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4abf34a65ba420584a0c35f3903f8d727d1f13ababbdc3f714c6b065a686e86"
dependencies = [
"arrayref",
"bytemuck",
"num-derive 0.4.1",
"num-traits",
"num_enum 0.7.1",
"solana-program",
"solana-zk-token-sdk",
"spl-memo 4.0.0",
"spl-pod",
"spl-token 4.0.0",
"spl-token-metadata-interface",
"spl-transfer-hook-interface",
"spl-type-length-value",
"thiserror",
]
[[package]]
name = "spl-token-metadata-interface"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c16ce3ba6979645fb7627aa1e435576172dd63088dc7848cb09aa331fa1fe4f"
dependencies = [
"borsh 0.10.3",
"solana-program",
"spl-discriminator",
"spl-pod",
"spl-program-error",
"spl-type-length-value",
]
[[package]]
name = "spl-transfer-hook-interface"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "051d31803f873cabe71aec3c1b849f35248beae5d19a347d93a5c9cccc5d5a9b"
dependencies = [
"arrayref",
"bytemuck",
"solana-program",
"spl-discriminator",
"spl-pod",
"spl-program-error",
"spl-tlv-account-resolution",
"spl-type-length-value",
]
[[package]]
name = "spl-type-length-value"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a468e6f6371f9c69aae760186ea9f1a01c2908351b06a5e0026d21cfc4d7ecac"
dependencies = [
"bytemuck",
"solana-program",
"spl-discriminator",
"spl-pod",
"spl-program-error",
]
[[package]]
name = "static_assertions"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "stream-cancel"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b0a9eb2715209fb8cc0d942fcdff45674bfc9f0090a0d897e85a22955ad159b"
dependencies = [
"futures-core",
"pin-project",
"tokio",
]
[[package]]
name = "strsim"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
[[package]]
name = "strsim"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "strum"
version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f"
dependencies = [
"strum_macros",
]
[[package]]
name = "strum_macros"
version = "0.24.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59"
dependencies = [
"heck 0.4.1",
"proc-macro2 1.0.79",
"quote 1.0.36",
"rustversion",
"syn 1.0.109",
]
[[package]]
name = "subtle"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601"
[[package]]
name = "superslice"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab16ced94dbd8a46c82fd81e3ed9a8727dac2977ea869d217bcc4ea1f122e81f"
[[package]]
name = "sval"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53eb957fbc79a55306d5d25d87daf3627bc3800681491cda0709eef36c748bfe"
[[package]]
name = "sval_buffer"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96e860aef60e9cbf37888d4953a13445abf523c534640d1f6174d310917c410d"
dependencies = [
"sval",
"sval_ref",
]
[[package]]
name = "sval_dynamic"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea3f2b07929a1127d204ed7cb3905049381708245727680e9139dac317ed556f"
dependencies = [
"sval",
]
[[package]]
name = "sval_fmt"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4e188677497de274a1367c4bda15bd2296de4070d91729aac8f0a09c1abf64d"
dependencies = [
"itoa",
"ryu",
"sval",
]
[[package]]
name = "sval_json"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32f456c07dae652744781f2245d5e3b78e6a9ebad70790ac11eb15dbdbce5282"
dependencies = [
"itoa",
"ryu",
"sval",
]
[[package]]
name = "sval_nested"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "886feb24709f0476baaebbf9ac10671a50163caa7e439d7a7beb7f6d81d0a6fb"
dependencies = [
"sval",
"sval_buffer",
"sval_ref",
]
[[package]]
name = "sval_ref"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be2e7fc517d778f44f8cb64140afa36010999565528d48985f55e64d45f369ce"
dependencies = [
"sval",
]
[[package]]
name = "sval_serde"
version = "2.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79bf66549a997ff35cd2114a27ac4b0c2843280f2cfa84b240d169ecaa0add46"
dependencies = [
"serde",
"sval",
"sval_nested",
]
[[package]]
name = "switchboard-common"
version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c96fe58be35530580b729fa5d846661c89a007982527f4ff0ca6010168564159"
dependencies = [
"async-trait",
"base64 0.21.5",
"envy",
"futures 0.3.29",
"getrandom 0.2.11",
"hex",
"log 0.4.20",
"serde",
"serde_json",
"sgx-quote",
"sha2 0.10.8",
"sha3 0.10.8",
]
[[package]]
name = "switchboard-program"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "534d4b2d45907427fc8d2cd151465cfaee3709c4742491734bc34e5a458ebd09"
dependencies = [
"bincode",
"borsh 0.9.3",
"bytemuck",
"byteorder",
"quick-protobuf",
"solana-program",
"switchboard-protos",
"switchboard-utils",
]
[[package]]
name = "switchboard-protos"
version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e2d89875ff72d12ea7918d6ccd82d1ac5eab54b3a9d1bd7356fa6905801aa72"
dependencies = [
"bincode",
"borsh 0.9.3",
"byteorder",
"quick-protobuf",
]
[[package]]
name = "switchboard-solana"
version = "0.29.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35443cb745b071876be79b719a9314e4f354e259807539224ffc6bf1e0854f3d"
dependencies = [
"anchor-client",
"anchor-lang",
"anchor-spl",
"arc-swap",
"base64 0.21.5",
"bincode",
"bytemuck",
"chrono",
"cron",
"dashmap 5.5.3",
"futures 0.3.29",
"hex",
"kv-log-macro",
"log 0.4.20",
"rust_decimal",
"serde",
"serde_json",
"sgx-quote",
"sha2 0.10.8",
"solana-account-decoder",
"solana-address-lookup-table-program",
"solana-client",
"solana-program",
"superslice",
"switchboard-common",
"tokio",
"tokio-util 0.7.10",
"url 2.5.0",
]
[[package]]
name = "switchboard-utils"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ac1d68193aa1669e34d16087db0f96e6597d2f78868378aabc1387b8b29172e"
dependencies = [
"bincode",
"borsh 0.9.3",
"bytemuck",
"byteorder",
"quick-protobuf",
"rust_decimal",
"rust_decimal_macros",
"solana-program",
"switchboard-protos",
]
[[package]]
name = "symlink"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7973cce6668464ea31f176d85b13c7ab3bba2cb3b77a2ed26abd7801688010a"
[[package]]
name = "syn"
version = "0.15.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5"
dependencies = [
"proc-macro2 0.4.30",
"quote 0.6.13",
"unicode-xid 0.1.0",
]
[[package]]
name = "syn"
version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"unicode-ident",
]
[[package]]
name = "syn"
version = "2.0.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"unicode-ident",
]
[[package]]
name = "sync_wrapper"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
[[package]]
name = "synstructure"
version = "0.12.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
"unicode-xid 0.2.4",
]
[[package]]
name = "system-configuration"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7"
dependencies = [
"bitflags 1.3.2",
"core-foundation",
"system-configuration-sys",
]
[[package]]
name = "system-configuration-sys"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "tar"
version = "0.4.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b16afcea1f22891c49a00c751c7b63b2233284064f11a200fc624137c51e2ddb"
dependencies = [
"filetime",
"libc",
"xattr",
]
[[package]]
name = "tarpc"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c38a012bed6fb9681d3bf71ffaa4f88f3b4b9ed3198cda6e4c8462d24d4bb80"
dependencies = [
"anyhow",
"fnv",
"futures 0.3.29",
"humantime",
"opentelemetry",
"pin-project",
"rand 0.8.5",
"serde",
"static_assertions",
"tarpc-plugins",
"thiserror",
"tokio",
"tokio-serde",
"tokio-util 0.6.10",
"tracing",
"tracing-opentelemetry",
]
[[package]]
name = "tarpc-plugins"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee42b4e559f17bce0385ebf511a7beb67d5cc33c12c96b7f4e9789919d9c10f"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "tempfile"
version = "3.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5"
dependencies = [
"cfg-if 1.0.0",
"fastrand",
"redox_syscall 0.4.1",
"rustix",
"windows-sys 0.48.0",
]
[[package]]
name = "termcolor"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449"
dependencies = [
"winapi-util",
]
[[package]]
name = "test-case"
version = "3.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb2550dd13afcd286853192af8601920d959b14c401fcece38071d53bf0768a8"
dependencies = [
"test-case-macros",
]
[[package]]
name = "test-case-core"
version = "3.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adcb7fd841cd518e279be3d5a3eb0636409487998a4aff22f3de87b81e88384f"
dependencies = [
"cfg-if 1.0.0",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "test-case-macros"
version = "3.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c89e72a01ed4c579669add59014b9a524d609c0c88c6a585ce37485879f6ffb"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
"test-case-core",
]
[[package]]
name = "textwrap"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
dependencies = [
"unicode-width",
]
[[package]]
name = "textwrap"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d"
[[package]]
name = "thiserror"
version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "thread_local"
version = "1.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152"
dependencies = [
"cfg-if 1.0.0",
"once_cell",
]
[[package]]
name = "time"
version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a"
dependencies = [
"libc",
"wasi 0.10.0+wasi-snapshot-preview1",
"winapi 0.3.9",
]
[[package]]
name = "time"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5"
dependencies = [
"deranged",
"itoa",
"powerfmt",
"serde",
"time-core",
"time-macros",
]
[[package]]
name = "time-core"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
[[package]]
name = "time-macros"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20"
dependencies = [
"time-core",
]
[[package]]
name = "tiny-bip39"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d"
dependencies = [
"anyhow",
"hmac 0.8.1",
"once_cell",
"pbkdf2 0.4.0",
"rand 0.7.3",
"rustc-hash",
"sha2 0.9.9",
"thiserror",
"unicode-normalization",
"wasm-bindgen",
"zeroize",
]
[[package]]
name = "tinyvec"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787"
dependencies = [
"backtrace",
"bytes 1.5.0",
"libc",
"mio 0.8.11",
"num_cpus",
"parking_lot 0.12.1",
"pin-project-lite",
"signal-hook-registry",
"socket2 0.5.6",
"tokio-macros",
"tracing",
"windows-sys 0.48.0",
]
[[package]]
name = "tokio-codec"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b"
dependencies = [
"bytes 0.4.12",
"futures 0.1.31",
"tokio-io",
]
[[package]]
name = "tokio-executor"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
dependencies = [
"crossbeam-utils 0.7.2",
"futures 0.1.31",
]
[[package]]
name = "tokio-io"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674"
dependencies = [
"bytes 0.4.12",
"futures 0.1.31",
"log 0.4.20",
]
[[package]]
name = "tokio-io-timeout"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf"
dependencies = [
"pin-project-lite",
"tokio",
]
[[package]]
name = "tokio-macros"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "tokio-native-tls"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
dependencies = [
"native-tls",
"tokio",
]
[[package]]
name = "tokio-reactor"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
dependencies = [
"crossbeam-utils 0.7.2",
"futures 0.1.31",
"lazy_static",
"log 0.4.20",
"mio 0.6.23",
"num_cpus",
"parking_lot 0.9.0",
"slab",
"tokio-executor",
"tokio-io",
"tokio-sync",
]
[[package]]
name = "tokio-rustls"
version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081"
dependencies = [
"rustls",
"tokio",
]
[[package]]
name = "tokio-serde"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "911a61637386b789af998ee23f50aa30d5fd7edcec8d6d3dedae5e5815205466"
dependencies = [
"bincode",
"bytes 1.5.0",
"educe",
"futures-core",
"futures-sink",
"pin-project",
"serde",
"serde_json",
]
[[package]]
name = "tokio-stream"
version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af"
dependencies = [
"futures-core",
"pin-project-lite",
"tokio",
]
[[package]]
name = "tokio-sync"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee"
dependencies = [
"fnv",
"futures 0.1.31",
]
[[package]]
name = "tokio-tcp"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72"
dependencies = [
"bytes 0.4.12",
"futures 0.1.31",
"iovec",
"mio 0.6.23",
"tokio-io",
"tokio-reactor",
]
[[package]]
name = "tokio-tls"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "354b8cd83825b3c20217a9dc174d6a0c67441a2fae5c41bcb1ea6679f6ae0f7c"
dependencies = [
"futures 0.1.31",
"native-tls",
"tokio-io",
]
[[package]]
name = "tokio-tungstenite"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c"
dependencies = [
"futures-util",
"log 0.4.20",
"rustls",
"tokio",
"tokio-rustls",
"tungstenite",
"webpki-roots 0.25.4",
]
[[package]]
name = "tokio-util"
version = "0.6.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36943ee01a6d67977dd3f84a5a1d2efeb4ada3a1ae771cadfaa535d9d9fc6507"
dependencies = [
"bytes 1.5.0",
"futures-core",
"futures-io",
"futures-sink",
"log 0.4.20",
"pin-project-lite",
"slab",
"tokio",
]
[[package]]
name = "tokio-util"
version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15"
dependencies = [
"bytes 1.5.0",
"futures-core",
"futures-sink",
"pin-project-lite",
"slab",
"tokio",
"tracing",
]
[[package]]
name = "toml"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
dependencies = [
"serde",
]
[[package]]
name = "toml_datetime"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
[[package]]
name = "toml_edit"
version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap 2.1.0",
"toml_datetime",
"winnow",
]
[[package]]
name = "toml_edit"
version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81"
dependencies = [
"indexmap 2.1.0",
"toml_datetime",
"winnow",
]
[[package]]
name = "tonic"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3082666a3a6433f7f511c7192923fa1fe07c69332d3c6a2e6bb040b569199d5a"
dependencies = [
"async-stream",
"async-trait",
"axum",
"base64 0.21.5",
"bytes 1.5.0",
"futures-core",
"futures-util",
"h2",
"http",
"http-body",
"hyper 0.14.27",
"hyper-timeout",
"percent-encoding 2.3.1",
"pin-project",
"prost",
"rustls-pemfile",
"tokio",
"tokio-rustls",
"tokio-stream",
"tower",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "tonic-build"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6fdaae4c2c638bb70fe42803a26fbd6fc6ac8c72f5c59f67ecc2a2dcabf4b07"
dependencies = [
"prettyplease 0.1.25",
"proc-macro2 1.0.79",
"prost-build",
"quote 1.0.36",
"syn 1.0.109",
]
[[package]]
name = "tower"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
dependencies = [
"futures-core",
"futures-util",
"indexmap 1.9.3",
"pin-project",
"pin-project-lite",
"rand 0.8.5",
"slab",
"tokio",
"tokio-util 0.7.10",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "tower-layer"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0"
[[package]]
name = "tower-service"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
[[package]]
name = "tracing"
version = "0.1.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
dependencies = [
"log 0.4.20",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
]
[[package]]
name = "tracing-attributes"
version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "tracing-core"
version = "0.1.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
dependencies = [
"once_cell",
"valuable",
]
[[package]]
name = "tracing-opentelemetry"
version = "0.17.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbbe89715c1dbbb790059e2565353978564924ee85017b5fff365c872ff6721f"
dependencies = [
"once_cell",
"opentelemetry",
"tracing",
"tracing-core",
"tracing-subscriber",
]
[[package]]
name = "tracing-subscriber"
version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"
dependencies = [
"sharded-slab",
"thread_local",
"tracing-core",
]
[[package]]
name = "traitobject"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079"
[[package]]
name = "trees"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0de5f738ceab88e2491a94ddc33c3feeadfa95fedc60363ef110845df12f3878"
[[package]]
name = "try-lock"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed"
[[package]]
name = "tungstenite"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9"
dependencies = [
"byteorder",
"bytes 1.5.0",
"data-encoding",
"http",
"httparse",
"log 0.4.20",
"rand 0.8.5",
"rustls",
"sha1 0.10.6",
"thiserror",
"url 2.5.0",
"utf-8",
"webpki-roots 0.24.0",
]
[[package]]
name = "typeable"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887"
[[package]]
name = "typenum"
version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
[[package]]
name = "unicase"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33"
dependencies = [
"version_check 0.1.5",
]
[[package]]
name = "unicase"
version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89"
dependencies = [
"version_check 0.9.4",
]
[[package]]
name = "unicode-bidi"
version = "0.3.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
[[package]]
name = "unicode-ident"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
name = "unicode-normalization"
version = "0.1.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
dependencies = [
"tinyvec",
]
[[package]]
name = "unicode-segmentation"
version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"
[[package]]
name = "unicode-width"
version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
[[package]]
name = "unicode-xid"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
[[package]]
name = "unicode-xid"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c"
[[package]]
name = "universal-hash"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05"
dependencies = [
"generic-array",
"subtle",
]
[[package]]
name = "unreachable"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56"
dependencies = [
"void",
]
[[package]]
name = "unsafe-libyaml"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f28467d3e1d3c6586d8f25fa243f544f5800fec42d97032474e17222c2b75cfa"
[[package]]
name = "untrusted"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
[[package]]
name = "untrusted"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "uriparse"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff"
dependencies = [
"fnv",
"lazy_static",
]
[[package]]
name = "url"
version = "1.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
dependencies = [
"idna 0.1.5",
"matches",
"percent-encoding 1.0.1",
]
[[package]]
name = "url"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633"
dependencies = [
"form_urlencoded",
"idna 0.5.0",
"percent-encoding 2.3.1",
]
[[package]]
name = "utf-8"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
[[package]]
name = "valuable"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
[[package]]
name = "value-bag"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74797339c3b98616c009c7c3eb53a0ce41e85c8ec66bd3db96ed132d20cfdee8"
dependencies = [
"value-bag-serde1",
"value-bag-sval2",
]
[[package]]
name = "value-bag-serde1"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc35703541cbccb5278ef7b589d79439fc808ff0b5867195a3230f9a47421d39"
dependencies = [
"erased-serde",
"serde",
"serde_fmt",
]
[[package]]
name = "value-bag-sval2"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "285b43c29d0b4c0e65aad24561baee67a1b69dc9be9375d4a85138cbf556f7f8"
dependencies = [
"sval",
"sval_buffer",
"sval_dynamic",
"sval_fmt",
"sval_json",
"sval_ref",
"sval_serde",
]
[[package]]
name = "vcpkg"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vec_map"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
[[package]]
name = "version_check"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
[[package]]
name = "version_check"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "void"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
[[package]]
name = "walkdir"
version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee"
dependencies = [
"same-file",
"winapi-util",
]
[[package]]
name = "want"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
dependencies = [
"try-lock",
]
[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
[[package]]
name = "wasi"
version = "0.10.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce"
dependencies = [
"cfg-if 1.0.0",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217"
dependencies = [
"bumpalo",
"log 0.4.20",
"once_cell",
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-futures"
version = "0.4.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9afec9963e3d0994cac82455b2b3502b81a7f40f9a0d32181f7528d9f4b43e02"
dependencies = [
"cfg-if 1.0.0",
"js-sys",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2"
dependencies = [
"quote 1.0.36",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b"
[[package]]
name = "web-sys"
version = "0.3.65"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "webpki-roots"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888"
dependencies = [
"rustls-webpki",
]
[[package]]
name = "webpki-roots"
version = "0.25.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1"
[[package]]
name = "websocket"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "413b37840b9e27b340ce91b319ede10731de8c72f5bc4cb0206ec1ca4ce581d0"
dependencies = [
"bytes 0.4.12",
"futures 0.1.31",
"hyper 0.10.16",
"native-tls",
"rand 0.6.5",
"tokio-codec",
"tokio-io",
"tokio-reactor",
"tokio-tcp",
"tokio-tls",
"unicase 1.4.2",
"url 1.7.2",
"websocket-base",
]
[[package]]
name = "websocket-base"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e3810f0d00c4dccb54c30a4eee815e703232819dec7b007db115791c42aa374"
dependencies = [
"base64 0.10.1",
"bitflags 1.3.2",
"byteorder",
"bytes 0.4.12",
"futures 0.1.31",
"native-tls",
"rand 0.6.5",
"sha1 0.6.1",
"tokio-codec",
"tokio-io",
"tokio-tcp",
"tokio-tls",
]
[[package]]
name = "which"
version = "4.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
dependencies = [
"either",
"home",
"once_cell",
"rustix",
]
[[package]]
name = "winapi"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
[[package]]
name = "winapi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-build"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596"
dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows-core"
version = "0.51.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64"
dependencies = [
"windows-targets 0.48.5",
]
[[package]]
name = "windows-sys"
version = "0.45.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
dependencies = [
"windows-targets 0.42.2",
]
[[package]]
name = "windows-sys"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
dependencies = [
"windows-targets 0.48.5",
]
[[package]]
name = "windows-sys"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
dependencies = [
"windows-targets 0.52.4",
]
[[package]]
name = "windows-targets"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
dependencies = [
"windows_aarch64_gnullvm 0.42.2",
"windows_aarch64_msvc 0.42.2",
"windows_i686_gnu 0.42.2",
"windows_i686_msvc 0.42.2",
"windows_x86_64_gnu 0.42.2",
"windows_x86_64_gnullvm 0.42.2",
"windows_x86_64_msvc 0.42.2",
]
[[package]]
name = "windows-targets"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
dependencies = [
"windows_aarch64_gnullvm 0.48.5",
"windows_aarch64_msvc 0.48.5",
"windows_i686_gnu 0.48.5",
"windows_i686_msvc 0.48.5",
"windows_x86_64_gnu 0.48.5",
"windows_x86_64_gnullvm 0.48.5",
"windows_x86_64_msvc 0.48.5",
]
[[package]]
name = "windows-targets"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b"
dependencies = [
"windows_aarch64_gnullvm 0.52.4",
"windows_aarch64_msvc 0.52.4",
"windows_i686_gnu 0.52.4",
"windows_i686_msvc 0.52.4",
"windows_x86_64_gnu 0.52.4",
"windows_x86_64_gnullvm 0.52.4",
"windows_x86_64_msvc 0.52.4",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9"
[[package]]
name = "windows_aarch64_msvc"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
[[package]]
name = "windows_aarch64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675"
[[package]]
name = "windows_i686_gnu"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
[[package]]
name = "windows_i686_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
[[package]]
name = "windows_i686_gnu"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3"
[[package]]
name = "windows_i686_msvc"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
[[package]]
name = "windows_i686_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
[[package]]
name = "windows_i686_msvc"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02"
[[package]]
name = "windows_x86_64_gnu"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
[[package]]
name = "windows_x86_64_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177"
[[package]]
name = "windows_x86_64_msvc"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
[[package]]
name = "windows_x86_64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
[[package]]
name = "winnow"
version = "0.5.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b"
dependencies = [
"memchr",
]
[[package]]
name = "winreg"
version = "0.50.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1"
dependencies = [
"cfg-if 1.0.0",
"windows-sys 0.48.0",
]
[[package]]
name = "ws2_32-sys"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
dependencies = [
"winapi 0.2.8",
"winapi-build",
]
[[package]]
name = "x509-parser"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8"
dependencies = [
"asn1-rs",
"base64 0.13.1",
"data-encoding",
"der-parser",
"lazy_static",
"nom 7.1.3",
"oid-registry",
"rusticata-macros",
"thiserror",
"time 0.3.30",
]
[[package]]
name = "xattr"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4686009f71ff3e5c4dbcf1a282d0a44db3f021ba69350cd42086b3e5f1c6985"
dependencies = [
"libc",
]
[[package]]
name = "yasna"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd"
dependencies = [
"time 0.3.30",
]
[[package]]
name = "zerocopy"
version = "0.7.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e97e415490559a91254a2979b4829267a57d2fcd741a98eee8b722fb57289aa0"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd7e48ccf166952882ca8bd778a43502c64f33bf94c12ebe2a7f08e5a0f6689f"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "zeroize"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd"
dependencies = [
"zeroize_derive",
]
[[package]]
name = "zeroize_derive"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.36",
"syn 2.0.58",
]
[[package]]
name = "zstd"
version = "0.11.2+zstd.1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4"
dependencies = [
"zstd-safe",
]
[[package]]
name = "zstd-safe"
version = "5.0.2+zstd.1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db"
dependencies = [
"libc",
"zstd-sys",
]
[[package]]
name = "zstd-sys"
version = "2.0.9+zstd.1.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e16efa8a874a0481a574084d34cc26fdb3b99627480f785888deb6386506656"
dependencies = [
"cc",
"pkg-config",
]
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/.prettierignore
|
.anchor
.DS_Store
target
node_modules
dist
build
test-ledger
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/README.md
|
# OpenBook V2
A central-limit order-book program based on [Mango V4](https://github.com/blockworks-foundation/mango-v4) and the [previous OpenBook program](https://github.com/openbook-dex/program) (which was a fork of [Serum](https://github.com/project-serum/serum-dex)).
## License
See the [LICENSE file](LICENSE).
The majority of this repo is MIT-licensed, but some parts needed for compiling
the Solana program are under GPL.
All GPL code is gated behind the `enable-gpl` feature. If you use the `openbook-v2`
crate as a dependency with the `client` or `cpi` features, you use only MIT
parts of it.
The intention is for you to be able to depend on the `openbook-v2` crate for
building closed-source tools and integrations, including other Solana programs
that call into the Openbook program.
But deriving a Solana program with similar functionality to the Openbook program
from this codebase would require the changes and improvements to stay publicly
available under GPL.
## Deployed versions
| tag | network | program ID |
| ---- | ------- | ------------------------------------------- |
| v1.7 | mainnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
| v1.7 | devnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
| v1.7 | testnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
## Building & testing
### Pre-requisites
Before you can build the program, you will first need to install the following:
- [Rust](https://www.rust-lang.org/tools/install)
- [Solana](https://docs.solana.com/cli/install-solana-cli-tools)
- [Anchor](https://www.anchor-lang.com/docs/installation) (v0.28.0)
- [Just](https://github.com/casey/just#installation)
### Installing
To install the repo, run:
```bash
git clone https://github.com/openbook-dex/openbook-v2.git --recursive
```
The recursive flag ensures that you receive all of the submodules. If you have already cloned without passing in this flag, you can run:
```bash
git submodule init
git submodule update
```
To ensure that you always have the latest submodules, you can configure your git like so:
```bash
git config --global submodule.recurse true
```
### Building
To build, run:
```bash
just build
```
### IDL
To generate the progam & typescript IDLs, run:
```bash
just idl
```
### Testing
To see whether all of the tests are passing, run:
```bash
just test-all
```
To drill down on a specific test (e.g., test_expired_order), run:
```bash
just test test_expired_order
```
If you want to have tests that automatically re-run when you edit a file, install
[entr](https://github.com/eradman/entr) and run:
```bash
just test-dev
```
### TS Client
```bash
yarn build
```
### TS Testing
```bash
export SOL_RPC_URL=https://a.b.c
export KEYPAIR="[1,2,3,4,...]"
yarn ts/client/src/test/market.ts
yarn ts/client/src/test/openOrders.ts
```
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/Anchor.toml
|
[features]
seeds = false
skip-lint = false
[programs.localnet]
openbook_v2 = "opnbkNkqux64GppQhwbyEVc3axhssFhVYuwar8rDHCu"
[registry]
url = "https://api.apr.dev"
[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
[scripts]
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/yarn.lock
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@aashutoshrathi/word-wrap@^1.2.3":
version "1.2.6"
resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf"
integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==
"@babel/runtime@^7.17.2", "@babel/runtime@^7.23.2":
version "7.23.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.4.tgz#36fa1d2b36db873d25ec631dcc4923fdc1cf2e2e"
integrity sha512-2Yv65nlWnWlSpe3fXEyX5i7fx5kIKo4Qbcj+hMO0odwaneFjfXw5fdum+4yL20O0QiaHpia0cYQ9xpNMqrBwHg==
dependencies:
regenerator-runtime "^0.14.0"
"@coral-xyz/anchor@^0.29.0":
version "0.29.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/anchor/-/anchor-0.29.0.tgz#bd0be95bedfb30a381c3e676e5926124c310ff12"
integrity sha512-eny6QNG0WOwqV0zQ7cs/b1tIuzZGmP7U7EcH+ogt4Gdbl8HDmIYVMh/9aTmYZPaFWjtUaI8qSn73uYEXWfATdA==
dependencies:
"@coral-xyz/borsh" "^0.29.0"
"@noble/hashes" "^1.3.1"
"@solana/web3.js" "^1.68.0"
bn.js "^5.1.2"
bs58 "^4.0.1"
buffer-layout "^1.2.2"
camelcase "^6.3.0"
cross-fetch "^3.1.5"
crypto-hash "^1.3.0"
eventemitter3 "^4.0.7"
pako "^2.0.3"
snake-case "^3.0.4"
superstruct "^0.15.4"
toml "^3.0.0"
"@coral-xyz/borsh@^0.29.0":
version "0.29.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/borsh/-/borsh-0.29.0.tgz#79f7045df2ef66da8006d47f5399c7190363e71f"
integrity sha512-s7VFVa3a0oqpkuRloWVPdCK7hMbAMY270geZOGfCnaqexrP5dTIpbEHL33req6IYPPJ0hYa71cdvJ1h6V55/oQ==
dependencies:
bn.js "^5.1.2"
buffer-layout "^1.2.0"
"@cspotcode/source-map-support@^0.8.0":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==
dependencies:
"@jridgewell/trace-mapping" "0.3.9"
"@eslint-community/eslint-utils@^4.1.2", "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
version "4.4.0"
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59"
integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==
dependencies:
eslint-visitor-keys "^3.3.0"
"@eslint-community/regexpp@^4.4.0", "@eslint-community/regexpp@^4.6.0", "@eslint-community/regexpp@^4.6.1":
version "4.10.0"
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63"
integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==
"@eslint/eslintrc@^2.1.3":
version "2.1.3"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.3.tgz#797470a75fe0fbd5a53350ee715e85e87baff22d"
integrity sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==
dependencies:
ajv "^6.12.4"
debug "^4.3.2"
espree "^9.6.0"
globals "^13.19.0"
ignore "^5.2.0"
import-fresh "^3.2.1"
js-yaml "^4.1.0"
minimatch "^3.1.2"
strip-json-comments "^3.1.1"
"@eslint/js@8.54.0":
version "8.54.0"
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.54.0.tgz#4fab9a2ff7860082c304f750e94acd644cf984cf"
integrity sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==
"@humanwhocodes/config-array@^0.11.13":
version "0.11.13"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297"
integrity sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==
dependencies:
"@humanwhocodes/object-schema" "^2.0.1"
debug "^4.1.1"
minimatch "^3.0.5"
"@humanwhocodes/module-importer@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c"
integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==
"@humanwhocodes/object-schema@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044"
integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==
"@jridgewell/resolve-uri@^3.0.3":
version "3.1.2"
resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6"
integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==
"@jridgewell/sourcemap-codec@^1.4.10":
version "1.4.15"
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32"
integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==
"@jridgewell/trace-mapping@0.3.9":
version "0.3.9"
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9"
integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==
dependencies:
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"
"@noble/curves@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.2.0.tgz#92d7e12e4e49b23105a2555c6984d41733d65c35"
integrity sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==
dependencies:
"@noble/hashes" "1.3.2"
"@noble/hashes@1.3.2", "@noble/hashes@^1.3.1":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39"
integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==
"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
dependencies:
"@nodelib/fs.stat" "2.0.5"
run-parallel "^1.1.9"
"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2":
version "2.0.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b"
integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8":
version "1.2.8"
resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"
integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==
dependencies:
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"
"@solana/buffer-layout-utils@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@solana/buffer-layout-utils/-/buffer-layout-utils-0.2.0.tgz#b45a6cab3293a2eb7597cceb474f229889d875ca"
integrity sha512-szG4sxgJGktbuZYDg2FfNmkMi0DYQoVjN2h7ta1W1hPrwzarcFLBq9UpX1UjNXsNpT9dn+chgprtWGioUAr4/g==
dependencies:
"@solana/buffer-layout" "^4.0.0"
"@solana/web3.js" "^1.32.0"
bigint-buffer "^1.1.5"
bignumber.js "^9.0.1"
"@solana/buffer-layout@^4.0.0":
version "4.0.1"
resolved "https://registry.yarnpkg.com/@solana/buffer-layout/-/buffer-layout-4.0.1.tgz#b996235eaec15b1e0b5092a8ed6028df77fa6c15"
integrity sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==
dependencies:
buffer "~6.0.3"
"@solana/codecs-core@2.0.0-experimental.8618508":
version "2.0.0-experimental.8618508"
resolved "https://registry.yarnpkg.com/@solana/codecs-core/-/codecs-core-2.0.0-experimental.8618508.tgz#4f6709dd50e671267f3bea7d09209bc6471b7ad0"
integrity sha512-JCz7mKjVKtfZxkuDtwMAUgA7YvJcA2BwpZaA1NOLcted4OMC4Prwa3DUe3f3181ixPYaRyptbF0Ikq2MbDkYEA==
"@solana/codecs-data-structures@2.0.0-experimental.8618508":
version "2.0.0-experimental.8618508"
resolved "https://registry.yarnpkg.com/@solana/codecs-data-structures/-/codecs-data-structures-2.0.0-experimental.8618508.tgz#c16a704ac0f743a2e0bf73ada42d830b3402d848"
integrity sha512-sLpjL9sqzaDdkloBPV61Rht1tgaKq98BCtIKRuyscIrmVPu3wu0Bavk2n/QekmUzaTsj7K1pVSniM0YqCdnEBw==
dependencies:
"@solana/codecs-core" "2.0.0-experimental.8618508"
"@solana/codecs-numbers" "2.0.0-experimental.8618508"
"@solana/codecs-numbers@2.0.0-experimental.8618508":
version "2.0.0-experimental.8618508"
resolved "https://registry.yarnpkg.com/@solana/codecs-numbers/-/codecs-numbers-2.0.0-experimental.8618508.tgz#d84f9ed0521b22e19125eefc7d51e217fcaeb3e4"
integrity sha512-EXQKfzFr3CkKKNzKSZPOOOzchXsFe90TVONWsSnVkonO9z+nGKALE0/L9uBmIFGgdzhhU9QQVFvxBMclIDJo2Q==
dependencies:
"@solana/codecs-core" "2.0.0-experimental.8618508"
"@solana/codecs-strings@2.0.0-experimental.8618508":
version "2.0.0-experimental.8618508"
resolved "https://registry.yarnpkg.com/@solana/codecs-strings/-/codecs-strings-2.0.0-experimental.8618508.tgz#72457b884d9be80b59b263bcce73892b081e9402"
integrity sha512-b2yhinr1+oe+JDmnnsV0641KQqqDG8AQ16Z/x7GVWO+AWHMpRlHWVXOq8U1yhPMA4VXxl7i+D+C6ql0VGFp0GA==
dependencies:
"@solana/codecs-core" "2.0.0-experimental.8618508"
"@solana/codecs-numbers" "2.0.0-experimental.8618508"
"@solana/options@2.0.0-experimental.8618508":
version "2.0.0-experimental.8618508"
resolved "https://registry.yarnpkg.com/@solana/options/-/options-2.0.0-experimental.8618508.tgz#95385340e85f9e8a81b2bfba089404a61c8e9520"
integrity sha512-fy/nIRAMC3QHvnKi63KEd86Xr/zFBVxNW4nEpVEU2OT0gCEKwHY4Z55YHf7XujhyuM3PNpiBKg/YYw5QlRU4vg==
dependencies:
"@solana/codecs-core" "2.0.0-experimental.8618508"
"@solana/codecs-numbers" "2.0.0-experimental.8618508"
"@solana/spl-token-metadata@^0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@solana/spl-token-metadata/-/spl-token-metadata-0.1.2.tgz#876e13432bd2960bd3cac16b9b0af63e69e37719"
integrity sha512-hJYnAJNkDrtkE2Q41YZhCpeOGU/0JgRFXbtrtOuGGeKc3pkEUHB9DDoxZAxx+XRno13GozUleyBi0qypz4c3bw==
dependencies:
"@solana/codecs-core" "2.0.0-experimental.8618508"
"@solana/codecs-data-structures" "2.0.0-experimental.8618508"
"@solana/codecs-numbers" "2.0.0-experimental.8618508"
"@solana/codecs-strings" "2.0.0-experimental.8618508"
"@solana/options" "2.0.0-experimental.8618508"
"@solana/spl-type-length-value" "0.1.0"
"@solana/spl-token@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@solana/spl-token/-/spl-token-0.4.0.tgz#c057e82afd2b9ea59019525f3fbf6c9a20349a54"
integrity sha512-jjBIBG9IsclqQVl5Y82npGE6utdCh7Z9VFcF5qgJa5EUq2XgspW3Dt1wujWjH/vQDRnkp9zGO+BqQU/HhX/3wg==
dependencies:
"@solana/buffer-layout" "^4.0.0"
"@solana/buffer-layout-utils" "^0.2.0"
"@solana/spl-token-metadata" "^0.1.2"
buffer "^6.0.3"
"@solana/spl-type-length-value@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@solana/spl-type-length-value/-/spl-type-length-value-0.1.0.tgz#b5930cf6c6d8f50c7ff2a70463728a4637a2f26b"
integrity sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==
dependencies:
buffer "^6.0.3"
"@solana/web3.js@^1.32.0", "@solana/web3.js@^1.68.0", "@solana/web3.js@^1.77.3":
version "1.87.6"
resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.87.6.tgz#6744cfc5f4fc81e0f58241c0a92648a7320bb3bf"
integrity sha512-LkqsEBgTZztFiccZZXnawWa8qNCATEqE97/d0vIwjTclmVlc8pBpD1DmjfVHtZ1HS5fZorFlVhXfpwnCNDZfyg==
dependencies:
"@babel/runtime" "^7.23.2"
"@noble/curves" "^1.2.0"
"@noble/hashes" "^1.3.1"
"@solana/buffer-layout" "^4.0.0"
agentkeepalive "^4.3.0"
bigint-buffer "^1.1.5"
bn.js "^5.2.1"
borsh "^0.7.0"
bs58 "^4.0.1"
buffer "6.0.3"
fast-stable-stringify "^1.0.0"
jayson "^4.1.0"
node-fetch "^2.6.12"
rpc-websockets "^7.5.1"
superstruct "^0.14.2"
"@tsconfig/node10@^1.0.7":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.9.tgz#df4907fc07a886922637b15e02d4cebc4c0021b2"
integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==
"@tsconfig/node12@^1.0.7":
version "1.0.11"
resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d"
integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==
"@tsconfig/node14@^1.0.0":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1"
integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==
"@tsconfig/node16@^1.0.2":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9"
integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==
"@types/bn.js@^5.1.0":
version "5.1.5"
resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.5.tgz#2e0dacdcce2c0f16b905d20ff87aedbc6f7b4bf0"
integrity sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==
dependencies:
"@types/node" "*"
"@types/chai@^4.3.0":
version "4.3.11"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.11.tgz#e95050bf79a932cb7305dd130254ccdf9bde671c"
integrity sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==
"@types/connect@^3.4.33":
version "3.4.38"
resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.38.tgz#5ba7f3bc4fbbdeaff8dded952e5ff2cc53f8d858"
integrity sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==
dependencies:
"@types/node" "*"
"@types/json-schema@^7.0.9":
version "7.0.15"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
"@types/json5@^0.0.29":
version "0.0.29"
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
"@types/mocha@^9.0.0":
version "9.1.1"
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-9.1.1.tgz#e7c4f1001eefa4b8afbd1eee27a237fee3bf29c4"
integrity sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==
"@types/node@*":
version "20.10.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.0.tgz#16ddf9c0a72b832ec4fcce35b8249cf149214617"
integrity sha512-D0WfRmU9TQ8I9PFx9Yc+EBHw+vSpIub4IDvQivcp26PtPrdMGAq5SDcpXEo/epqa/DXotVpekHiLNTg3iaKXBQ==
dependencies:
undici-types "~5.26.4"
"@types/node@^12.12.54":
version "12.20.55"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
"@types/semver@^7.3.12":
version "7.5.6"
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339"
integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==
"@types/ws@^7.4.4":
version "7.4.7"
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-7.4.7.tgz#f7c390a36f7a0679aa69de2d501319f4f8d9b702"
integrity sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==
dependencies:
"@types/node" "*"
"@typescript-eslint/eslint-plugin@^5.52.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz#aeef0328d172b9e37d9bab6dbc13b87ed88977db"
integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==
dependencies:
"@eslint-community/regexpp" "^4.4.0"
"@typescript-eslint/scope-manager" "5.62.0"
"@typescript-eslint/type-utils" "5.62.0"
"@typescript-eslint/utils" "5.62.0"
debug "^4.3.4"
graphemer "^1.4.0"
ignore "^5.2.0"
natural-compare-lite "^1.4.0"
semver "^7.3.7"
tsutils "^3.21.0"
"@typescript-eslint/parser@^5.52.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.62.0.tgz#1b63d082d849a2fcae8a569248fbe2ee1b8a56c7"
integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==
dependencies:
"@typescript-eslint/scope-manager" "5.62.0"
"@typescript-eslint/types" "5.62.0"
"@typescript-eslint/typescript-estree" "5.62.0"
debug "^4.3.4"
"@typescript-eslint/scope-manager@5.62.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz#d9457ccc6a0b8d6b37d0eb252a23022478c5460c"
integrity sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==
dependencies:
"@typescript-eslint/types" "5.62.0"
"@typescript-eslint/visitor-keys" "5.62.0"
"@typescript-eslint/type-utils@5.62.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz#286f0389c41681376cdad96b309cedd17d70346a"
integrity sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==
dependencies:
"@typescript-eslint/typescript-estree" "5.62.0"
"@typescript-eslint/utils" "5.62.0"
debug "^4.3.4"
tsutils "^3.21.0"
"@typescript-eslint/types@5.62.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f"
integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==
"@typescript-eslint/typescript-estree@5.62.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz#7d17794b77fabcac615d6a48fb143330d962eb9b"
integrity sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==
dependencies:
"@typescript-eslint/types" "5.62.0"
"@typescript-eslint/visitor-keys" "5.62.0"
debug "^4.3.4"
globby "^11.1.0"
is-glob "^4.0.3"
semver "^7.3.7"
tsutils "^3.21.0"
"@typescript-eslint/utils@5.62.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86"
integrity sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==
dependencies:
"@eslint-community/eslint-utils" "^4.2.0"
"@types/json-schema" "^7.0.9"
"@types/semver" "^7.3.12"
"@typescript-eslint/scope-manager" "5.62.0"
"@typescript-eslint/types" "5.62.0"
"@typescript-eslint/typescript-estree" "5.62.0"
eslint-scope "^5.1.1"
semver "^7.3.7"
"@typescript-eslint/visitor-keys@5.62.0":
version "5.62.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz#2174011917ce582875954ffe2f6912d5931e353e"
integrity sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==
dependencies:
"@typescript-eslint/types" "5.62.0"
eslint-visitor-keys "^3.3.0"
"@ungap/promise-all-settled@1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44"
integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==
"@ungap/structured-clone@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
JSONStream@^1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==
dependencies:
jsonparse "^1.2.0"
through ">=2.2.7 <3"
acorn-jsx@^5.3.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
acorn-walk@^8.1.1:
version "8.3.2"
resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.2.tgz#7703af9415f1b6db9315d6895503862e231d34aa"
integrity sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==
acorn@^8.4.1:
version "8.11.3"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a"
integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==
acorn@^8.9.0:
version "8.11.2"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b"
integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==
agentkeepalive@^4.3.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.5.0.tgz#2673ad1389b3c418c5a20c5d7364f93ca04be923"
integrity sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==
dependencies:
humanize-ms "^1.2.1"
ajv@^6.12.4:
version "6.12.6"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
dependencies:
fast-deep-equal "^3.1.1"
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"
ansi-colors@4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348"
integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==
ansi-regex@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
ansi-styles@^4.0.0, ansi-styles@^4.1.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
dependencies:
color-convert "^2.0.1"
anymatch@~3.1.2:
version "3.1.3"
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e"
integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
dependencies:
normalize-path "^3.0.0"
picomatch "^2.0.4"
arg@^4.1.0:
version "4.1.3"
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
argparse@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
array-buffer-byte-length@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead"
integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==
dependencies:
call-bind "^1.0.2"
is-array-buffer "^3.0.1"
array-includes@^3.1.7:
version "3.1.7"
resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.7.tgz#8cd2e01b26f7a3086cbc87271593fe921c62abda"
integrity sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
get-intrinsic "^1.2.1"
is-string "^1.0.7"
array-union@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
array.prototype.findlastindex@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207"
integrity sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
es-shim-unscopables "^1.0.0"
get-intrinsic "^1.2.1"
array.prototype.flat@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18"
integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
es-shim-unscopables "^1.0.0"
array.prototype.flatmap@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz#c9a7c6831db8e719d6ce639190146c24bbd3e527"
integrity sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
es-shim-unscopables "^1.0.0"
arraybuffer.prototype.slice@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12"
integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==
dependencies:
array-buffer-byte-length "^1.0.0"
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
get-intrinsic "^1.2.1"
is-array-buffer "^3.0.2"
is-shared-array-buffer "^1.0.2"
arrify@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==
assertion-error@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b"
integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==
available-typed-arrays@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==
balanced-match@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
base-x@^3.0.2:
version "3.0.9"
resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.9.tgz#6349aaabb58526332de9f60995e548a53fe21320"
integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==
dependencies:
safe-buffer "^5.0.1"
base64-js@^1.3.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
big.js@^6.2.1:
version "6.2.1"
resolved "https://registry.yarnpkg.com/big.js/-/big.js-6.2.1.tgz#7205ce763efb17c2e41f26f121c420c6a7c2744f"
integrity sha512-bCtHMwL9LeDIozFn+oNhhFoq+yQ3BNdnsLSASUxLciOb1vgvpHsIO1dsENiGMgbb4SkP5TrzWzRiLddn8ahVOQ==
bigint-buffer@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/bigint-buffer/-/bigint-buffer-1.1.5.tgz#d038f31c8e4534c1f8d0015209bf34b4fa6dd442"
integrity sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==
dependencies:
bindings "^1.3.0"
bignumber.js@^9.0.1:
version "9.1.2"
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c"
integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==
binary-extensions@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
bindings@^1.3.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df"
integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==
dependencies:
file-uri-to-path "1.0.0"
bn.js@^5.1.2, bn.js@^5.2.0, bn.js@^5.2.1:
version "5.2.1"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70"
integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==
borsh@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/borsh/-/borsh-0.7.0.tgz#6e9560d719d86d90dc589bca60ffc8a6c51fec2a"
integrity sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==
dependencies:
bn.js "^5.2.0"
bs58 "^4.0.0"
text-encoding-utf-8 "^1.0.2"
brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
dependencies:
balanced-match "^1.0.0"
concat-map "0.0.1"
braces@^3.0.2, braces@~3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
dependencies:
fill-range "^7.0.1"
browser-stdout@1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60"
integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==
bs58@^4.0.0, bs58@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/bs58/-/bs58-4.0.1.tgz#be161e76c354f6f788ae4071f63f34e8c4f0a42a"
integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==
dependencies:
base-x "^3.0.2"
buffer-from@^1.0.0, buffer-from@^1.1.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5"
integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
buffer-layout@^1.2.0, buffer-layout@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/buffer-layout/-/buffer-layout-1.2.2.tgz#b9814e7c7235783085f9ca4966a0cfff112259d5"
integrity sha512-kWSuLN694+KTk8SrYvCqwP2WcgQjoRCiF5b4QDvkkz8EmgD+aWAIceGFKMIAdmF/pH+vpgNV3d3kAKorcdAmWA==
buffer@6.0.3, buffer@^6.0.3, buffer@~6.0.3:
version "6.0.3"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
dependencies:
base64-js "^1.3.1"
ieee754 "^1.2.1"
bufferutil@^4.0.1:
version "4.0.8"
resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.8.tgz#1de6a71092d65d7766c4d8a522b261a6e787e8ea"
integrity sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==
dependencies:
node-gyp-build "^4.3.0"
builtin-modules@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6"
integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==
builtins@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9"
integrity sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==
dependencies:
semver "^7.0.0"
call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.4, call-bind@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513"
integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==
dependencies:
function-bind "^1.1.2"
get-intrinsic "^1.2.1"
set-function-length "^1.1.1"
callsites@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
camelcase@^6.0.0, camelcase@^6.3.0:
version "6.3.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
chai@^4.3.4:
version "4.3.10"
resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.10.tgz#d784cec635e3b7e2ffb66446a63b4e33bd390384"
integrity sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==
dependencies:
assertion-error "^1.1.0"
check-error "^1.0.3"
deep-eql "^4.1.3"
get-func-name "^2.0.2"
loupe "^2.3.6"
pathval "^1.1.1"
type-detect "^4.0.8"
chalk@^4.0.0, chalk@^4.1.0:
version "4.1.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"
check-error@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.3.tgz#a6502e4312a7ee969f646e83bb3ddd56281bd694"
integrity sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==
dependencies:
get-func-name "^2.0.2"
chokidar@3.5.3:
version "3.5.3"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
dependencies:
anymatch "~3.1.2"
braces "~3.0.2"
glob-parent "~5.1.2"
is-binary-path "~2.1.0"
is-glob "~4.0.1"
normalize-path "~3.0.0"
readdirp "~3.6.0"
optionalDependencies:
fsevents "~2.3.2"
cliui@^7.0.2:
version "7.0.4"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==
dependencies:
string-width "^4.2.0"
strip-ansi "^6.0.0"
wrap-ansi "^7.0.0"
color-convert@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
dependencies:
color-name "~1.1.4"
color-name@~1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
commander@^2.20.3:
version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
create-require@^1.1.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
cross-fetch@^3.1.5:
version "3.1.8"
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.8.tgz#0327eba65fd68a7d119f8fb2bf9334a1a7956f82"
integrity sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==
dependencies:
node-fetch "^2.6.12"
cross-spawn@^7.0.2:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
dependencies:
path-key "^3.1.0"
shebang-command "^2.0.0"
which "^2.0.1"
crypto-hash@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/crypto-hash/-/crypto-hash-1.3.0.tgz#b402cb08f4529e9f4f09346c3e275942f845e247"
integrity sha512-lyAZ0EMyjDkVvz8WOeVnuCPvKVBXcMv1l5SVqO1yC7PzTwrD/pPje/BIRbWhMoPe436U+Y2nD7f5bFx0kt+Sbg==
debug@4.3.3:
version "4.3.3"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664"
integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==
dependencies:
ms "2.1.2"
debug@^3.2.7:
version "3.2.7"
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==
dependencies:
ms "^2.1.1"
debug@^4.1.1, debug@^4.3.2, debug@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
dependencies:
ms "2.1.2"
decamelize@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837"
integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==
deep-eql@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.3.tgz#7c7775513092f7df98d8df9996dd085eb668cc6d"
integrity sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==
dependencies:
type-detect "^4.0.0"
deep-is@^0.1.3:
version "0.1.4"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==
define-data-property@^1.0.1, define-data-property@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3"
integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==
dependencies:
get-intrinsic "^1.2.1"
gopd "^1.0.1"
has-property-descriptors "^1.0.0"
define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0:
version "1.2.1"
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c"
integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==
dependencies:
define-data-property "^1.0.1"
has-property-descriptors "^1.0.0"
object-keys "^1.1.1"
delay@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/delay/-/delay-5.0.0.tgz#137045ef1b96e5071060dd5be60bf9334436bd1d"
integrity sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==
diff@5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b"
integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==
diff@^3.1.0:
version "3.5.0"
resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12"
integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==
diff@^4.0.1:
version "4.0.2"
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
dir-glob@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"
integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==
dependencies:
path-type "^4.0.0"
doctrine@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==
dependencies:
esutils "^2.0.2"
doctrine@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961"
integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==
dependencies:
esutils "^2.0.2"
dot-case@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751"
integrity sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==
dependencies:
no-case "^3.0.4"
tslib "^2.0.3"
emoji-regex@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
es-abstract@^1.22.1:
version "1.22.3"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32"
integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==
dependencies:
array-buffer-byte-length "^1.0.0"
arraybuffer.prototype.slice "^1.0.2"
available-typed-arrays "^1.0.5"
call-bind "^1.0.5"
es-set-tostringtag "^2.0.1"
es-to-primitive "^1.2.1"
function.prototype.name "^1.1.6"
get-intrinsic "^1.2.2"
get-symbol-description "^1.0.0"
globalthis "^1.0.3"
gopd "^1.0.1"
has-property-descriptors "^1.0.0"
has-proto "^1.0.1"
has-symbols "^1.0.3"
hasown "^2.0.0"
internal-slot "^1.0.5"
is-array-buffer "^3.0.2"
is-callable "^1.2.7"
is-negative-zero "^2.0.2"
is-regex "^1.1.4"
is-shared-array-buffer "^1.0.2"
is-string "^1.0.7"
is-typed-array "^1.1.12"
is-weakref "^1.0.2"
object-inspect "^1.13.1"
object-keys "^1.1.1"
object.assign "^4.1.4"
regexp.prototype.flags "^1.5.1"
safe-array-concat "^1.0.1"
safe-regex-test "^1.0.0"
string.prototype.trim "^1.2.8"
string.prototype.trimend "^1.0.7"
string.prototype.trimstart "^1.0.7"
typed-array-buffer "^1.0.0"
typed-array-byte-length "^1.0.0"
typed-array-byte-offset "^1.0.0"
typed-array-length "^1.0.4"
unbox-primitive "^1.0.2"
which-typed-array "^1.1.13"
es-set-tostringtag@^2.0.1:
version "2.0.2"
resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9"
integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==
dependencies:
get-intrinsic "^1.2.2"
has-tostringtag "^1.0.0"
hasown "^2.0.0"
es-shim-unscopables@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763"
integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==
dependencies:
hasown "^2.0.0"
es-to-primitive@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a"
integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==
dependencies:
is-callable "^1.1.4"
is-date-object "^1.0.1"
is-symbol "^1.0.2"
es6-promise@^4.0.3:
version "4.2.8"
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a"
integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==
es6-promisify@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203"
integrity sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==
dependencies:
es6-promise "^4.0.3"
escalade@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
eslint-compat-utils@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/eslint-compat-utils/-/eslint-compat-utils-0.1.2.tgz#f45e3b5ced4c746c127cf724fb074cd4e730d653"
integrity sha512-Jia4JDldWnFNIru1Ehx1H5s9/yxiRHY/TimCuUc0jNexew3cF1gI6CYZil1ociakfWO3rRqFjl1mskBblB3RYg==
eslint-config-prettier@^8.10.0:
version "8.10.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz#3a06a662130807e2502fc3ff8b4143d8a0658e11"
integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==
eslint-config-standard-with-typescript@^37.0.0:
version "37.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-37.0.0.tgz#2c3b64f98ed46c9e10f93ee9822f3dbb211fa1a0"
integrity sha512-V8I/Q1eFf9tiOuFHkbksUdWO3p1crFmewecfBtRxXdnvb71BCJx+1xAknlIRZMwZioMX3/bPtMVCZsf1+AjjOw==
dependencies:
"@typescript-eslint/parser" "^5.52.0"
eslint-config-standard "17.1.0"
eslint-config-standard@17.1.0:
version "17.1.0"
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-17.1.0.tgz#40ffb8595d47a6b242e07cbfd49dc211ed128975"
integrity sha512-IwHwmaBNtDK4zDHQukFDW5u/aTb8+meQWZvNFWkiGmbWjD6bqyuSSBxxXKkCftCUzc1zwCH2m/baCNDLGmuO5Q==
eslint-import-resolver-node@^0.3.9:
version "0.3.9"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac"
integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==
dependencies:
debug "^3.2.7"
is-core-module "^2.13.0"
resolve "^1.22.4"
eslint-module-utils@^2.8.0:
version "2.8.0"
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49"
integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==
dependencies:
debug "^3.2.7"
eslint-plugin-es-x@^7.1.0:
version "7.4.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-es-x/-/eslint-plugin-es-x-7.4.0.tgz#ae3132b5502c28821e3e6eb80314123a4143a87c"
integrity sha512-WJa3RhYzBtl8I37ebY9p76s61UhZyi4KaFOnX2A5r32RPazkXj5yoT6PGnD02dhwzEUj0KwsUdqfKDd/OuvGsw==
dependencies:
"@eslint-community/eslint-utils" "^4.1.2"
"@eslint-community/regexpp" "^4.6.0"
eslint-compat-utils "^0.1.2"
eslint-plugin-import@^2.25.2:
version "2.29.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz#8133232e4329ee344f2f612885ac3073b0b7e155"
integrity sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==
dependencies:
array-includes "^3.1.7"
array.prototype.findlastindex "^1.2.3"
array.prototype.flat "^1.3.2"
array.prototype.flatmap "^1.3.2"
debug "^3.2.7"
doctrine "^2.1.0"
eslint-import-resolver-node "^0.3.9"
eslint-module-utils "^2.8.0"
hasown "^2.0.0"
is-core-module "^2.13.1"
is-glob "^4.0.3"
minimatch "^3.1.2"
object.fromentries "^2.0.7"
object.groupby "^1.0.1"
object.values "^1.1.7"
semver "^6.3.1"
tsconfig-paths "^3.14.2"
"eslint-plugin-n@^15.0.0 || ^16.0.0 ":
version "16.3.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-n/-/eslint-plugin-n-16.3.1.tgz#6cd377d1349fed10854b6535392e91fb4123193b"
integrity sha512-w46eDIkxQ2FaTHcey7G40eD+FhTXOdKudDXPUO2n9WNcslze/i/HT2qJ3GXjHngYSGDISIgPNhwGtgoix4zeOw==
dependencies:
"@eslint-community/eslint-utils" "^4.4.0"
builtins "^5.0.1"
eslint-plugin-es-x "^7.1.0"
get-tsconfig "^4.7.0"
ignore "^5.2.4"
is-builtin-module "^3.2.1"
is-core-module "^2.12.1"
minimatch "^3.1.2"
resolve "^1.22.2"
semver "^7.5.3"
eslint-plugin-promise@^6.0.0:
version "6.1.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz#269a3e2772f62875661220631bd4dafcb4083816"
integrity sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==
eslint-scope@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
dependencies:
esrecurse "^4.3.0"
estraverse "^4.1.1"
eslint-scope@^7.2.2:
version "7.2.2"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f"
integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==
dependencies:
esrecurse "^4.3.0"
estraverse "^5.2.0"
eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3:
version "3.4.3"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"
integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==
eslint@^8.0.1:
version "8.54.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.54.0.tgz#588e0dd4388af91a2e8fa37ea64924074c783537"
integrity sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==
dependencies:
"@eslint-community/eslint-utils" "^4.2.0"
"@eslint-community/regexpp" "^4.6.1"
"@eslint/eslintrc" "^2.1.3"
"@eslint/js" "8.54.0"
"@humanwhocodes/config-array" "^0.11.13"
"@humanwhocodes/module-importer" "^1.0.1"
"@nodelib/fs.walk" "^1.2.8"
"@ungap/structured-clone" "^1.2.0"
ajv "^6.12.4"
chalk "^4.0.0"
cross-spawn "^7.0.2"
debug "^4.3.2"
doctrine "^3.0.0"
escape-string-regexp "^4.0.0"
eslint-scope "^7.2.2"
eslint-visitor-keys "^3.4.3"
espree "^9.6.1"
esquery "^1.4.2"
esutils "^2.0.2"
fast-deep-equal "^3.1.3"
file-entry-cache "^6.0.1"
find-up "^5.0.0"
glob-parent "^6.0.2"
globals "^13.19.0"
graphemer "^1.4.0"
ignore "^5.2.0"
imurmurhash "^0.1.4"
is-glob "^4.0.0"
is-path-inside "^3.0.3"
js-yaml "^4.1.0"
json-stable-stringify-without-jsonify "^1.0.1"
levn "^0.4.1"
lodash.merge "^4.6.2"
minimatch "^3.1.2"
natural-compare "^1.4.0"
optionator "^0.9.3"
strip-ansi "^6.0.1"
text-table "^0.2.0"
espree@^9.6.0, espree@^9.6.1:
version "9.6.1"
resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f"
integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==
dependencies:
acorn "^8.9.0"
acorn-jsx "^5.3.2"
eslint-visitor-keys "^3.4.1"
esquery@^1.4.2:
version "1.5.0"
resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b"
integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==
dependencies:
estraverse "^5.1.0"
esrecurse@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921"
integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==
dependencies:
estraverse "^5.2.0"
estraverse@^4.1.1:
version "4.3.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
estraverse@^5.1.0, estraverse@^5.2.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
esutils@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
eventemitter3@^4.0.7:
version "4.0.7"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"
integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==
eyes@^0.1.8:
version "0.1.8"
resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0"
integrity sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==
fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
fast-glob@^3.2.9:
version "3.3.2"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==
dependencies:
"@nodelib/fs.stat" "^2.0.2"
"@nodelib/fs.walk" "^1.2.3"
glob-parent "^5.1.2"
merge2 "^1.3.0"
micromatch "^4.0.4"
fast-json-stable-stringify@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
fast-levenshtein@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==
fast-stable-stringify@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fast-stable-stringify/-/fast-stable-stringify-1.0.0.tgz#5c5543462b22aeeefd36d05b34e51c78cb86d313"
integrity sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==
fastq@^1.6.0:
version "1.15.0"
resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a"
integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==
dependencies:
reusify "^1.0.4"
file-entry-cache@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027"
integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==
dependencies:
flat-cache "^3.0.4"
file-uri-to-path@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==
fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
dependencies:
to-regex-range "^5.0.1"
find-up@5.0.0, find-up@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc"
integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==
dependencies:
locate-path "^6.0.0"
path-exists "^4.0.0"
flat-cache@^3.0.4:
version "3.2.0"
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee"
integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==
dependencies:
flatted "^3.2.9"
keyv "^4.5.3"
rimraf "^3.0.2"
flat@^5.0.2:
version "5.0.2"
resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241"
integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==
flatted@^3.2.9:
version "3.2.9"
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf"
integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==
for-each@^0.3.3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==
dependencies:
is-callable "^1.1.3"
fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
fs@^0.0.1-security:
version "0.0.1-security"
resolved "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4"
integrity sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==
fsevents@~2.3.2:
version "2.3.3"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
function-bind@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"
integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
function.prototype.name@^1.1.6:
version "1.1.6"
resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd"
integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
functions-have-names "^1.2.3"
functions-have-names@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834"
integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==
get-caller-file@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
get-func-name@^2.0.1, get-func-name@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.2.tgz#0d7cf20cd13fda808669ffa88f4ffc7a3943fc41"
integrity sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==
get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b"
integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==
dependencies:
function-bind "^1.1.2"
has-proto "^1.0.1"
has-symbols "^1.0.3"
hasown "^2.0.0"
get-symbol-description@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6"
integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.1.1"
get-tsconfig@^4.7.0:
version "4.7.2"
resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.7.2.tgz#0dcd6fb330391d46332f4c6c1bf89a6514c2ddce"
integrity sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==
dependencies:
resolve-pkg-maps "^1.0.0"
glob-parent@^5.1.2, glob-parent@~5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
dependencies:
is-glob "^4.0.1"
glob-parent@^6.0.2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
dependencies:
is-glob "^4.0.3"
glob@7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^3.0.4"
once "^1.3.0"
path-is-absolute "^1.0.0"
glob@^7.1.3:
version "7.2.3"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^3.1.1"
once "^1.3.0"
path-is-absolute "^1.0.0"
globals@^13.19.0:
version "13.23.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-13.23.0.tgz#ef31673c926a0976e1f61dab4dca57e0c0a8af02"
integrity sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==
dependencies:
type-fest "^0.20.2"
globalthis@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf"
integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==
dependencies:
define-properties "^1.1.3"
globby@^11.1.0:
version "11.1.0"
resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
dependencies:
array-union "^2.1.0"
dir-glob "^3.0.1"
fast-glob "^3.2.9"
ignore "^5.2.0"
merge2 "^1.4.1"
slash "^3.0.0"
gopd@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c"
integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==
dependencies:
get-intrinsic "^1.1.3"
graphemer@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"
integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==
growl@1.10.5:
version "1.10.5"
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==
has-bigints@^1.0.1, has-bigints@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa"
integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==
has-flag@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
has-property-descriptors@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340"
integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==
dependencies:
get-intrinsic "^1.2.2"
has-proto@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0"
integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==
has-symbols@^1.0.2, has-symbols@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8"
integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==
has-tostringtag@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25"
integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==
dependencies:
has-symbols "^1.0.2"
hasown@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c"
integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==
dependencies:
function-bind "^1.1.2"
he@1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
humanize-ms@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed"
integrity sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==
dependencies:
ms "^2.0.0"
ieee754@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
ignore@^5.2.0, ignore@^5.2.4:
version "5.3.0"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.0.tgz#67418ae40d34d6999c95ff56016759c718c82f78"
integrity sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==
import-fresh@^3.2.1:
version "3.3.0"
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
dependencies:
parent-module "^1.0.0"
resolve-from "^4.0.0"
imurmurhash@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==
inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
dependencies:
once "^1.3.0"
wrappy "1"
inherits@2:
version "2.0.4"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
internal-slot@^1.0.5:
version "1.0.6"
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930"
integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==
dependencies:
get-intrinsic "^1.2.2"
hasown "^2.0.0"
side-channel "^1.0.4"
is-array-buffer@^3.0.1, is-array-buffer@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe"
integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.2.0"
is-typed-array "^1.1.10"
is-bigint@^1.0.1:
version "1.0.4"
resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3"
integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==
dependencies:
has-bigints "^1.0.1"
is-binary-path@~2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
dependencies:
binary-extensions "^2.0.0"
is-boolean-object@^1.1.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719"
integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==
dependencies:
call-bind "^1.0.2"
has-tostringtag "^1.0.0"
is-builtin-module@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169"
integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==
dependencies:
builtin-modules "^3.3.0"
is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055"
integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==
is-core-module@^2.12.1, is-core-module@^2.13.0, is-core-module@^2.13.1:
version "2.13.1"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384"
integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==
dependencies:
hasown "^2.0.0"
is-date-object@^1.0.1:
version "1.0.5"
resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f"
integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==
dependencies:
has-tostringtag "^1.0.0"
is-extglob@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
is-fullwidth-code-point@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"
integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
version "4.0.3"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
dependencies:
is-extglob "^2.1.1"
is-negative-zero@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150"
integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==
is-number-object@^1.0.4:
version "1.0.7"
resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc"
integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==
dependencies:
has-tostringtag "^1.0.0"
is-number@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
is-path-inside@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==
is-plain-obj@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==
is-regex@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958"
integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==
dependencies:
call-bind "^1.0.2"
has-tostringtag "^1.0.0"
is-shared-array-buffer@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79"
integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==
dependencies:
call-bind "^1.0.2"
is-string@^1.0.5, is-string@^1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd"
integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==
dependencies:
has-tostringtag "^1.0.0"
is-symbol@^1.0.2, is-symbol@^1.0.3:
version "1.0.4"
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c"
integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==
dependencies:
has-symbols "^1.0.2"
is-typed-array@^1.1.10, is-typed-array@^1.1.12, is-typed-array@^1.1.9:
version "1.1.12"
resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a"
integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==
dependencies:
which-typed-array "^1.1.11"
is-unicode-supported@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7"
integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==
is-weakref@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2"
integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==
dependencies:
call-bind "^1.0.2"
isarray@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723"
integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==
isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
isomorphic-ws@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc"
integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==
jayson@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/jayson/-/jayson-4.1.0.tgz#60dc946a85197317f2b1439d672a8b0a99cea2f9"
integrity sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==
dependencies:
"@types/connect" "^3.4.33"
"@types/node" "^12.12.54"
"@types/ws" "^7.4.4"
JSONStream "^1.3.5"
commander "^2.20.3"
delay "^5.0.0"
es6-promisify "^5.0.0"
eyes "^0.1.8"
isomorphic-ws "^4.0.1"
json-stringify-safe "^5.0.1"
uuid "^8.3.2"
ws "^7.4.5"
js-yaml@4.1.0, js-yaml@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
dependencies:
argparse "^2.0.1"
json-buffer@3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13"
integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==
json-schema-traverse@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
json-stable-stringify-without-jsonify@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==
json-stringify-safe@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==
json5@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593"
integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==
dependencies:
minimist "^1.2.0"
jsonparse@^1.2.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"
integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==
keyv@^4.5.3:
version "4.5.4"
resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93"
integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==
dependencies:
json-buffer "3.0.1"
levn@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"
integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==
dependencies:
prelude-ls "^1.2.1"
type-check "~0.4.0"
locate-path@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286"
integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==
dependencies:
p-locate "^5.0.0"
lodash.merge@^4.6.2:
version "4.6.2"
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
log-symbols@4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503"
integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==
dependencies:
chalk "^4.1.0"
is-unicode-supported "^0.1.0"
loupe@^2.3.6:
version "2.3.7"
resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.7.tgz#6e69b7d4db7d3ab436328013d37d1c8c3540c697"
integrity sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==
dependencies:
get-func-name "^2.0.1"
lower-case@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28"
integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==
dependencies:
tslib "^2.0.3"
lru-cache@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
dependencies:
yallist "^4.0.0"
make-error@^1.1.1:
version "1.3.6"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
merge2@^1.3.0, merge2@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
micromatch@^4.0.4:
version "4.0.5"
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
dependencies:
braces "^3.0.2"
picomatch "^2.3.1"
minimatch@4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-4.2.1.tgz#40d9d511a46bdc4e563c22c3080cde9c0d8299b4"
integrity sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==
dependencies:
brace-expansion "^1.1.7"
minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
dependencies:
brace-expansion "^1.1.7"
minimist@^1.2.0, minimist@^1.2.6:
version "1.2.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
mkdirp@^0.5.1:
version "0.5.6"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6"
integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==
dependencies:
minimist "^1.2.6"
mocha@^9.0.3:
version "9.2.2"
resolved "https://registry.yarnpkg.com/mocha/-/mocha-9.2.2.tgz#d70db46bdb93ca57402c809333e5a84977a88fb9"
integrity sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==
dependencies:
"@ungap/promise-all-settled" "1.1.2"
ansi-colors "4.1.1"
browser-stdout "1.3.1"
chokidar "3.5.3"
debug "4.3.3"
diff "5.0.0"
escape-string-regexp "4.0.0"
find-up "5.0.0"
glob "7.2.0"
growl "1.10.5"
he "1.2.0"
js-yaml "4.1.0"
log-symbols "4.1.0"
minimatch "4.2.1"
ms "2.1.3"
nanoid "3.3.1"
serialize-javascript "6.0.0"
strip-json-comments "3.1.1"
supports-color "8.1.1"
which "2.0.2"
workerpool "6.2.0"
yargs "16.2.0"
yargs-parser "20.2.4"
yargs-unparser "2.0.0"
ms@2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
ms@2.1.3, ms@^2.0.0, ms@^2.1.1:
version "2.1.3"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
nanoid@3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.1.tgz#6347a18cac88af88f58af0b3594b723d5e99bb35"
integrity sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==
natural-compare-lite@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4"
integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==
natural-compare@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==
no-case@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d"
integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==
dependencies:
lower-case "^2.0.2"
tslib "^2.0.3"
node-fetch@^2.6.12:
version "2.7.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
dependencies:
whatwg-url "^5.0.0"
node-gyp-build@^4.3.0:
version "4.7.1"
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.7.1.tgz#cd7d2eb48e594874053150a9418ac85af83ca8f7"
integrity sha512-wTSrZ+8lsRRa3I3H8Xr65dLWSgCvY2l4AOnaeKdPA9TB/WYMPaTcrzf3rXvFoVvjKNVnu0CcWSx54qq9GKRUYg==
normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
object-inspect@^1.13.1, object-inspect@^1.9.0:
version "1.13.1"
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2"
integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==
object-keys@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
object.assign@^4.1.4:
version "4.1.4"
resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f"
integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
has-symbols "^1.0.3"
object-keys "^1.1.1"
object.fromentries@^2.0.7:
version "2.0.7"
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.7.tgz#71e95f441e9a0ea6baf682ecaaf37fa2a8d7e616"
integrity sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
object.groupby@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.1.tgz#d41d9f3c8d6c778d9cbac86b4ee9f5af103152ee"
integrity sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
get-intrinsic "^1.2.1"
object.values@^1.1.7:
version "1.1.7"
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.7.tgz#617ed13272e7e1071b43973aa1655d9291b8442a"
integrity sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
once@^1.3.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
dependencies:
wrappy "1"
optionator@^0.9.3:
version "0.9.3"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.3.tgz#007397d44ed1872fdc6ed31360190f81814e2c64"
integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==
dependencies:
"@aashutoshrathi/word-wrap" "^1.2.3"
deep-is "^0.1.3"
fast-levenshtein "^2.0.6"
levn "^0.4.1"
prelude-ls "^1.2.1"
type-check "^0.4.0"
p-limit@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"
integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==
dependencies:
yocto-queue "^0.1.0"
p-locate@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834"
integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==
dependencies:
p-limit "^3.0.2"
pako@^2.0.3:
version "2.1.0"
resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86"
integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==
parent-module@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
dependencies:
callsites "^3.0.0"
path-exists@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"
integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
path-key@^3.1.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
path-parse@^1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
path-type@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
pathval@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d"
integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
prelude-ls@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
prettier@^2.6.2:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
punycode@^2.1.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
queue-microtask@^1.2.2:
version "1.2.3"
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
randombytes@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
dependencies:
safe-buffer "^5.1.0"
readdirp@~3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
dependencies:
picomatch "^2.2.1"
regenerator-runtime@^0.14.0:
version "0.14.0"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45"
integrity sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==
regexp.prototype.flags@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e"
integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
set-function-name "^2.0.0"
require-directory@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==
resolve-from@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
resolve-pkg-maps@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f"
integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==
resolve@^1.22.2, resolve@^1.22.4:
version "1.22.8"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"
integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==
dependencies:
is-core-module "^2.13.0"
path-parse "^1.0.7"
supports-preserve-symlinks-flag "^1.0.0"
reusify@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
dependencies:
glob "^7.1.3"
rpc-websockets@^7.5.1:
version "7.8.0"
resolved "https://registry.yarnpkg.com/rpc-websockets/-/rpc-websockets-7.8.0.tgz#1bcf571f65c51803e81f0824e9540a0da35a5287"
integrity sha512-AStkq6KDvSAmA4WiwlK1pDvj/33BWmExTATUokC0v+NhWekXSTNzXS5OGXeYwq501/pj6lBZMofg/h4dx4/tCg==
dependencies:
"@babel/runtime" "^7.17.2"
eventemitter3 "^4.0.7"
uuid "^8.3.2"
ws "^8.5.0"
optionalDependencies:
bufferutil "^4.0.1"
utf-8-validate "^5.0.2"
run-parallel@^1.1.9:
version "1.2.0"
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==
dependencies:
queue-microtask "^1.2.2"
safe-array-concat@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c"
integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.2.1"
has-symbols "^1.0.3"
isarray "^2.0.5"
safe-buffer@^5.0.1, safe-buffer@^5.1.0:
version "5.2.1"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
safe-regex-test@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295"
integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.1.3"
is-regex "^1.1.4"
semver@^6.3.1:
version "6.3.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
semver@^7.0.0, semver@^7.3.7, semver@^7.5.3:
version "7.5.4"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
dependencies:
lru-cache "^6.0.0"
serialize-javascript@6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8"
integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==
dependencies:
randombytes "^2.1.0"
set-function-length@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed"
integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==
dependencies:
define-data-property "^1.1.1"
get-intrinsic "^1.2.1"
gopd "^1.0.1"
has-property-descriptors "^1.0.0"
set-function-name@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a"
integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==
dependencies:
define-data-property "^1.0.1"
functions-have-names "^1.2.3"
has-property-descriptors "^1.0.0"
shebang-command@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
dependencies:
shebang-regex "^3.0.0"
shebang-regex@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
side-channel@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==
dependencies:
call-bind "^1.0.0"
get-intrinsic "^1.0.2"
object-inspect "^1.9.0"
slash@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
snake-case@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-3.0.4.tgz#4f2bbd568e9935abdfd593f34c691dadb49c452c"
integrity sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==
dependencies:
dot-case "^3.0.4"
tslib "^2.0.3"
source-map-support@^0.5.6:
version "0.5.21"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"
integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
dependencies:
buffer-from "^1.0.0"
source-map "^0.6.0"
source-map@^0.6.0:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
string-width@^4.1.0, string-width@^4.2.0:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"
string.prototype.trim@^1.2.8:
version "1.2.8"
resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd"
integrity sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
string.prototype.trimend@^1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e"
integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
string.prototype.trimstart@^1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298"
integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==
dependencies:
call-bind "^1.0.2"
define-properties "^1.2.0"
es-abstract "^1.22.1"
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"
strip-bom@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==
strip-json-comments@3.1.1, strip-json-comments@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
superstruct@^0.14.2:
version "0.14.2"
resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-0.14.2.tgz#0dbcdf3d83676588828f1cf5ed35cda02f59025b"
integrity sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==
superstruct@^0.15.4:
version "0.15.5"
resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-0.15.5.tgz#0f0a8d3ce31313f0d84c6096cd4fa1bfdedc9dab"
integrity sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==
supports-color@8.1.1:
version "8.1.1"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"
integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
dependencies:
has-flag "^4.0.0"
supports-color@^7.1.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"
integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==
dependencies:
has-flag "^4.0.0"
supports-preserve-symlinks-flag@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
text-encoding-utf-8@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz#585b62197b0ae437e3c7b5d0af27ac1021e10d13"
integrity sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==
text-table@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==
"through@>=2.2.7 <3":
version "2.3.8"
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==
to-regex-range@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
dependencies:
is-number "^7.0.0"
toml@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/toml/-/toml-3.0.0.tgz#342160f1af1904ec9d204d03a5d61222d762c5ee"
integrity sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==
tr46@~0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
ts-mocha@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/ts-mocha/-/ts-mocha-10.0.0.tgz#41a8d099ac90dbbc64b06976c5025ffaebc53cb9"
integrity sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==
dependencies:
ts-node "7.0.1"
optionalDependencies:
tsconfig-paths "^3.5.0"
ts-node@7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf"
integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==
dependencies:
arrify "^1.0.0"
buffer-from "^1.1.0"
diff "^3.1.0"
make-error "^1.1.1"
minimist "^1.2.0"
mkdirp "^0.5.1"
source-map-support "^0.5.6"
yn "^2.0.0"
ts-node@^10.9.2:
version "10.9.2"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f"
integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==
dependencies:
"@cspotcode/source-map-support" "^0.8.0"
"@tsconfig/node10" "^1.0.7"
"@tsconfig/node12" "^1.0.7"
"@tsconfig/node14" "^1.0.0"
"@tsconfig/node16" "^1.0.2"
acorn "^8.4.1"
acorn-walk "^8.1.1"
arg "^4.1.0"
create-require "^1.1.0"
diff "^4.0.1"
make-error "^1.1.1"
v8-compile-cache-lib "^3.0.1"
yn "3.1.1"
tsconfig-paths@^3.14.2, tsconfig-paths@^3.5.0:
version "3.14.2"
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088"
integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==
dependencies:
"@types/json5" "^0.0.29"
json5 "^1.0.2"
minimist "^1.2.6"
strip-bom "^3.0.0"
tslib@^1.8.1:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
tslib@^2.0.3:
version "2.6.2"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
dependencies:
tslib "^1.8.1"
type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==
dependencies:
prelude-ls "^1.2.1"
type-detect@^4.0.0, type-detect@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
type-fest@^0.20.2:
version "0.20.2"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
typed-array-buffer@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60"
integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.2.1"
is-typed-array "^1.1.10"
typed-array-byte-length@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0"
integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==
dependencies:
call-bind "^1.0.2"
for-each "^0.3.3"
has-proto "^1.0.1"
is-typed-array "^1.1.10"
typed-array-byte-offset@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b"
integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==
dependencies:
available-typed-arrays "^1.0.5"
call-bind "^1.0.2"
for-each "^0.3.3"
has-proto "^1.0.1"
is-typed-array "^1.1.10"
typed-array-length@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb"
integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==
dependencies:
call-bind "^1.0.2"
for-each "^0.3.3"
is-typed-array "^1.1.9"
typescript@*:
version "5.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43"
integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==
unbox-primitive@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e"
integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==
dependencies:
call-bind "^1.0.2"
has-bigints "^1.0.2"
has-symbols "^1.0.3"
which-boxed-primitive "^1.0.2"
undici-types@~5.26.4:
version "5.26.5"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
uri-js@^4.2.2:
version "4.4.1"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
dependencies:
punycode "^2.1.0"
utf-8-validate@^5.0.2:
version "5.0.10"
resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2"
integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==
dependencies:
node-gyp-build "^4.3.0"
uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
v8-compile-cache-lib@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"
integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==
webidl-conversions@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
whatwg-url@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
dependencies:
tr46 "~0.0.3"
webidl-conversions "^3.0.0"
which-boxed-primitive@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"
integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==
dependencies:
is-bigint "^1.0.1"
is-boolean-object "^1.1.0"
is-number-object "^1.0.4"
is-string "^1.0.5"
is-symbol "^1.0.3"
which-typed-array@^1.1.11, which-typed-array@^1.1.13:
version "1.1.13"
resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36"
integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==
dependencies:
available-typed-arrays "^1.0.5"
call-bind "^1.0.4"
for-each "^0.3.3"
gopd "^1.0.1"
has-tostringtag "^1.0.0"
which@2.0.2, which@^2.0.1:
version "2.0.2"
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
dependencies:
isexe "^2.0.0"
workerpool@6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.0.tgz#827d93c9ba23ee2019c3ffaff5c27fccea289e8b"
integrity sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==
wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"
wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
ws@^7.4.5:
version "7.5.9"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==
ws@^8.5.0:
version "8.14.2"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.14.2.tgz#6c249a806eb2db7a20d26d51e7709eab7b2e6c7f"
integrity sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==
y18n@^5.0.5:
version "5.0.8"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
yallist@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
yargs-parser@20.2.4:
version "20.2.4"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54"
integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==
yargs-parser@^20.2.2:
version "20.2.9"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee"
integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==
yargs-unparser@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb"
integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==
dependencies:
camelcase "^6.0.0"
decamelize "^4.0.0"
flat "^5.0.2"
is-plain-obj "^2.1.0"
yargs@16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66"
integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==
dependencies:
cliui "^7.0.2"
escalade "^3.1.1"
get-caller-file "^2.0.5"
require-directory "^2.1.1"
string-width "^4.2.0"
y18n "^5.0.5"
yargs-parser "^20.2.2"
yn@3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
yn@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"
integrity sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==
yocto-queue@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/tsconfig.esm.json
|
{
"extends": "./tsconfig",
"compilerOptions": {
"declaration": false,
"declarationMap": false,
"module": "esnext",
"outDir": "dist/esm",
"sourceMap": false
}
}
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/package.json
|
{
"name": "@openbook-dex/openbook-v2",
"version": "0.2.10",
"description": "Typescript Client for openbook-v2 program.",
"repository": "https://github.com/openbook-dex/openbook-v2/",
"author": {
"name": "OpenBook contributors",
"email": "hello@openbook.xxx",
"url": "https://github.com/openbook-dex"
},
"sideEffects": false,
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "rm -rf dist && yarn build:browser && yarn build:node && yarn build:types",
"build:node": " tsc -p tsconfig.cjs.json --noEmit false",
"build:browser": "tsc -p tsconfig.esm.json --noEmit false",
"build:types": "tsc -p tsconfig.types.json --noEmit false",
"format": "yarn prettier --write ./ts/",
"lint": "eslint ./ts/client/src --ext ts --ext tsx --ext js --quiet",
"prepublishOnly": "yarn validate && yarn build",
"validate": "yarn lint && yarn format",
"prepare": "yarn build"
},
"prettier": {
"singleQuote": true,
"trailingComma": "all"
},
"dependencies": {
"@coral-xyz/anchor": "^0.29.0",
"@solana/spl-token": "^0.4.0",
"@solana/web3.js": "^1.77.3",
"big.js": "^6.2.1"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"chai": "^4.3.4",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.10.0",
"eslint-config-standard-with-typescript": "^37.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-promise": "^6.0.0",
"fs": "^0.0.1-security",
"mocha": "^9.0.3",
"prettier": "^2.6.2",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2",
"typescript": "*"
},
"license": "MIT"
}
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/tsconfig.cjs.json
|
{
"extends": "./tsconfig",
"compilerOptions": {
"declaration": true,
"declarationMap": false,
"module": "commonjs",
"outDir": "dist/cjs",
"sourceMap": false
},
"include": [
"ts/client/src",
"ts/client/scripts",
"ts/client/scripts/mm",
"ts/client/scripts/keeper"
]
}
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/tsconfig.json
|
{
"compilerOptions": {
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"noImplicitAny": false,
"resolveJsonModule": true,
"skipLibCheck": true,
"strictNullChecks": true,
"target": "esnext",
},
"ts-node": {
// these options are overrides used only by ts-node
// same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs"
}
},
"include": [
"ts/client/src"
]
}
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/rust-toolchain.toml
|
[toolchain]
channel = "1.70.0"
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/.eslintrc.json
|
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"always"
],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": "warn"
}
}
| 0
|
solana_public_repos/openbook-dex
|
solana_public_repos/openbook-dex/openbook-v2/SECURITY.md
|
# Reporting Security Issues
If you believe you have found a security vulnerability in the Openbook V2 repository, please report it to us through coordinated disclosure.
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests. Similarly, please don't disclose vulnerability details in Discord channels, including our own.**
Instead, please send an email to contact[@]openbook-solana.com.
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
* The type of issue (e.g., theft of funds, freezing user funds, or arithmetic over/underflows)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
While we don't have a formally established bug bounty program, we welcome security research and will
work with researchers to explore bounty options.
| 0
|
solana_public_repos/openbook-dex/openbook-v2
|
solana_public_repos/openbook-dex/openbook-v2/idl/openbook_v2.json
|
{
"version": "0.1.0",
"name": "openbook_v2",
"instructions": [
{
"name": "createMarket",
"docs": [
"Create a [`Market`](crate::state::Market) for a given token pair."
],
"accounts": [
{
"name": "market",
"isMut": true,
"isSigner": true
},
{
"name": "marketAuthority",
"isMut": false,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false,
"docs": [
"Accounts are initialized by client,",
"anchor discriminator is set first when ix exits,"
]
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "payer",
"isMut": true,
"isSigner": true
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "baseMint",
"isMut": false,
"isSigner": false
},
{
"name": "quoteMint",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
},
{
"name": "associatedTokenProgram",
"isMut": false,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "collectFeeAdmin",
"isMut": false,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "consumeEventsAdmin",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "closeMarketAdmin",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "eventAuthority",
"isMut": false,
"isSigner": false
},
{
"name": "program",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "name",
"type": "string"
},
{
"name": "oracleConfig",
"type": {
"defined": "OracleConfigParams"
}
},
{
"name": "quoteLotSize",
"type": "i64"
},
{
"name": "baseLotSize",
"type": "i64"
},
{
"name": "makerFee",
"type": "i64"
},
{
"name": "takerFee",
"type": "i64"
},
{
"name": "timeExpiry",
"type": "i64"
}
]
},
{
"name": "closeMarket",
"docs": [
"Close a [`Market`](crate::state::Market) (only",
"[`close_market_admin`](crate::state::Market::close_market_admin))."
],
"accounts": [
{
"name": "closeMarketAdmin",
"isMut": false,
"isSigner": true
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "solDestination",
"isMut": true,
"isSigner": false
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "createOpenOrdersIndexer",
"docs": [
"Create an [`OpenOrdersIndexer`](crate::state::OpenOrdersIndexer) account."
],
"accounts": [
{
"name": "payer",
"isMut": true,
"isSigner": true
},
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersIndexer",
"isMut": true,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "closeOpenOrdersIndexer",
"docs": [
"Close an [`OpenOrdersIndexer`](crate::state::OpenOrdersIndexer) account."
],
"accounts": [
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersIndexer",
"isMut": true,
"isSigner": false
},
{
"name": "solDestination",
"isMut": true,
"isSigner": false
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "createOpenOrdersAccount",
"docs": [
"Create an [`OpenOrdersAccount`](crate::state::OpenOrdersAccount)."
],
"accounts": [
{
"name": "payer",
"isMut": true,
"isSigner": true
},
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "delegateAccount",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "openOrdersIndexer",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "name",
"type": "string"
}
]
},
{
"name": "closeOpenOrdersAccount",
"docs": [
"Close an [`OpenOrdersAccount`](crate::state::OpenOrdersAccount)."
],
"accounts": [
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersIndexer",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "solDestination",
"isMut": true,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "placeOrder",
"docs": [
"Place an order.",
"",
"Different types of orders have different effects on the order book,",
"as described in [`PlaceOrderType`](crate::state::PlaceOrderType).",
"",
"`price_lots` refers to the price in lots: the number of quote lots",
"per base lot. It is ignored for `PlaceOrderType::Market` orders.",
"",
"`expiry_timestamp` is a unix timestamp for when this order should",
"expire. If 0 is passed in, the order will never expire. If the time",
"is in the past, the instruction is skipped. Timestamps in the future",
"are reduced to now + 65,535s.",
"",
"`limit` determines the maximum number of orders from the book to fill,",
"and can be used to limit CU spent. When the limit is reached, processing",
"stops and the instruction succeeds."
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "userTokenAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "marketVault",
"isMut": true,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "args",
"type": {
"defined": "PlaceOrderArgs"
}
}
],
"returns": {
"option": "u128"
}
},
{
"name": "editOrder",
"docs": [
"Edit an order."
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "userTokenAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "marketVault",
"isMut": true,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "clientOrderId",
"type": "u64"
},
{
"name": "expectedCancelSize",
"type": "i64"
},
{
"name": "placeOrder",
"type": {
"defined": "PlaceOrderArgs"
}
}
],
"returns": {
"option": "u128"
}
},
{
"name": "editOrderPegged",
"docs": [
"Edit an order pegged."
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "userTokenAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "marketVault",
"isMut": true,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "clientOrderId",
"type": "u64"
},
{
"name": "expectedCancelSize",
"type": "i64"
},
{
"name": "placeOrder",
"type": {
"defined": "PlaceOrderPeggedArgs"
}
}
],
"returns": {
"option": "u128"
}
},
{
"name": "placeOrders",
"docs": [
"Place multiple orders"
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "userQuoteAccount",
"isMut": true,
"isSigner": false
},
{
"name": "userBaseAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "ordersType",
"type": {
"defined": "PlaceOrderType"
}
},
{
"name": "bids",
"type": {
"vec": {
"defined": "PlaceMultipleOrdersArgs"
}
}
},
{
"name": "asks",
"type": {
"vec": {
"defined": "PlaceMultipleOrdersArgs"
}
}
},
{
"name": "limit",
"type": "u8"
}
],
"returns": {
"vec": {
"option": "u128"
}
}
},
{
"name": "cancelAllAndPlaceOrders",
"docs": [
"Cancel orders and place multiple orders."
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "userQuoteAccount",
"isMut": true,
"isSigner": false
},
{
"name": "userBaseAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "ordersType",
"type": {
"defined": "PlaceOrderType"
}
},
{
"name": "bids",
"type": {
"vec": {
"defined": "PlaceMultipleOrdersArgs"
}
}
},
{
"name": "asks",
"type": {
"vec": {
"defined": "PlaceMultipleOrdersArgs"
}
}
},
{
"name": "limit",
"type": "u8"
}
],
"returns": {
"vec": {
"option": "u128"
}
}
},
{
"name": "placeOrderPegged",
"docs": [
"Place an oracle-peg order."
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "userTokenAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "marketVault",
"isMut": true,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "args",
"type": {
"defined": "PlaceOrderPeggedArgs"
}
}
],
"returns": {
"option": "u128"
}
},
{
"name": "placeTakeOrder",
"docs": [
"Place an order that shall take existing liquidity off of the book, not",
"add a new order off the book.",
"",
"This type of order allows for instant token settlement for the taker."
],
"accounts": [
{
"name": "signer",
"isMut": true,
"isSigner": true
},
{
"name": "penaltyPayer",
"isMut": true,
"isSigner": true
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "marketAuthority",
"isMut": false,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
},
{
"name": "userBaseAccount",
"isMut": true,
"isSigner": false
},
{
"name": "userQuoteAccount",
"isMut": true,
"isSigner": false
},
{
"name": "oracleA",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "oracleB",
"isMut": false,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
},
{
"name": "openOrdersAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
}
],
"args": [
{
"name": "args",
"type": {
"defined": "PlaceTakeOrderArgs"
}
}
]
},
{
"name": "consumeEvents",
"docs": [
"Process up to `limit` [events](crate::state::AnyEvent).",
"",
"When a user places a 'take' order, they do not know beforehand which",
"market maker will have placed the 'make' order that they get executed",
"against. This prevents them from passing in a market maker's",
"[`OpenOrdersAccount`](crate::state::OpenOrdersAccount), which is needed",
"to credit/debit the relevant tokens to/from the maker. As such, Openbook",
"uses a 'crank' system, where `place_order` only emits events, and",
"`consume_events` handles token settlement.",
"",
"Currently, there are two types of events: [`FillEvent`](crate::state::FillEvent)s",
"and [`OutEvent`](crate::state::OutEvent)s.",
"",
"A `FillEvent` is emitted when an order is filled, and it is handled by",
"debiting whatever the taker is selling from the taker and crediting",
"it to the maker, and debiting whatever the taker is buying from the",
"maker and crediting it to the taker. Note that *no tokens are moved*,",
"these are just debits and credits to each party's [`Position`](crate::state::Position).",
"",
"An `OutEvent` is emitted when a limit order needs to be removed from",
"the book during a `place_order` invocation, and it is handled by",
"crediting whatever the maker would have sold (quote token in a bid,",
"base token in an ask) back to the maker."
],
"accounts": [
{
"name": "consumeEventsAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "limit",
"type": "u64"
}
]
},
{
"name": "consumeGivenEvents",
"docs": [
"Process the [events](crate::state::AnyEvent) at the given positions."
],
"accounts": [
{
"name": "consumeEventsAdmin",
"isMut": false,
"isSigner": true,
"isOptional": true
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "eventHeap",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "slots",
"type": {
"vec": "u64"
}
}
]
},
{
"name": "cancelOrder",
"docs": [
"Cancel an order by its `order_id`.",
"",
"Note that this doesn't emit an [`OutEvent`](crate::state::OutEvent) because a",
"maker knows that they will be passing in their own [`OpenOrdersAccount`](crate::state::OpenOrdersAccount)."
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": false,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "orderId",
"type": "u128"
}
]
},
{
"name": "cancelOrderByClientOrderId",
"docs": [
"Cancel an order by its `client_order_id`.",
"",
"Note that this doesn't emit an [`OutEvent`](crate::state::OutEvent) because a",
"maker knows that they will be passing in their own [`OpenOrdersAccount`](crate::state::OpenOrdersAccount)."
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": false,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "clientOrderId",
"type": "u64"
}
],
"returns": "i64"
},
{
"name": "cancelAllOrders",
"docs": [
"Cancel up to `limit` orders, optionally filtering by side"
],
"accounts": [
{
"name": "signer",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": false,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "sideOption",
"type": {
"option": {
"defined": "Side"
}
}
},
{
"name": "limit",
"type": "u8"
}
]
},
{
"name": "deposit",
"docs": [
"Deposit a certain amount of `base` and `quote` lamports into one's",
"[`Position`](crate::state::Position).",
"",
"Makers might wish to `deposit`, rather than have actual tokens moved for",
"each trade, in order to reduce CUs."
],
"accounts": [
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "userBaseAccount",
"isMut": true,
"isSigner": false
},
{
"name": "userQuoteAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "baseAmount",
"type": "u64"
},
{
"name": "quoteAmount",
"type": "u64"
}
]
},
{
"name": "refill",
"docs": [
"Refill a certain amount of `base` and `quote` lamports. The amount being passed is the",
"total lamports that the [`Position`](crate::state::Position) will have.",
"",
"Makers might wish to `refill`, rather than have actual tokens moved for",
"each trade, in order to reduce CUs."
],
"accounts": [
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "userBaseAccount",
"isMut": true,
"isSigner": false
},
{
"name": "userQuoteAccount",
"isMut": true,
"isSigner": false
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "baseAmount",
"type": "u64"
},
{
"name": "quoteAmount",
"type": "u64"
}
]
},
{
"name": "settleFunds",
"docs": [
"Withdraw any available tokens."
],
"accounts": [
{
"name": "owner",
"isMut": true,
"isSigner": true
},
{
"name": "penaltyPayer",
"isMut": true,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "marketAuthority",
"isMut": false,
"isSigner": false
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "userBaseAccount",
"isMut": true,
"isSigner": false
},
{
"name": "userQuoteAccount",
"isMut": true,
"isSigner": false
},
{
"name": "referrerAccount",
"isMut": true,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "settleFundsExpired",
"docs": [
"Withdraw any available tokens when the market is expired (only",
"[`close_market_admin`](crate::state::Market::close_market_admin))."
],
"accounts": [
{
"name": "closeMarketAdmin",
"isMut": false,
"isSigner": true
},
{
"name": "owner",
"isMut": true,
"isSigner": true
},
{
"name": "penaltyPayer",
"isMut": true,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "marketAuthority",
"isMut": false,
"isSigner": false
},
{
"name": "marketBaseVault",
"isMut": true,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "userBaseAccount",
"isMut": true,
"isSigner": false
},
{
"name": "userQuoteAccount",
"isMut": true,
"isSigner": false
},
{
"name": "referrerAccount",
"isMut": true,
"isSigner": false,
"isOptional": true
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "sweepFees",
"docs": [
"Sweep fees, as a [`Market`](crate::state::Market)'s admin."
],
"accounts": [
{
"name": "collectFeeAdmin",
"isMut": false,
"isSigner": true
},
{
"name": "market",
"isMut": true,
"isSigner": false
},
{
"name": "marketAuthority",
"isMut": false,
"isSigner": false
},
{
"name": "marketQuoteVault",
"isMut": true,
"isSigner": false
},
{
"name": "tokenReceiverAccount",
"isMut": true,
"isSigner": false
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "setDelegate",
"docs": [
"Update the [`delegate`](crate::state::OpenOrdersAccount::delegate) of an open orders account."
],
"accounts": [
{
"name": "owner",
"isMut": true,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "delegateAccount",
"isMut": false,
"isSigner": false,
"isOptional": true
}
],
"args": []
},
{
"name": "setMarketExpired",
"docs": [
"Set market to expired before pruning orders and closing the market (only",
"[`close_market_admin`](crate::state::Market::close_market_admin))."
],
"accounts": [
{
"name": "closeMarketAdmin",
"isMut": false,
"isSigner": true
},
{
"name": "market",
"isMut": true,
"isSigner": false
}
],
"args": []
},
{
"name": "pruneOrders",
"docs": [
"Remove orders from the book when the market is expired (only",
"[`close_market_admin`](crate::state::Market::close_market_admin))."
],
"accounts": [
{
"name": "closeMarketAdmin",
"isMut": false,
"isSigner": true
},
{
"name": "openOrdersAccount",
"isMut": true,
"isSigner": false
},
{
"name": "market",
"isMut": false,
"isSigner": false
},
{
"name": "bids",
"isMut": true,
"isSigner": false
},
{
"name": "asks",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "limit",
"type": "u8"
}
]
},
{
"name": "stubOracleCreate",
"accounts": [
{
"name": "payer",
"isMut": true,
"isSigner": true
},
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "oracle",
"isMut": true,
"isSigner": false
},
{
"name": "mint",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "price",
"type": "f64"
}
]
},
{
"name": "stubOracleClose",
"accounts": [
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "oracle",
"isMut": true,
"isSigner": false
},
{
"name": "solDestination",
"isMut": true,
"isSigner": false
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false
}
],
"args": []
},
{
"name": "stubOracleSet",
"accounts": [
{
"name": "owner",
"isMut": false,
"isSigner": true
},
{
"name": "oracle",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "price",
"type": "f64"
}
]
}
],
"accounts": [
{
"name": "Market",
"type": {
"kind": "struct",
"fields": [
{
"name": "bump",
"docs": [
"PDA bump"
],
"type": "u8"
},
{
"name": "baseDecimals",
"docs": [
"Number of decimals used for the base token.",
"",
"Used to convert the oracle's price into a native/native price."
],
"type": "u8"
},
{
"name": "quoteDecimals",
"type": "u8"
},
{
"name": "padding1",
"type": {
"array": [
"u8",
5
]
}
},
{
"name": "marketAuthority",
"type": "publicKey"
},
{
"name": "timeExpiry",
"docs": [
"No expiry = 0. Market will expire and no trading allowed after time_expiry"
],
"type": "i64"
},
{
"name": "collectFeeAdmin",
"docs": [
"Admin who can collect fees from the market"
],
"type": "publicKey"
},
{
"name": "openOrdersAdmin",
"docs": [
"Admin who must sign off on all order creations"
],
"type": {
"defined": "NonZeroPubkeyOption"
}
},
{
"name": "consumeEventsAdmin",
"docs": [
"Admin who must sign off on all event consumptions"
],
"type": {
"defined": "NonZeroPubkeyOption"
}
},
{
"name": "closeMarketAdmin",
"docs": [
"Admin who can set market expired, prune orders and close the market"
],
"type": {
"defined": "NonZeroPubkeyOption"
}
},
{
"name": "name",
"docs": [
"Name. Trailing zero bytes are ignored."
],
"type": {
"array": [
"u8",
16
]
}
},
{
"name": "bids",
"docs": [
"Address of the BookSide account for bids"
],
"type": "publicKey"
},
{
"name": "asks",
"docs": [
"Address of the BookSide account for asks"
],
"type": "publicKey"
},
{
"name": "eventHeap",
"docs": [
"Address of the EventHeap account"
],
"type": "publicKey"
},
{
"name": "oracleA",
"docs": [
"Oracles account address"
],
"type": {
"defined": "NonZeroPubkeyOption"
}
},
{
"name": "oracleB",
"type": {
"defined": "NonZeroPubkeyOption"
}
},
{
"name": "oracleConfig",
"docs": [
"Oracle configuration"
],
"type": {
"defined": "OracleConfig"
}
},
{
"name": "quoteLotSize",
"docs": [
"Number of quote native in a quote lot. Must be a power of 10.",
"",
"Primarily useful for increasing the tick size on the market: A lot price",
"of 1 becomes a native price of quote_lot_size/base_lot_size becomes a",
"ui price of quote_lot_size*base_decimals/base_lot_size/quote_decimals."
],
"type": "i64"
},
{
"name": "baseLotSize",
"docs": [
"Number of base native in a base lot. Must be a power of 10.",
"",
"Example: If base decimals for the underlying asset is 6, base lot size",
"is 100 and and base position lots is 10_000 then base position native is",
"1_000_000 and base position ui is 1."
],
"type": "i64"
},
{
"name": "seqNum",
"docs": [
"Total number of orders seen"
],
"type": "u64"
},
{
"name": "registrationTime",
"docs": [
"Timestamp in seconds that the market was registered at."
],
"type": "i64"
},
{
"name": "makerFee",
"docs": [
"Fees",
"",
"Fee (in 10^-6) when matching maker orders.",
"maker_fee < 0 it means some of the taker_fees goes to the maker",
"maker_fee > 0, it means no taker_fee to the maker, and maker fee goes to the referral"
],
"type": "i64"
},
{
"name": "takerFee",
"docs": [
"Fee (in 10^-6) for taker orders, always >= 0."
],
"type": "i64"
},
{
"name": "feesAccrued",
"docs": [
"Total fees accrued in native quote"
],
"type": "u128"
},
{
"name": "feesToReferrers",
"docs": [
"Total fees settled in native quote"
],
"type": "u128"
},
{
"name": "referrerRebatesAccrued",
"docs": [
"Referrer rebates to be distributed"
],
"type": "u64"
},
{
"name": "feesAvailable",
"docs": [
"Fees generated and available to withdraw via sweep_fees"
],
"type": "u64"
},
{
"name": "makerVolume",
"docs": [
"Cumulative maker volume (same as taker volume) in quote native units"
],
"type": "u128"
},
{
"name": "takerVolumeWoOo",
"docs": [
"Cumulative taker volume in quote native units due to place take orders"
],
"type": "u128"
},
{
"name": "baseMint",
"type": "publicKey"
},
{
"name": "quoteMint",
"type": "publicKey"
},
{
"name": "marketBaseVault",
"type": "publicKey"
},
{
"name": "baseDepositTotal",
"type": "u64"
},
{
"name": "marketQuoteVault",
"type": "publicKey"
},
{
"name": "quoteDepositTotal",
"type": "u64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
128
]
}
}
]
}
},
{
"name": "OpenOrdersAccount",
"type": {
"kind": "struct",
"fields": [
{
"name": "owner",
"type": "publicKey"
},
{
"name": "market",
"type": "publicKey"
},
{
"name": "name",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "delegate",
"type": {
"defined": "NonZeroPubkeyOption"
}
},
{
"name": "accountNum",
"type": "u32"
},
{
"name": "bump",
"type": "u8"
},
{
"name": "version",
"type": "u8"
},
{
"name": "padding",
"type": {
"array": [
"u8",
2
]
}
},
{
"name": "position",
"type": {
"defined": "Position"
}
},
{
"name": "openOrders",
"type": {
"array": [
{
"defined": "OpenOrder"
},
24
]
}
}
]
}
},
{
"name": "OpenOrdersIndexer",
"type": {
"kind": "struct",
"fields": [
{
"name": "bump",
"type": "u8"
},
{
"name": "createdCounter",
"type": "u32"
},
{
"name": "addresses",
"type": {
"vec": "publicKey"
}
}
]
}
},
{
"name": "StubOracle",
"type": {
"kind": "struct",
"fields": [
{
"name": "owner",
"type": "publicKey"
},
{
"name": "mint",
"type": "publicKey"
},
{
"name": "price",
"type": "f64"
},
{
"name": "lastUpdateTs",
"type": "i64"
},
{
"name": "lastUpdateSlot",
"type": "u64"
},
{
"name": "deviation",
"type": "f64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
104
]
}
}
]
}
},
{
"name": "BookSide",
"type": {
"kind": "struct",
"fields": [
{
"name": "roots",
"type": {
"array": [
{
"defined": "OrderTreeRoot"
},
2
]
}
},
{
"name": "reservedRoots",
"type": {
"array": [
{
"defined": "OrderTreeRoot"
},
4
]
}
},
{
"name": "reserved",
"type": {
"array": [
"u8",
256
]
}
},
{
"name": "nodes",
"type": {
"defined": "OrderTreeNodes"
}
}
]
}
},
{
"name": "EventHeap",
"docs": [
"Container for the different EventTypes.",
"",
"Events are stored in a fixed-array of nodes. Free nodes are connected by a single-linked list",
"starting at free_head while used nodes form a circular doubly-linked list starting at",
"used_head."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "header",
"type": {
"defined": "EventHeapHeader"
}
},
{
"name": "nodes",
"type": {
"array": [
{
"defined": "EventNode"
},
600
]
}
},
{
"name": "reserved",
"type": {
"array": [
"u8",
64
]
}
}
]
}
}
],
"types": [
{
"name": "NonZeroPubkeyOption",
"docs": [
"Like `Option`, but implemented for `Pubkey` to be used with `zero_copy`"
],
"type": {
"kind": "struct",
"fields": [
{
"name": "key",
"type": "publicKey"
}
]
}
},
{
"name": "Position",
"type": {
"kind": "struct",
"fields": [
{
"name": "bidsBaseLots",
"docs": [
"Base lots in open bids"
],
"type": "i64"
},
{
"name": "asksBaseLots",
"docs": [
"Base lots in open asks"
],
"type": "i64"
},
{
"name": "baseFreeNative",
"type": "u64"
},
{
"name": "quoteFreeNative",
"type": "u64"
},
{
"name": "lockedMakerFees",
"type": "u64"
},
{
"name": "referrerRebatesAvailable",
"type": "u64"
},
{
"name": "penaltyHeapCount",
"docs": [
"Count of ixs when events are added to the heap",
"To avoid this, send remaining accounts in order to process the events"
],
"type": "u64"
},
{
"name": "makerVolume",
"docs": [
"Cumulative maker volume in quote native units (display only)"
],
"type": "u128"
},
{
"name": "takerVolume",
"docs": [
"Cumulative taker volume in quote native units (display only)"
],
"type": "u128"
},
{
"name": "bidsQuoteLots",
"docs": [
"Quote lots in open bids"
],
"type": "i64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
64
]
}
}
]
}
},
{
"name": "OpenOrder",
"type": {
"kind": "struct",
"fields": [
{
"name": "id",
"type": "u128"
},
{
"name": "clientId",
"type": "u64"
},
{
"name": "lockedPrice",
"docs": [
"Price at which user's assets were locked"
],
"type": "i64"
},
{
"name": "isFree",
"type": "u8"
},
{
"name": "sideAndTree",
"type": "u8"
},
{
"name": "padding",
"type": {
"array": [
"u8",
6
]
}
}
]
}
},
{
"name": "OracleConfig",
"type": {
"kind": "struct",
"fields": [
{
"name": "confFilter",
"type": "f64"
},
{
"name": "maxStalenessSlots",
"type": "i64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
72
]
}
}
]
}
},
{
"name": "OracleConfigParams",
"type": {
"kind": "struct",
"fields": [
{
"name": "confFilter",
"type": "f32"
},
{
"name": "maxStalenessSlots",
"type": {
"option": "u32"
}
}
]
}
},
{
"name": "EventHeapHeader",
"type": {
"kind": "struct",
"fields": [
{
"name": "freeHead",
"type": "u16"
},
{
"name": "usedHead",
"type": "u16"
},
{
"name": "count",
"type": "u16"
},
{
"name": "padd",
"type": "u16"
},
{
"name": "seqNum",
"type": "u64"
}
]
}
},
{
"name": "EventNode",
"type": {
"kind": "struct",
"fields": [
{
"name": "next",
"type": "u16"
},
{
"name": "prev",
"type": "u16"
},
{
"name": "pad",
"type": {
"array": [
"u8",
4
]
}
},
{
"name": "event",
"type": {
"defined": "AnyEvent"
}
}
]
}
},
{
"name": "AnyEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "eventType",
"type": "u8"
},
{
"name": "padding",
"type": {
"array": [
"u8",
143
]
}
}
]
}
},
{
"name": "FillEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "eventType",
"type": "u8"
},
{
"name": "takerSide",
"type": "u8"
},
{
"name": "makerOut",
"type": "u8"
},
{
"name": "makerSlot",
"type": "u8"
},
{
"name": "padding",
"type": {
"array": [
"u8",
4
]
}
},
{
"name": "timestamp",
"type": "u64"
},
{
"name": "seqNum",
"type": "u64"
},
{
"name": "maker",
"type": "publicKey"
},
{
"name": "makerTimestamp",
"type": "u64"
},
{
"name": "taker",
"type": "publicKey"
},
{
"name": "takerClientOrderId",
"type": "u64"
},
{
"name": "price",
"type": "i64"
},
{
"name": "pegLimit",
"type": "i64"
},
{
"name": "quantity",
"type": "i64"
},
{
"name": "makerClientOrderId",
"type": "u64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
8
]
}
}
]
}
},
{
"name": "OutEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "eventType",
"type": "u8"
},
{
"name": "side",
"type": "u8"
},
{
"name": "ownerSlot",
"type": "u8"
},
{
"name": "padding0",
"type": {
"array": [
"u8",
5
]
}
},
{
"name": "timestamp",
"type": "u64"
},
{
"name": "seqNum",
"type": "u64"
},
{
"name": "owner",
"type": "publicKey"
},
{
"name": "quantity",
"type": "i64"
},
{
"name": "padding1",
"type": {
"array": [
"u8",
80
]
}
}
]
}
},
{
"name": "InnerNode",
"docs": [
"InnerNodes and LeafNodes compose the binary tree of orders.",
"",
"Each InnerNode has exactly two children, which are either InnerNodes themselves,",
"or LeafNodes. The children share the top `prefix_len` bits of `key`. The left",
"child has a 0 in the next bit, and the right a 1."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "tag",
"type": "u8"
},
{
"name": "padding",
"type": {
"array": [
"u8",
3
]
}
},
{
"name": "prefixLen",
"docs": [
"number of highest `key` bits that all children share",
"e.g. if it's 2, the two highest bits of `key` will be the same on all children"
],
"type": "u32"
},
{
"name": "key",
"docs": [
"only the top `prefix_len` bits of `key` are relevant"
],
"type": "u128"
},
{
"name": "children",
"docs": [
"indexes into `BookSide::nodes`"
],
"type": {
"array": [
"u32",
2
]
}
},
{
"name": "childEarliestExpiry",
"docs": [
"The earliest expiry timestamp for the left and right subtrees.",
"",
"Needed to be able to find and remove expired orders without having to",
"iterate through the whole bookside."
],
"type": {
"array": [
"u64",
2
]
}
},
{
"name": "reserved",
"type": {
"array": [
"u8",
40
]
}
}
]
}
},
{
"name": "LeafNode",
"docs": [
"LeafNodes represent an order in the binary tree"
],
"type": {
"kind": "struct",
"fields": [
{
"name": "tag",
"docs": [
"NodeTag"
],
"type": "u8"
},
{
"name": "ownerSlot",
"docs": [
"Index into the owning OpenOrdersAccount's OpenOrders"
],
"type": "u8"
},
{
"name": "timeInForce",
"docs": [
"Time in seconds after `timestamp` at which the order expires.",
"A value of 0 means no expiry."
],
"type": "u16"
},
{
"name": "padding",
"type": {
"array": [
"u8",
4
]
}
},
{
"name": "key",
"docs": [
"The binary tree key, see new_node_key()"
],
"type": "u128"
},
{
"name": "owner",
"docs": [
"Address of the owning OpenOrdersAccount"
],
"type": "publicKey"
},
{
"name": "quantity",
"docs": [
"Number of base lots to buy or sell, always >=1"
],
"type": "i64"
},
{
"name": "timestamp",
"docs": [
"The time the order was placed"
],
"type": "u64"
},
{
"name": "pegLimit",
"docs": [
"If the effective price of an oracle pegged order exceeds this limit,",
"it will be considered invalid and may be removed.",
"",
"Only applicable in the oracle_pegged OrderTree"
],
"type": "i64"
},
{
"name": "clientOrderId",
"docs": [
"User defined id for this order, used in FillEvents"
],
"type": "u64"
}
]
}
},
{
"name": "AnyNode",
"type": {
"kind": "struct",
"fields": [
{
"name": "tag",
"type": "u8"
},
{
"name": "data",
"type": {
"array": [
"u8",
87
]
}
}
]
}
},
{
"name": "OrderTreeRoot",
"type": {
"kind": "struct",
"fields": [
{
"name": "maybeNode",
"type": "u32"
},
{
"name": "leafCount",
"type": "u32"
}
]
}
},
{
"name": "OrderTreeNodes",
"docs": [
"A binary tree on AnyNode::key()",
"",
"The key encodes the price in the top 64 bits."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "orderTreeType",
"type": "u8"
},
{
"name": "padding",
"type": {
"array": [
"u8",
3
]
}
},
{
"name": "bumpIndex",
"type": "u32"
},
{
"name": "freeListLen",
"type": "u32"
},
{
"name": "freeListHead",
"type": "u32"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
512
]
}
},
{
"name": "nodes",
"type": {
"array": [
{
"defined": "AnyNode"
},
1024
]
}
}
]
}
},
{
"name": "I80F48",
"docs": [
"Nothing in Rust shall use these types. They only exist so that the Anchor IDL",
"knows about them and typescript can deserialize it."
],
"type": {
"kind": "struct",
"fields": [
{
"name": "val",
"type": "i128"
}
]
}
},
{
"name": "PlaceOrderArgs",
"type": {
"kind": "struct",
"fields": [
{
"name": "side",
"type": {
"defined": "Side"
}
},
{
"name": "priceLots",
"type": "i64"
},
{
"name": "maxBaseLots",
"type": "i64"
},
{
"name": "maxQuoteLotsIncludingFees",
"type": "i64"
},
{
"name": "clientOrderId",
"type": "u64"
},
{
"name": "orderType",
"type": {
"defined": "PlaceOrderType"
}
},
{
"name": "expiryTimestamp",
"type": "u64"
},
{
"name": "selfTradeBehavior",
"type": {
"defined": "SelfTradeBehavior"
}
},
{
"name": "limit",
"type": "u8"
}
]
}
},
{
"name": "PlaceMultipleOrdersArgs",
"type": {
"kind": "struct",
"fields": [
{
"name": "priceLots",
"type": "i64"
},
{
"name": "maxQuoteLotsIncludingFees",
"type": "i64"
},
{
"name": "expiryTimestamp",
"type": "u64"
}
]
}
},
{
"name": "PlaceOrderPeggedArgs",
"type": {
"kind": "struct",
"fields": [
{
"name": "side",
"type": {
"defined": "Side"
}
},
{
"name": "priceOffsetLots",
"type": "i64"
},
{
"name": "pegLimit",
"type": "i64"
},
{
"name": "maxBaseLots",
"type": "i64"
},
{
"name": "maxQuoteLotsIncludingFees",
"type": "i64"
},
{
"name": "clientOrderId",
"type": "u64"
},
{
"name": "orderType",
"type": {
"defined": "PlaceOrderType"
}
},
{
"name": "expiryTimestamp",
"type": "u64"
},
{
"name": "selfTradeBehavior",
"type": {
"defined": "SelfTradeBehavior"
}
},
{
"name": "limit",
"type": "u8"
}
]
}
},
{
"name": "PlaceTakeOrderArgs",
"type": {
"kind": "struct",
"fields": [
{
"name": "side",
"type": {
"defined": "Side"
}
},
{
"name": "priceLots",
"type": "i64"
},
{
"name": "maxBaseLots",
"type": "i64"
},
{
"name": "maxQuoteLotsIncludingFees",
"type": "i64"
},
{
"name": "orderType",
"type": {
"defined": "PlaceOrderType"
}
},
{
"name": "limit",
"type": "u8"
}
]
}
},
{
"name": "OracleType",
"type": {
"kind": "enum",
"variants": [
{
"name": "Pyth"
},
{
"name": "Stub"
},
{
"name": "SwitchboardV1"
},
{
"name": "SwitchboardV2"
},
{
"name": "RaydiumCLMM"
}
]
}
},
{
"name": "OrderState",
"type": {
"kind": "enum",
"variants": [
{
"name": "Valid"
},
{
"name": "Invalid"
},
{
"name": "Skipped"
}
]
}
},
{
"name": "BookSideOrderTree",
"type": {
"kind": "enum",
"variants": [
{
"name": "Fixed"
},
{
"name": "OraclePegged"
}
]
}
},
{
"name": "EventType",
"type": {
"kind": "enum",
"variants": [
{
"name": "Fill"
},
{
"name": "Out"
}
]
}
},
{
"name": "NodeTag",
"type": {
"kind": "enum",
"variants": [
{
"name": "Uninitialized"
},
{
"name": "InnerNode"
},
{
"name": "LeafNode"
},
{
"name": "FreeNode"
},
{
"name": "LastFreeNode"
}
]
}
},
{
"name": "PlaceOrderType",
"type": {
"kind": "enum",
"variants": [
{
"name": "Limit"
},
{
"name": "ImmediateOrCancel"
},
{
"name": "PostOnly"
},
{
"name": "Market"
},
{
"name": "PostOnlySlide"
},
{
"name": "FillOrKill"
}
]
}
},
{
"name": "PostOrderType",
"type": {
"kind": "enum",
"variants": [
{
"name": "Limit"
},
{
"name": "PostOnly"
},
{
"name": "PostOnlySlide"
}
]
}
},
{
"name": "SelfTradeBehavior",
"docs": [
"Self trade behavior controls how taker orders interact with resting limit orders of the same account.",
"This setting has no influence on placing a resting or oracle pegged limit order that does not match",
"immediately, instead it's the responsibility of the user to correctly configure his taker orders."
],
"type": {
"kind": "enum",
"variants": [
{
"name": "DecrementTake"
},
{
"name": "CancelProvide"
},
{
"name": "AbortTransaction"
}
]
}
},
{
"name": "Side",
"type": {
"kind": "enum",
"variants": [
{
"name": "Bid"
},
{
"name": "Ask"
}
]
}
},
{
"name": "SideAndOrderTree",
"docs": [
"SideAndOrderTree is a storage optimization, so we don't need two bytes for the data"
],
"type": {
"kind": "enum",
"variants": [
{
"name": "BidFixed"
},
{
"name": "AskFixed"
},
{
"name": "BidOraclePegged"
},
{
"name": "AskOraclePegged"
}
]
}
},
{
"name": "OrderParams",
"type": {
"kind": "enum",
"variants": [
{
"name": "Market"
},
{
"name": "ImmediateOrCancel",
"fields": [
{
"name": "price_lots",
"type": "i64"
}
]
},
{
"name": "Fixed",
"fields": [
{
"name": "price_lots",
"type": "i64"
},
{
"name": "order_type",
"type": {
"defined": "PostOrderType"
}
}
]
},
{
"name": "OraclePegged",
"fields": [
{
"name": "price_offset_lots",
"type": "i64"
},
{
"name": "order_type",
"type": {
"defined": "PostOrderType"
}
},
{
"name": "peg_limit",
"type": "i64"
}
]
},
{
"name": "FillOrKill",
"fields": [
{
"name": "price_lots",
"type": "i64"
}
]
}
]
}
},
{
"name": "OrderTreeType",
"type": {
"kind": "enum",
"variants": [
{
"name": "Bids"
},
{
"name": "Asks"
}
]
}
}
],
"events": [
{
"name": "DepositLog",
"fields": [
{
"name": "openOrdersAccount",
"type": "publicKey",
"index": false
},
{
"name": "signer",
"type": "publicKey",
"index": false
},
{
"name": "baseAmount",
"type": "u64",
"index": false
},
{
"name": "quoteAmount",
"type": "u64",
"index": false
}
]
},
{
"name": "FillLog",
"fields": [
{
"name": "market",
"type": "publicKey",
"index": false
},
{
"name": "takerSide",
"type": "u8",
"index": false
},
{
"name": "makerSlot",
"type": "u8",
"index": false
},
{
"name": "makerOut",
"type": "bool",
"index": false
},
{
"name": "timestamp",
"type": "u64",
"index": false
},
{
"name": "seqNum",
"type": "u64",
"index": false
},
{
"name": "maker",
"type": "publicKey",
"index": false
},
{
"name": "makerClientOrderId",
"type": "u64",
"index": false
},
{
"name": "makerFee",
"type": "u64",
"index": false
},
{
"name": "makerTimestamp",
"type": "u64",
"index": false
},
{
"name": "taker",
"type": "publicKey",
"index": false
},
{
"name": "takerClientOrderId",
"type": "u64",
"index": false
},
{
"name": "takerFeeCeil",
"type": "u64",
"index": false
},
{
"name": "price",
"type": "i64",
"index": false
},
{
"name": "quantity",
"type": "i64",
"index": false
}
]
},
{
"name": "MarketMetaDataLog",
"fields": [
{
"name": "market",
"type": "publicKey",
"index": false
},
{
"name": "name",
"type": "string",
"index": false
},
{
"name": "baseMint",
"type": "publicKey",
"index": false
},
{
"name": "quoteMint",
"type": "publicKey",
"index": false
},
{
"name": "baseDecimals",
"type": "u8",
"index": false
},
{
"name": "quoteDecimals",
"type": "u8",
"index": false
},
{
"name": "baseLotSize",
"type": "i64",
"index": false
},
{
"name": "quoteLotSize",
"type": "i64",
"index": false
}
]
},
{
"name": "TotalOrderFillEvent",
"fields": [
{
"name": "side",
"type": "u8",
"index": false
},
{
"name": "taker",
"type": "publicKey",
"index": false
},
{
"name": "totalQuantityPaid",
"type": "u64",
"index": false
},
{
"name": "totalQuantityReceived",
"type": "u64",
"index": false
},
{
"name": "fees",
"type": "u64",
"index": false
}
]
},
{
"name": "SetDelegateLog",
"fields": [
{
"name": "openOrdersAccount",
"type": "publicKey",
"index": false
},
{
"name": "delegate",
"type": {
"option": "publicKey"
},
"index": false
}
]
},
{
"name": "SettleFundsLog",
"fields": [
{
"name": "openOrdersAccount",
"type": "publicKey",
"index": false
},
{
"name": "baseNative",
"type": "u64",
"index": false
},
{
"name": "quoteNative",
"type": "u64",
"index": false
},
{
"name": "referrerRebate",
"type": "u64",
"index": false
},
{
"name": "referrer",
"type": {
"option": "publicKey"
},
"index": false
}
]
},
{
"name": "SweepFeesLog",
"fields": [
{
"name": "market",
"type": "publicKey",
"index": false
},
{
"name": "amount",
"type": "u64",
"index": false
},
{
"name": "receiver",
"type": "publicKey",
"index": false
}
]
},
{
"name": "OpenOrdersPositionLog",
"fields": [
{
"name": "owner",
"type": "publicKey",
"index": false
},
{
"name": "openOrdersAccountNum",
"type": "u32",
"index": false
},
{
"name": "market",
"type": "publicKey",
"index": false
},
{
"name": "bidsBaseLots",
"type": "i64",
"index": false
},
{
"name": "bidsQuoteLots",
"type": "i64",
"index": false
},
{
"name": "asksBaseLots",
"type": "i64",
"index": false
},
{
"name": "baseFreeNative",
"type": "u64",
"index": false
},
{
"name": "quoteFreeNative",
"type": "u64",
"index": false
},
{
"name": "lockedMakerFees",
"type": "u64",
"index": false
},
{
"name": "referrerRebatesAvailable",
"type": "u64",
"index": false
},
{
"name": "makerVolume",
"type": "u128",
"index": false
},
{
"name": "takerVolume",
"type": "u128",
"index": false
}
]
}
],
"errors": [
{
"code": 6000,
"name": "SomeError",
"msg": ""
},
{
"code": 6001,
"name": "InvalidInputNameLength",
"msg": "Name lenght above limit"
},
{
"code": 6002,
"name": "InvalidInputMarketExpired",
"msg": "Market cannot be created as expired"
},
{
"code": 6003,
"name": "InvalidInputMarketFees",
"msg": "Taker fees should be positive and if maker fees are negative, greater or equal to their abs value"
},
{
"code": 6004,
"name": "InvalidInputLots",
"msg": "Lots cannot be negative"
},
{
"code": 6005,
"name": "InvalidInputLotsSize",
"msg": "Lots size above market limits"
},
{
"code": 6006,
"name": "InvalidInputOrdersAmounts",
"msg": "Input amounts above limits"
},
{
"code": 6007,
"name": "InvalidInputCancelSize",
"msg": "Price lots should be greater than zero"
},
{
"code": 6008,
"name": "InvalidInputPriceLots",
"msg": "Expected cancel size should be greater than zero"
},
{
"code": 6009,
"name": "InvalidInputPegLimit",
"msg": "Peg limit should be greater than zero"
},
{
"code": 6010,
"name": "InvalidInputOrderType",
"msg": "The order type is invalid. A taker order must be Market or ImmediateOrCancel"
},
{
"code": 6011,
"name": "InvalidInputOrderId",
"msg": "Order id cannot be zero"
},
{
"code": 6012,
"name": "InvalidInputHeapSlots",
"msg": "Slot above heap limit"
},
{
"code": 6013,
"name": "InvalidOracleTypes",
"msg": "Cannot combine two oracles of different providers"
},
{
"code": 6014,
"name": "InvalidSecondOracle",
"msg": "Cannot configure secondary oracle without primary"
},
{
"code": 6015,
"name": "NoCloseMarketAdmin",
"msg": "This market does not have a `close_market_admin` and thus cannot be closed."
},
{
"code": 6016,
"name": "InvalidCloseMarketAdmin",
"msg": "The signer of this transaction is not this market's `close_market_admin`."
},
{
"code": 6017,
"name": "InvalidOpenOrdersAdmin",
"msg": "The `open_orders_admin` required by this market to sign all instructions that creates orders is missing or is not valid"
},
{
"code": 6018,
"name": "InvalidConsumeEventsAdmin",
"msg": "The `consume_events_admin` required by this market to sign all instructions that consume events is missing or is not valid"
},
{
"code": 6019,
"name": "InvalidMarketVault",
"msg": "Provided `market_vault` is invalid"
},
{
"code": 6020,
"name": "IndexerActiveOO",
"msg": "Cannot be closed due to the existence of open orders accounts"
},
{
"code": 6021,
"name": "OraclePegInvalidOracleState",
"msg": "Cannot place a peg order due to invalid oracle state"
},
{
"code": 6022,
"name": "UnknownOracleType",
"msg": "oracle type cannot be determined"
},
{
"code": 6023,
"name": "OracleConfidence",
"msg": "an oracle does not reach the confidence threshold"
},
{
"code": 6024,
"name": "OracleStale",
"msg": "an oracle is stale"
},
{
"code": 6025,
"name": "OrderIdNotFound",
"msg": "Order id not found on the orderbook"
},
{
"code": 6026,
"name": "EventHeapContainsElements",
"msg": "Event heap contains elements and market can't be closed"
},
{
"code": 6027,
"name": "InvalidOrderPostIOC",
"msg": "ImmediateOrCancel is not a PostOrderType"
},
{
"code": 6028,
"name": "InvalidOrderPostMarket",
"msg": "Market is not a PostOrderType"
},
{
"code": 6029,
"name": "WouldSelfTrade",
"msg": "would self trade"
},
{
"code": 6030,
"name": "MarketHasExpired",
"msg": "The Market has already expired."
},
{
"code": 6031,
"name": "InvalidPriceLots",
"msg": "Price lots should be greater than zero"
},
{
"code": 6032,
"name": "InvalidOraclePrice",
"msg": "Oracle price above market limits"
},
{
"code": 6033,
"name": "MarketHasNotExpired",
"msg": "The Market has not expired yet."
},
{
"code": 6034,
"name": "NoOwnerOrDelegate",
"msg": "No correct owner or delegate."
},
{
"code": 6035,
"name": "NoOwner",
"msg": "No correct owner"
},
{
"code": 6036,
"name": "OpenOrdersFull",
"msg": "No free order index in open orders account"
},
{
"code": 6037,
"name": "BookContainsElements",
"msg": "Book contains elements"
},
{
"code": 6038,
"name": "OpenOrdersOrderNotFound",
"msg": "Could not find order in user account"
},
{
"code": 6039,
"name": "InvalidPostAmount",
"msg": "Amount to post above book limits"
},
{
"code": 6040,
"name": "DisabledOraclePeg",
"msg": "Oracle peg orders are not enabled for this market"
},
{
"code": 6041,
"name": "NonEmptyMarket",
"msg": "Cannot close a non-empty market"
},
{
"code": 6042,
"name": "NonEmptyOpenOrdersPosition",
"msg": "Cannot close a non-empty open orders account"
},
{
"code": 6043,
"name": "WouldExecutePartially",
"msg": "Fill-Or-Kill order would generate a partial execution"
}
]
}
| 0
|
solana_public_repos/openbook-dex/openbook-v2
|
solana_public_repos/openbook-dex/openbook-v2/migrations/deploy.ts
|
// Migrations are an early feature. Currently, they're nothing more than this
// single deploy script that's invoked from the CLI, injecting a provider
// configured from the workspace's Anchor.toml.
const anchor = require('@coral-xyz/anchor');
module.exports = async function (provider) {
// Configure client to use the provider.
anchor.setProvider(provider);
// Add your deploy script here.
};
| 0
|
solana_public_repos/openbook-dex/openbook-v2
|
solana_public_repos/openbook-dex/openbook-v2/tests/openbook-v2.ts
|
import * as anchor from '@coral-xyz/anchor';
import { Program } from '@coral-xyz/anchor';
import { OpenbookV2 } from '../target/types/openbook_v2';
describe('openbook-v2', () => {
// Configure the client to use the local cluster.
anchor.setProvider(anchor.AnchorProvider.env());
const program = anchor.workspace.OpenbookV2 as Program<OpenbookV2>;
it('Is initialized!', async () => {
// Add your test here.
const tx = await program.methods.initialize().rpc();
console.log('Your transaction signature', tx);
});
});
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/Cargo.toml
|
cargo-features = ["workspace-inheritance"]
[package]
description = "Created with Anchor"
edition = "2021"
name = "openbook-v2"
version = "0.1.0"
[lib]
crate-type = ["cdylib", "lib"]
name = "openbook_v2"
[features]
cpi = ["no-entrypoint"]
default = []
no-entrypoint = []
no-idl = []
no-log-ix-name = []
test-bpf = ["client"]
client = ["solana-sdk", "no-entrypoint"]
# Enables GPL-licensed parts of the code. See LICENSE file.
enable-gpl = []
[dependencies]
anchor-lang = { workspace = true, features = ["event-cpi"] }
anchor-spl = { workspace = true }
arbitrary = { version = "~1.0", features = ["derive"], optional = true }
arrayref = "0.3.6"
bytemuck = { version = "^1.7.2", features = ["derive", "min_const_generics"] }
default-env = "0.1.1"
derivative = "2.2.0"
fixed = { workspace = true, features = ["serde", "borsh", "debug-assert-in-release"] }
itertools = "0.10.3"
num_enum = "0.5.1"
pyth-sdk-solana = { workspace = true }
solana-security-txt = "1.1.1"
solana-program = { workspace = true }
solana-sdk = { workspace = true, optional = true }
static_assertions = "1.1"
switchboard-program = ">=0.2.0"
switchboard-solana = "0.29.99"
[dev-dependencies]
async-trait = "0.1.52"
base64 = "0.13.0"
log = "0.4.14"
env_logger = "0.9.0"
itertools = "0.10.3"
lazy_static = "1.4.0"
num = "0.4.0"
rand = "0.8.4"
solana-program-test = { workspace = true }
solana-logger = { workspace = true }
spl-token = { version = "^3.5.0", features = ["no-entrypoint"] }
spl-associated-token-account = { workspace = true, features = ["no-entrypoint"] }
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests/test_all.rs
|
#![cfg(feature = "test-bpf")]
mod cases;
pub mod program_test;
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests/cases/test_take_order.rs
|
use super::*;
#[tokio::test]
async fn test_take_ask_order() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize::default()).await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
let balance_base = solana.token_account_balance(owner_token_0).await;
let balance_quote = solana.token_account_balance(owner_token_1).await;
send_tx(
solana,
PlaceTakeOrderInstruction {
market,
signer: owner,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
market_base_vault,
market_quote_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
open_orders_admin: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
assert_eq!(
balance_base - 100,
solana.token_account_balance(owner_token_0).await
);
assert_eq!(
balance_quote + 99980,
solana.token_account_balance(owner_token_1).await
);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 20);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
Ok(())
}
#[tokio::test]
async fn test_take_bid_order() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize::default()).await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
let balance_base = solana.token_account_balance(owner_token_0).await;
let balance_quote = solana.token_account_balance(owner_token_1).await;
send_tx(
solana,
PlaceTakeOrderInstruction {
market,
signer: owner,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
market_base_vault,
market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10040,
open_orders_admin: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 1);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
assert_eq!(
balance_base + 100,
solana.token_account_balance(owner_token_0).await
);
assert_eq!(
balance_quote - 100020,
solana.token_account_balance(owner_token_1).await
);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 100020);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
Ok(())
}
#[tokio::test]
async fn test_negative_spread_ask() -> Result<(), TransportError> {
let TestInitialize {
context,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
quote_lot_size: 100,
base_lot_size: 1_000_000_000,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots: 10_000, // $1
max_base_lots: 1000000, // wahtever
max_quote_lots_including_fees: 10_000,
client_order_id: 1,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
// This order doesn't take any due max_quote_lots_including_fees but it's also don't post in on the book
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots: 7_500,
max_base_lots: 1,
max_quote_lots_including_fees: 7_500,
client_order_id: 25,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::AbortTransaction,
remainings: vec![],
},
)
.await
.unwrap();
let position = solana
.get_account::<OpenOrdersAccount>(account_2)
.await
.position;
assert_eq!(position.asks_base_lots, 0);
assert_eq!(position.bids_base_lots, 0);
Ok(())
}
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests/cases/test.rs
|
use super::*;
#[tokio::test]
async fn test_simple_settle() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
payer,
mints,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
close_market_admin_bool: true,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
//
// TEST: Create another market
//
let market_2 = TestKeypair::new();
send_tx(
solana,
CreateMarketInstruction {
collect_fee_admin: collect_fee_admin.pubkey(),
open_orders_admin: None,
close_market_admin: None,
payer,
market: market_2,
quote_lot_size: 10,
base_lot_size: 100,
maker_fee: -200,
taker_fee: 400,
base_mint: mints[0].pubkey,
quote_mint: mints[1].pubkey,
..CreateMarketInstruction::with_new_book_and_heap(solana, None, None).await
},
)
.await
.unwrap();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 20);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
Ok(())
}
#[tokio::test]
async fn test_delegate_settle() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
payer,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
close_market_admin_bool: true,
payer_as_delegate: true,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
let payer_token_0 = context.users[1].token_accounts[0];
let payer_token_1 = context.users[1].token_accounts[1];
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
// delegate settle to own account fails
assert!(send_tx(
solana,
SettleFundsInstruction {
owner: payer,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: payer_token_0,
user_quote_account: payer_token_1,
referrer_account: None,
},
)
.await
.is_err());
// delegate settle to owner succeeds
send_tx(
solana,
SettleFundsInstruction {
owner: payer,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
// owner settle to payer account succeeds
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: payer_token_0,
user_quote_account: payer_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
Ok(())
}
#[tokio::test]
async fn test_cancel_orders() -> Result<(), TransportError> {
let TestInitialize {
context,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: -100,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 10);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
send_tx(
solana,
DepositInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
base_amount: 10000,
quote_amount: 0,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(open_orders_account_1.position.base_free_native, 10100);
assert_eq!(open_orders_account_1.position.quote_free_native, 10);
}
let balance = solana.token_account_balance(owner_token_0).await;
// Assets should be free, let's post the opposite orders
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
assert_eq!(balance, solana.token_account_balance(owner_token_0).await);
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 1);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 10000);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 10);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.asks_base_lots, 1);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
let order_id_to_cancel = solana
.get_account::<OpenOrdersAccount>(account_1)
.await
.open_orders[0]
.id;
send_tx(
solana,
CancelOrderInstruction {
signer: owner,
market,
open_orders_account: account_1,
order_id: order_id_to_cancel,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
}
// Post and cancel Bid
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
}
let order_id_to_cancel = solana
.get_account::<OpenOrdersAccount>(account_1)
.await
.open_orders[0]
.id;
send_tx(
solana,
CancelOrderInstruction {
signer: owner,
market,
open_orders_account: account_1,
order_id: order_id_to_cancel,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_1.position.quote_free_native, 100000);
}
Ok(())
}
#[tokio::test]
async fn test_expired_orders() -> Result<(), TransportError> {
let TestInitialize {
context,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize::default()).await?;
let solana = &context.solana.clone();
// Order with expiry time of 2s
let now_ts: u64 = solana.get_clock().await.unix_timestamp as u64;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: now_ts + 2,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
}
// Advance clock
solana.advance_clock(2).await;
// Bid isn't available anymore, shouldn't be matched. Introduces event on the event_heap
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let market_acc = solana.get_account_boxed::<Market>(market).await;
let event_heap = solana
.get_account_boxed::<EventHeap>(market_acc.event_heap)
.await;
assert_eq!(event_heap.header.count(), 1);
}
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 1);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
// ConsumeEvents removes the bids_base_lots in the Out event
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 100000);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 1);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
// No more events on event_heap
{
let market_acc = solana.get_account::<Market>(market).await;
let event_heap = solana.get_account::<EventHeap>(market_acc.event_heap).await;
assert_eq!(event_heap.header.count(), 0);
}
Ok(())
}
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests/cases/test_fees.rs
|
use super::*;
#[tokio::test]
async fn test_fees_accrued() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
mints,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: -100,
taker_fee: 200,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99980);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 10);
assert_eq!(open_orders_account_2.position.quote_free_native, 99980);
}
let admin_token_1 = solana
.create_associated_token_account(&collect_fee_admin.pubkey(), mints[1].pubkey)
.await;
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 10);
assert_eq!(market.fees_accrued, 10);
assert_eq!(market.fees_to_referrers, 0);
}
send_tx(
solana,
SweepFeesInstruction {
collect_fee_admin,
market,
market_quote_vault,
token_receiver_account: admin_token_1,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 0);
assert_eq!(market.fees_accrued, 10);
assert_eq!(market.fees_to_referrers, 0);
}
Ok(())
}
#[tokio::test]
async fn test_maker_fees() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
mints,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: 200,
taker_fee: 400,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10020,
client_order_id: 30,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
CancelOrderByClientOrderIdInstruction {
open_orders_account: account_1,
market,
signer: owner,
client_order_id: 30,
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 100020);
}
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10020,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
}
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 1);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99960);
}
let admin_token_1 = solana
.create_associated_token_account(&collect_fee_admin.pubkey(), mints[1].pubkey)
.await;
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 40);
assert_eq!(market.fees_accrued, 60);
assert_eq!(market.fees_to_referrers, 0);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: Some(owner_token_1),
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 40);
assert_eq!(market.fees_accrued, 60);
assert_eq!(market.fees_to_referrers, 20);
}
send_tx(
solana,
SweepFeesInstruction {
collect_fee_admin,
market,
market_quote_vault,
token_receiver_account: admin_token_1,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 0);
}
Ok(())
}
// Real simulation. Market maker pays fees but get them back on referral. Jupiter users don't pay fees.
// Only users paying fees are users using a UI limit orders.
#[tokio::test]
async fn test_market_maker_fees() -> Result<(), TransportError> {
let market_base_lot_size = 100;
let market_quote_lot_size = 10;
let TestInitialize {
context,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
account_1,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
quote_lot_size: market_quote_lot_size,
base_lot_size: market_base_lot_size,
maker_fee: 400,
taker_fee: 400,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
let balance_owner_0_before = solana.token_account_balance(owner_token_0).await;
let balance_owner_1_before = solana.token_account_balance(owner_token_1).await;
// Account_1 is a MM and pays fee which will get back later
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10040,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let balance_owner_0_after = solana.token_account_balance(owner_token_0).await;
let balance_owner_1_after = solana.token_account_balance(owner_token_1).await;
assert_eq!(balance_owner_0_before, balance_owner_0_after);
assert_eq!(
balance_owner_1_before,
balance_owner_1_after + 10000 * (market_quote_lot_size as u64) + 40
);
}
let jup_user = context.users[2].key;
let jup_user_token_0 = context.users[2].token_accounts[0];
let jup_user_token_1 = context.users[2].token_accounts[1];
let balance_jup_0_before = solana.token_account_balance(jup_user_token_0).await;
let balance_jup_1_before = solana.token_account_balance(jup_user_token_1).await;
// Jupiter user, takes and don't pay fees
send_tx(
solana,
PlaceTakeOrderInstruction {
market,
signer: jup_user,
user_base_account: jup_user_token_0,
user_quote_account: jup_user_token_1,
market_base_vault,
market_quote_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10040,
open_orders_admin: None,
},
)
.await
.unwrap();
{
let balance_jup_0_after = solana.token_account_balance(jup_user_token_0).await;
let balance_jup_1_after = solana.token_account_balance(jup_user_token_1).await;
assert_eq!(
balance_jup_0_before,
balance_jup_0_after + (market_base_lot_size as u64)
);
assert_eq!(
balance_jup_1_before + 10000 * (market_quote_lot_size as u64),
balance_jup_1_after
);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1],
},
)
.await
.unwrap();
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: Some(owner_token_1),
},
)
.await
.unwrap();
// MM gets back the fee
{
let balance_owner_0_after = solana.token_account_balance(owner_token_0).await;
let balance_owner_1_after = solana.token_account_balance(owner_token_1).await;
assert_eq!(
balance_owner_0_before + (market_base_lot_size as u64),
balance_owner_0_after
);
assert_eq!(
balance_owner_1_before,
balance_owner_1_after + 10000 * (market_quote_lot_size as u64)
);
}
Ok(())
}
#[tokio::test]
async fn test_no_maker_fees_ask() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
mints,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: -200,
taker_fee: 400,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 1);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10004,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 1);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 100020);
}
let admin_token_1 = solana
.create_associated_token_account(&collect_fee_admin.pubkey(), mints[1].pubkey)
.await;
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 0);
assert_eq!(market.fees_accrued, 20);
assert_eq!(market.fees_to_referrers, 0);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: Some(owner_token_1),
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 0);
assert_eq!(market.fees_accrued, 20);
assert_eq!(market.fees_to_referrers, 20);
}
send_tx(
solana,
SweepFeesInstruction {
collect_fee_admin,
market,
market_quote_vault,
token_receiver_account: admin_token_1,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 0);
}
Ok(())
}
#[tokio::test]
async fn test_maker_fees_ask() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
mints,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: 200,
taker_fee: 400,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10020,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 1);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 10004,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 1);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 0);
}
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(open_orders_account_1.position.bids_base_lots, 0);
assert_eq!(open_orders_account_2.position.bids_base_lots, 0);
assert_eq!(open_orders_account_1.position.asks_base_lots, 0);
assert_eq!(open_orders_account_2.position.asks_base_lots, 0);
assert_eq!(open_orders_account_1.position.base_free_native, 100);
assert_eq!(open_orders_account_2.position.base_free_native, 0);
assert_eq!(open_orders_account_1.position.quote_free_native, 0);
assert_eq!(open_orders_account_2.position.quote_free_native, 99980);
}
let admin_token_1 = solana
.create_associated_token_account(&collect_fee_admin.pubkey(), mints[1].pubkey)
.await;
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 20);
assert_eq!(market.fees_accrued, 60);
assert_eq!(market.fees_to_referrers, 0);
}
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: Some(owner_token_1),
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 20);
assert_eq!(market.fees_accrued, 60);
assert_eq!(market.fees_to_referrers, 40);
}
send_tx(
solana,
SweepFeesInstruction {
collect_fee_admin,
market,
market_quote_vault,
token_receiver_account: admin_token_1,
},
)
.await
.unwrap();
{
let market = solana.get_account::<Market>(market).await;
assert_eq!(market.fees_available, 0);
}
Ok(())
}
#[tokio::test]
async fn test_fees_half() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
mints,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: -3700,
taker_fee: 7400,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
let initial_quote_amount = 10000;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: initial_quote_amount,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: initial_quote_amount,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
let market = solana.get_account::<Market>(market).await;
assert_eq!(open_orders_account_1.position.quote_free_native, 370);
assert_eq!(open_orders_account_2.position.quote_free_native, 99260);
assert_eq!(market.referrer_rebates_accrued, 370);
assert_eq!(
(market.referrer_rebates_accrued
+ open_orders_account_2.position.quote_free_native
+ open_orders_account_1.position.quote_free_native) as i64,
initial_quote_amount * 10 // as it's in native quote
);
}
let admin_token_1 = solana
.create_associated_token_account(&collect_fee_admin.pubkey(), mints[1].pubkey)
.await;
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let balance_quote = solana.token_account_balance(market_quote_vault).await;
assert_eq!(balance_quote, 370);
}
send_tx(
solana,
SweepFeesInstruction {
collect_fee_admin,
market,
market_quote_vault,
token_receiver_account: admin_token_1,
},
)
.await
.unwrap();
{
let balance_quote = solana.token_account_balance(market_quote_vault).await;
assert_eq!(balance_quote, 0);
}
// Different fees
let TestInitialize {
context,
collect_fee_admin,
owner,
mints,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: -3200,
taker_fee: 6400,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
let initial_quote_amount = 10000;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: initial_quote_amount,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: initial_quote_amount,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
{
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let open_orders_account_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
let market = solana.get_account::<Market>(market).await;
assert_eq!(open_orders_account_1.position.quote_free_native, 320);
assert_eq!(open_orders_account_2.position.quote_free_native, 99360);
assert_eq!(market.referrer_rebates_accrued, 320);
assert_eq!(
(market.referrer_rebates_accrued
+ open_orders_account_2.position.quote_free_native
+ open_orders_account_1.position.quote_free_native) as i64,
initial_quote_amount * 10 // as it's in native quote
);
}
let admin_token_1 = solana
.create_associated_token_account(&collect_fee_admin.pubkey(), mints[1].pubkey)
.await;
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
{
let balance_quote = solana.token_account_balance(market_quote_vault).await;
assert_eq!(balance_quote, 320);
}
send_tx(
solana,
SweepFeesInstruction {
collect_fee_admin,
market,
market_quote_vault,
token_receiver_account: admin_token_1,
},
)
.await
.unwrap();
{
let balance_quote = solana.token_account_balance(market_quote_vault).await;
assert_eq!(balance_quote, 0);
}
Ok(())
}
#[tokio::test]
async fn test_locked_maker_fees() -> Result<(), TransportError> {
let maker_fee = 350;
let taker_fee = 0;
let TestInitialize {
context,
owner,
owner_token_0: owner_base_ata,
owner_token_1: owner_quote_ata,
market,
market_base_vault,
market_quote_vault,
account_1: maker,
account_2: taker,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee,
taker_fee,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
let place_maker_bid = PlaceOrderInstruction {
open_orders_account: maker,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_quote_ata,
market_vault: market_quote_vault,
side: Side::Bid,
price_lots: 1_000,
max_base_lots: 5,
max_quote_lots_including_fees: 1_000_000_000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
};
let place_taker_ask = PlaceOrderInstruction {
side: Side::Ask,
market_vault: market_base_vault,
open_orders_account: taker,
user_token_account: owner_base_ata,
max_base_lots: 3,
..place_maker_bid.clone()
};
let cancel_maker_orders_ix = CancelAllOrdersInstruction {
open_orders_account: maker,
signer: owner,
market,
};
let settle_maker_funds_ix = SettleFundsInstruction {
owner,
market,
open_orders_account: maker,
market_base_vault,
market_quote_vault,
user_base_account: owner_base_ata,
user_quote_account: owner_quote_ata,
referrer_account: None,
};
send_tx(solana, place_maker_bid.clone()).await.unwrap();
{
let oo = solana.get_account::<OpenOrdersAccount>(maker).await;
assert_eq!(oo.position.locked_maker_fees, 18);
}
send_tx(solana, place_taker_ask).await.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![maker],
},
)
.await
.unwrap();
{
let oo = solana.get_account::<OpenOrdersAccount>(maker).await;
assert_eq!(oo.position.locked_maker_fees, 8);
}
send_tx(solana, cancel_maker_orders_ix.clone())
.await
.unwrap();
// one lamport is still locked due rounding
{
let oo = solana.get_account::<OpenOrdersAccount>(maker).await;
assert_eq!(oo.position.locked_maker_fees, 1);
}
send_tx(solana, place_maker_bid.clone()).await.unwrap();
send_tx(solana, settle_maker_funds_ix.clone())
.await
.unwrap();
// which cannot be claimed yet because there're still bids on the book
{
let oo = solana.get_account::<OpenOrdersAccount>(maker).await;
assert_eq!(oo.position.locked_maker_fees, 1 + 18);
}
// but now if we don't have any pending bid order
send_tx(solana, cancel_maker_orders_ix.clone())
.await
.unwrap();
{
let oo = solana.get_account::<OpenOrdersAccount>(maker).await;
assert_eq!(oo.position.locked_maker_fees, 1);
}
// it's gone!
send_tx(solana, settle_maker_funds_ix.clone())
.await
.unwrap();
{
let oo = solana.get_account::<OpenOrdersAccount>(maker).await;
assert_eq!(oo.position.locked_maker_fees, 0);
}
Ok(())
}
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests/cases/test_fill_or_kill_order.rs
|
use super::*;
use std::sync::Arc;
#[tokio::test]
async fn test_fill_or_kill_order() -> Result<(), TransportError> {
let TestInitialize {
context,
collect_fee_admin,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
price_lots,
tokens,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
maker_fee: 0,
taker_fee: 0,
..TestNewMarketInitialize::default()
})
.await?;
let default = PlaceOrderInstruction {
open_orders_account: Default::default(),
open_orders_admin: None,
market,
signer: owner,
market_vault: Default::default(),
user_token_account: Default::default(),
side: Side::Bid,
price_lots,
max_base_lots: 0,
max_quote_lots_including_fees: 0,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: Default::default(),
remainings: vec![],
};
let solana = &context.solana.clone();
// Set the initial oracle price
set_stub_oracle_price(solana, &tokens[1], collect_fee_admin, 1000.0).await;
let initial_balance_base = solana.token_account_balance(owner_token_0).await;
let initial_balance_quote = solana.token_account_balance(owner_token_1).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_1,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
max_base_lots: 5,
max_quote_lots_including_fees: 50_000,
order_type: PlaceOrderType::Limit,
..default.clone()
},
)
.await
.unwrap();
assert_open_orders(account_1, solana, 5, 0).await;
assert_open_orders(account_2, solana, 0, 0).await;
// small order -> no problem
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
max_base_lots: 1,
max_quote_lots_including_fees: 10_000,
order_type: PlaceOrderType::FillOrKill,
..default.clone()
},
)
.await
.unwrap();
consume_and_settle(
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
account_1,
account_2,
solana,
)
.await;
assert_open_orders(account_1, solana, 4, 0).await;
assert_open_orders(account_2, solana, 0, 0).await;
assert_balance(owner_token_0, solana, initial_balance_base).await;
assert_balance(owner_token_1, solana, initial_balance_quote - 400_000).await;
// big order -> should fail
let result = send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
max_base_lots: 6,
max_quote_lots_including_fees: 60_000,
order_type: PlaceOrderType::FillOrKill,
..default.clone()
},
)
.await;
assert_openbook_error(
&result,
OpenBookError::WouldExecutePartially.error_code(),
"Should kill order".into(),
);
Ok(())
}
async fn assert_open_orders(
account: Pubkey,
solana: &Arc<SolanaCookie>,
bids_base_lots: i64,
asks_base_lots: i64,
) {
let open_orders_account_1 = solana.get_account::<OpenOrdersAccount>(account).await;
assert_eq!(
open_orders_account_1.position.bids_base_lots,
bids_base_lots
);
assert_eq!(
open_orders_account_1.position.asks_base_lots,
asks_base_lots
);
}
async fn assert_balance(token: Pubkey, solana: &Arc<SolanaCookie>, expected_balance: u64) {
let balance_base = solana.token_account_balance(token).await;
assert_eq!(balance_base, expected_balance);
}
#[allow(clippy::too_many_arguments)]
async fn consume_and_settle(
owner: TestKeypair,
owner_token_0: Pubkey,
owner_token_1: Pubkey,
market: Pubkey,
market_base_vault: Pubkey,
market_quote_vault: Pubkey,
account_1: Pubkey,
account_2: Pubkey,
solana: &Arc<SolanaCookie>,
) {
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
send_tx(
solana,
SettleFundsInstruction {
owner,
market,
open_orders_account: account_2,
market_base_vault,
market_quote_vault,
user_base_account: owner_token_0,
user_quote_account: owner_token_1,
referrer_account: None,
},
)
.await
.unwrap();
}
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests/cases/mod.rs
|
pub use anchor_lang::prelude::Pubkey;
pub use anchor_spl::token::TokenAccount;
pub use fixed::types::I80F48;
pub use solana_program_test::*;
pub use solana_sdk::transport::TransportError;
pub use openbook_v2::{error::OpenBookError, state::*};
pub use program_test::*;
pub use setup::*;
pub use super::program_test;
pub use utils::assert_equal_fixed_f64 as assert_equal;
mod test;
mod test_crank;
mod test_create_market;
mod test_edit_order;
mod test_fees;
mod test_fill_or_kill_order;
mod test_indexer;
mod test_multiple_orders;
mod test_oracle_peg;
mod test_order_types;
mod test_permissioned;
mod test_place_order_remaining;
mod test_self_trade;
mod test_take_order;
| 0
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests
|
solana_public_repos/openbook-dex/openbook-v2/programs/openbook-v2/tests/cases/test_oracle_peg.rs
|
use super::*;
#[tokio::test]
async fn test_oracle_peg_enabled() -> Result<(), TransportError> {
let TestInitialize {
context,
owner,
owner_token_1,
market,
market_quote_vault,
account_1,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
with_oracle: false,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
assert!(send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: -1,
peg_limit: 100,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 0,
},
)
.await
.is_err());
Ok(())
}
#[tokio::test]
async fn test_oracle_peg_invalid_oracle() -> Result<(), TransportError> {
let TestInitialize {
context,
owner,
owner_token_1,
market,
market_quote_vault,
account_1,
..
} = TestContext::new_with_market(TestNewMarketInitialize::default()).await?;
let solana = &context.solana.clone();
solana.advance_clock(200).await;
assert!(send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: -1,
peg_limit: 100,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 0,
},
)
.await
.is_err());
Ok(())
}
#[tokio::test]
async fn test_oracle_peg() -> Result<(), TransportError> {
let market_base_lot_size = 10000;
let market_quote_lot_size = 10;
let TestInitialize {
context,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
account_1,
account_2,
tokens,
collect_fee_admin,
bids,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
quote_lot_size: market_quote_lot_size,
base_lot_size: market_base_lot_size,
maker_fee: -0,
taker_fee: 0,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
let price_lots = {
let market = solana.get_account::<Market>(market).await;
market.native_price_to_lot(I80F48::ONE).unwrap()
};
assert_eq!(price_lots, market_base_lot_size / market_quote_lot_size);
let place_pegged_ix = PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: -1,
peg_limit: 1,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 0,
};
// posting invalid orderes by peg_limit are skipped
send_tx(solana, place_pegged_ix.clone()).await.unwrap();
let bids_data = solana.get_account_boxed::<BookSide>(bids).await;
assert_eq!(bids_data.roots[1].leaf_count, 0);
// but not if they are inside the peg_limit
send_tx(
solana,
PlaceOrderPeggedInstruction {
peg_limit: 1000,
..place_pegged_ix
},
)
.await
.unwrap();
let bids_data = solana.get_account_boxed::<BookSide>(bids).await;
assert_eq!(bids_data.roots[1].leaf_count, 1);
let order = solana
.get_account::<OpenOrdersAccount>(account_1)
.await
.open_orders[0];
assert_eq!(order.side_and_tree(), SideAndOrderTree::BidOraclePegged);
send_tx(
solana,
CancelOrderInstruction {
signer: owner,
market,
open_orders_account: account_1,
order_id: order.id,
},
)
.await
.unwrap();
assert_no_orders(solana, account_1).await;
let balance_before = solana.token_account_balance(owner_token_1).await;
let max_quote_lots_including_fees = 100_000;
// TEST: Place a pegged bid, take it with a direct and pegged ask, and consume events
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: 0,
peg_limit: price_lots,
max_base_lots: 2,
max_quote_lots_including_fees,
client_order_id: 5,
},
)
.await
.unwrap();
let balance_after = solana.token_account_balance(owner_token_1).await;
// Max quantity being subtracted from owner is max_quote_lots_including_fees
{
assert!(
balance_before
- ((max_quote_lots_including_fees as u64) * (market_quote_lot_size as u64))
<= balance_after
);
}
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 6,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_2,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_offset: 0,
peg_limit: price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 7,
},
)
.await
.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
assert_no_orders(solana, account_1).await;
// TEST: an ask at current oracle price does not match
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 60,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
CancelOrderByClientOrderIdInstruction {
open_orders_account: account_2,
market,
signer: owner,
client_order_id: 60,
},
)
.await
.unwrap();
// TEST: Change the oracle, now the ask matches
set_stub_oracle_price(solana, &tokens[0], collect_fee_admin, 1.002).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 2,
max_quote_lots_including_fees: 100_000,
client_order_id: 61,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
assert_no_orders(solana, account_1).await;
// restore the oracle to default
set_stub_oracle_price(solana, &tokens[0], collect_fee_admin, 1.0).await;
// TEST: order is cancelled when the price exceeds the peg limit
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: -1,
peg_limit: price_lots + 2,
max_base_lots: 2,
max_quote_lots_including_fees: 100_000,
client_order_id: 5,
},
)
.await
.unwrap();
// order is still matchable when exactly at the peg limit
set_stub_oracle_price(solana, &tokens[0], collect_fee_admin, 1.003).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots: price_lots + 2,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 62,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
{
let oo = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert!(oo.find_order_with_client_order_id(62).is_none());
}
// but once the adjusted price is > the peg limit, it's gone
set_stub_oracle_price(solana, &tokens[0], collect_fee_admin, 1.004).await;
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots: price_lots + 3,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 63,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
CancelOrderByClientOrderIdInstruction {
open_orders_account: account_2,
market,
signer: owner,
client_order_id: 63,
},
)
.await
.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
assert_no_orders(solana, account_1).await;
Ok(())
}
#[tokio::test]
async fn test_take_peg_invalid_oracle() -> Result<(), TransportError> {
let TestInitialize {
context,
owner,
owner_token_0,
owner_token_1,
market,
market_base_vault,
market_quote_vault,
account_1,
account_2,
price_lots,
tokens,
collect_fee_admin,
..
} = TestContext::new_with_market(TestNewMarketInitialize::default()).await?;
let solana = &context.solana.clone();
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: -1,
peg_limit: 100,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 0,
},
)
.await
.unwrap();
{
let oo = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(oo.position.bids_base_lots, 1);
}
let take_order_ix = PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_token_0,
market_vault: market_base_vault,
side: Side::Ask,
price_lots,
max_base_lots: 1,
max_quote_lots_including_fees: 100_000,
client_order_id: 6,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![account_1],
};
solana.advance_clock(200).await;
// stale oracle, order will be posted since matching with the oracle peg component of the book
// is not possible
send_tx(solana, take_order_ix.clone()).await.unwrap();
{
let oo_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let oo_2 = solana.get_account::<OpenOrdersAccount>(account_2).await;
assert_eq!(oo_1.position.bids_base_lots, 1);
assert_eq!(oo_2.position.asks_base_lots, 1);
}
// but once the oracle is back, the match will be made
set_stub_oracle_price(solana, &tokens[0], collect_fee_admin, 1000.0).await;
send_tx(solana, take_order_ix.clone()).await.unwrap();
{
let oo = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(oo.position.bids_base_lots, 0);
}
Ok(())
}
#[tokio::test]
async fn test_oracle_peg_limit() -> Result<(), TransportError> {
let market_base_lot_size = 10000;
let market_quote_lot_size = 10;
let TestInitialize {
context,
owner,
owner_token_1,
market,
market_quote_vault,
account_1,
bids,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
quote_lot_size: market_quote_lot_size,
base_lot_size: market_base_lot_size,
maker_fee: -0,
taker_fee: 0,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
let price_lots = {
let market = solana.get_account::<Market>(market).await;
market.native_price_to_lot(I80F48::ONE).unwrap()
};
assert_eq!(price_lots, market_base_lot_size / market_quote_lot_size);
let balance_before = solana.token_account_balance(owner_token_1).await;
let max_quote_lots_including_fees = 100_000;
// TEST: Place a pegged bid, can't post in book due insufficient funds
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: -100,
peg_limit: price_lots + 100_000,
max_base_lots: 2,
max_quote_lots_including_fees,
client_order_id: 5,
},
)
.await
.unwrap();
assert_no_orders(solana, account_1).await;
// Upgrade max quantity
let max_quote_lots_including_fees = 101_000;
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_token_1,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: -100,
peg_limit: price_lots + 100_000,
max_base_lots: 2,
max_quote_lots_including_fees,
client_order_id: 5,
},
)
.await
.unwrap();
let bids_data = solana.get_account_boxed::<BookSide>(bids).await;
assert_eq!(bids_data.roots[1].leaf_count, 1);
let balance_after = solana.token_account_balance(owner_token_1).await;
// Max quantity being subtracted from owner is max_quote_lots_including_fees
{
assert_eq!(
balance_before
- ((max_quote_lots_including_fees as u64) * (market_quote_lot_size as u64)),
balance_after
);
}
Ok(())
}
#[tokio::test]
async fn test_locked_amounts() -> Result<(), TransportError> {
let quote_lot_size = 10;
let base_lot_size = 100;
let maker_fee = 200;
let taker_fee = 400;
let TestInitialize {
context,
owner,
owner_token_0: owner_base_ata,
owner_token_1: owner_quote_ata,
market,
market_base_vault,
market_quote_vault,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
quote_lot_size,
base_lot_size,
maker_fee,
taker_fee,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
let place_bid_0_ix = PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_quote_ata,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: 0,
peg_limit: 30,
max_base_lots: 1_000,
max_quote_lots_including_fees: 100_000_000,
client_order_id: 0,
};
let place_ask_1_ix = PlaceOrderPeggedInstruction {
side: Side::Ask,
peg_limit: 10,
market_vault: market_base_vault,
user_token_account: owner_base_ata,
open_orders_account: account_2,
..place_bid_0_ix.clone()
};
let settle_funds_0_ix = SettleFundsInstruction {
owner,
market,
open_orders_account: account_1,
market_base_vault,
market_quote_vault,
user_base_account: owner_base_ata,
user_quote_account: owner_quote_ata,
referrer_account: None,
};
let settle_funds_1_ix = SettleFundsInstruction {
open_orders_account: account_2,
..settle_funds_0_ix.clone()
};
let consume_events_ix = ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
};
let init_balances = (
solana.token_account_balance(owner_base_ata).await,
solana.token_account_balance(owner_quote_ata).await,
);
// Cancel bid order
{
send_tx(solana, place_bid_0_ix.clone()).await.unwrap();
let balances = (
solana.token_account_balance(owner_base_ata).await,
solana.token_account_balance(owner_quote_ata).await + 300_000 + 60,
);
assert_eq!(init_balances, balances);
send_tx(
solana,
CancelAllOrdersInstruction {
open_orders_account: account_1,
market,
signer: owner,
},
)
.await
.unwrap();
send_tx(solana, settle_funds_0_ix.clone()).await.unwrap();
let balances = (
solana.token_account_balance(owner_base_ata).await,
solana.token_account_balance(owner_quote_ata).await,
);
assert_eq!(init_balances, balances);
}
// Cancel ask order
{
send_tx(solana, place_ask_1_ix.clone()).await.unwrap();
let balances = (
solana.token_account_balance(owner_base_ata).await + 100_000,
solana.token_account_balance(owner_quote_ata).await,
);
assert_eq!(init_balances, balances);
send_tx(
solana,
CancelAllOrdersInstruction {
open_orders_account: account_2,
market,
signer: owner,
},
)
.await
.unwrap();
send_tx(solana, settle_funds_1_ix.clone()).await.unwrap();
let balances = (
solana.token_account_balance(owner_base_ata).await,
solana.token_account_balance(owner_quote_ata).await,
);
assert_eq!(init_balances, balances);
}
// Place & take a bid
{
send_tx(solana, place_bid_0_ix.clone()).await.unwrap();
send_tx(solana, place_ask_1_ix.clone()).await.unwrap();
send_tx(solana, consume_events_ix.clone()).await.unwrap();
let (position_0, position_1) = {
let oo_0 = solana.get_account::<OpenOrdersAccount>(account_1).await;
let oo_1 = solana.get_account::<OpenOrdersAccount>(account_2).await;
(oo_0.position, oo_1.position)
};
assert_eq!(position_0.quote_free_native, 200_000 + 40);
assert_eq!(position_0.base_free_native, 100_000);
assert_eq!(position_1.quote_free_native, 100_000 - 40);
assert_eq!(position_1.base_free_native, 0);
}
Ok(())
}
#[tokio::test]
async fn test_bids_quote_lots() -> Result<(), TransportError> {
let quote_lot_size = 10;
let base_lot_size = 100;
let maker_fee = 200;
let taker_fee = 400;
let TestInitialize {
context,
owner,
owner_token_0: owner_base_ata,
owner_token_1: owner_quote_ata,
market,
market_base_vault,
market_quote_vault,
account_1,
account_2,
..
} = TestContext::new_with_market(TestNewMarketInitialize {
quote_lot_size,
base_lot_size,
maker_fee,
taker_fee,
..TestNewMarketInitialize::default()
})
.await?;
let solana = &context.solana.clone();
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_1,
market,
signer: owner,
user_token_account: owner_quote_ata,
market_vault: market_quote_vault,
side: Side::Bid,
price_offset: 0,
peg_limit: 20,
max_base_lots: 100,
max_quote_lots_including_fees: 100_000_000,
client_order_id: 0,
},
)
.await
.unwrap();
// first partial match with another oracle peg order
send_tx(
solana,
PlaceOrderPeggedInstruction {
open_orders_account: account_2,
market,
signer: owner,
user_token_account: owner_base_ata,
market_vault: market_base_vault,
side: Side::Ask,
price_offset: 0,
peg_limit: 20,
max_base_lots: 30,
max_quote_lots_including_fees: 100_000_000,
client_order_id: 0,
},
)
.await
.unwrap();
// not yet unlocked!
let oo_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(oo_1.position.bids_quote_lots, 2_000);
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
let oo_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(oo_1.position.bids_quote_lots, 1_400);
// and fill the rest of the order with a normal ask
send_tx(
solana,
PlaceOrderInstruction {
open_orders_account: account_2,
open_orders_admin: None,
market,
signer: owner,
user_token_account: owner_base_ata,
market_vault: market_base_vault,
side: Side::Ask,
price_lots: 1,
max_base_lots: 70,
max_quote_lots_including_fees: 100_000_000,
client_order_id: 0,
expiry_timestamp: 0,
order_type: PlaceOrderType::Limit,
self_trade_behavior: SelfTradeBehavior::default(),
remainings: vec![],
},
)
.await
.unwrap();
send_tx(
solana,
ConsumeEventsInstruction {
consume_events_admin: None,
market,
open_orders_accounts: vec![account_1, account_2],
},
)
.await
.unwrap();
let oo_1 = solana.get_account::<OpenOrdersAccount>(account_1).await;
assert_eq!(oo_1.position.bids_quote_lots, 0);
Ok(())
}
async fn assert_no_orders(solana: &SolanaCookie, account_1: Pubkey) {
let open_orders_account = solana.get_account::<OpenOrdersAccount>(account_1).await;
for oo in open_orders_account.open_orders.iter() {
assert!(oo.id == 0);
assert!(oo.side_and_tree() == SideAndOrderTree::BidFixed);
assert!(oo.client_id == 0);
}
}
| 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.