repo_id
stringclasses 563
values | file_path
stringlengths 40
166
| content
stringlengths 1
2.94M
| __index_level_0__
int64 0
0
|
|---|---|---|---|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/package.json
|
{
"license": "ISC",
"scripts": {
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@pythnetwork/price-service-client": "^1.9.0",
"@pythnetwork/pyth-solana-receiver": "^0.8.0",
"@solana/spl-token": "^0.4.8",
"@solana/web3.js": "1.94.0",
"anchor-bankrun": "^0.4.0",
"solana-bankrun": "^0.2.0",
"spl-token-bankrun": "0.2.5",
"rpc-websockets": "7.11.0"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"chai": "^4.3.4",
"mocha": "^9.0.3",
"prettier": "^2.6.2",
"ts-mocha": "^10.0.0",
"typescript": "^4.3.5"
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/tsconfig.json
|
{
"compilerOptions": {
"types": ["mocha", "chai"],
"typeRoots": ["./node_modules/@types"],
"lib": ["es2015"],
"module": "commonjs",
"target": "es6",
"esModuleInterop": true
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/jest.config.ts
|
/* eslint-disable */
import { readFileSync } from 'fs';
// Reading the SWC compilation config and remove the "exclude"
// for the test files to be compiled by SWC
const { exclude: _, ...swcJestConfig } = JSON.parse(
readFileSync(`${__dirname}/.swcrc`, 'utf-8')
);
// disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves.
// If we do not disable this, SWC Core will read .swcrc and won't transform our test files due to "exclude"
if (swcJestConfig.swcrc === undefined) {
swcJestConfig.swcrc = false;
}
// Uncomment if using global setup/teardown files being transformed via swc
// https://nx.dev/packages/jest/documents/overview#global-setup/teardown-with-nx-libraries
// jest needs EsModule Interop to find the default exported setup/teardown functions
// swcJestConfig.module.noInterop = false;
export default {
displayName: 'anchor',
preset: '../jest.preset.js',
transform: {
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
},
moduleFileExtensions: ['ts', 'js', 'html'],
testEnvironment: '',
coverageDirectory: '../coverage/anchor',
};
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/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/developer-bootcamp-2024/project-10-lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/tests/bankrun.spec.ts
|
import { describe, it } from 'node:test';
import { BN, Program } from '@coral-xyz/anchor';
import { BankrunProvider } from 'anchor-bankrun';
import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
import { createAccount, createMint, mintTo } from 'spl-token-bankrun';
import { PythSolanaReceiver } from '@pythnetwork/pyth-solana-receiver';
import { startAnchor, BanksClient, ProgramTestContext } from 'solana-bankrun';
import { PublicKey, Keypair, Connection } from '@solana/web3.js';
// @ts-ignore
import IDL from '../target/idl/lending_protocol.json';
import { LendingProtocol } from '../target/types/lending_protocol';
import { BankrunContextWrapper } from '../bankrun-utils/bankrunConnection';
describe('Lending Smart Contract Tests', async () => {
let signer: Keypair;
let usdcBankAccount: PublicKey;
let solBankAccount: PublicKey;
let solTokenAccount: PublicKey;
let provider: BankrunProvider;
let program: Program<LendingProtocol>;
let banksClient: BanksClient;
let context: ProgramTestContext;
let bankrunContextWrapper: BankrunContextWrapper;
const pyth = new PublicKey('7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE');
const devnetConnection = new Connection('https://api.devnet.solana.com');
const accountInfo = await devnetConnection.getAccountInfo(pyth);
context = await startAnchor(
'',
[{ name: 'lending', programId: new PublicKey(IDL.address) }],
[
{
address: pyth,
info: accountInfo,
},
]
);
provider = new BankrunProvider(context);
bankrunContextWrapper = new BankrunContextWrapper(context);
const connection = bankrunContextWrapper.connection.toConnection();
const pythSolanaReceiver = new PythSolanaReceiver({
connection,
wallet: provider.wallet,
});
const SOL_PRICE_FEED_ID =
'0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a';
const solUsdPriceFeedAccount = pythSolanaReceiver
.getPriceFeedAccountAddress(0, SOL_PRICE_FEED_ID)
.toBase58();
const solUsdPriceFeedAccountPubkey = new PublicKey(solUsdPriceFeedAccount);
const feedAccountInfo = await devnetConnection.getAccountInfo(
solUsdPriceFeedAccountPubkey
);
context.setAccount(solUsdPriceFeedAccountPubkey, feedAccountInfo);
console.log('pricefeed:', solUsdPriceFeedAccount);
console.log('Pyth Account Info:', accountInfo);
program = new Program<LendingProtocol>(IDL as LendingProtocol, provider);
banksClient = context.banksClient;
signer = provider.wallet.payer;
const mintUSDC = await createMint(
// @ts-ignore
banksClient,
signer,
signer.publicKey,
null,
2
);
const mintSOL = await createMint(
// @ts-ignore
banksClient,
signer,
signer.publicKey,
null,
2
);
[usdcBankAccount] = PublicKey.findProgramAddressSync(
[Buffer.from('treasury'), mintUSDC.toBuffer()],
program.programId
);
[solBankAccount] = PublicKey.findProgramAddressSync(
[Buffer.from('treasury'), mintSOL.toBuffer()],
program.programId
);
[solTokenAccount] = PublicKey.findProgramAddressSync(
[Buffer.from('treasury'), mintSOL.toBuffer()],
program.programId
);
console.log('USDC Bank Account', usdcBankAccount.toBase58());
console.log('SOL Bank Account', solBankAccount.toBase58());
it('Test Init User', async () => {
const initUserTx = await program.methods
.initUser(mintUSDC)
.accounts({
signer: signer.publicKey,
})
.rpc({ commitment: 'confirmed' });
console.log('Create User Account', initUserTx);
});
it('Test Init and Fund USDC Bank', async () => {
const initUSDCBankTx = await program.methods
.initBank(new BN(1), new BN(1))
.accounts({
signer: signer.publicKey,
mint: mintUSDC,
tokenProgram: TOKEN_PROGRAM_ID,
})
.rpc({ commitment: 'confirmed' });
console.log('Create USDC Bank Account', initUSDCBankTx);
const amount = 10_000 * 10 ** 9;
const mintTx = await mintTo(
// @ts-ignores
banksClient,
signer,
mintUSDC,
usdcBankAccount,
signer,
amount
);
console.log('Mint to USDC Bank Signature:', mintTx);
});
it('Test Init amd Fund SOL Bank', async () => {
const initSOLBankTx = await program.methods
.initBank(new BN(1), new BN(1))
.accounts({
signer: signer.publicKey,
mint: mintSOL,
tokenProgram: TOKEN_PROGRAM_ID,
})
.rpc({ commitment: 'confirmed' });
console.log('Create SOL Bank Account', initSOLBankTx);
const amount = 10_000 * 10 ** 9;
const mintSOLTx = await mintTo(
// @ts-ignores
banksClient,
signer,
mintSOL,
solBankAccount,
signer,
amount
);
console.log('Mint to SOL Bank Signature:', mintSOLTx);
});
it('Create and Fund Token Account', async () => {
const USDCTokenAccount = await createAccount(
// @ts-ignores
banksClient,
signer,
mintUSDC,
signer.publicKey
);
console.log('USDC Token Account Created:', USDCTokenAccount);
const amount = 10_000 * 10 ** 9;
const mintUSDCTx = await mintTo(
// @ts-ignores
banksClient,
signer,
mintUSDC,
USDCTokenAccount,
signer,
amount
);
console.log('Mint to USDC Bank Signature:', mintUSDCTx);
});
it('Test Deposit', async () => {
const depositUSDC = await program.methods
.deposit(new BN(100000000000))
.accounts({
signer: signer.publicKey,
mint: mintUSDC,
tokenProgram: TOKEN_PROGRAM_ID,
})
.rpc({ commitment: 'confirmed' });
console.log('Deposit USDC', depositUSDC);
});
it('Test Borrow', async () => {
const borrowSOL = await program.methods
.borrow(new BN(1))
.accounts({
signer: signer.publicKey,
mint: mintSOL,
tokenProgram: TOKEN_PROGRAM_ID,
priceUpdate: solUsdPriceFeedAccount,
})
.rpc({ commitment: 'confirmed' });
console.log('Borrow SOL', borrowSOL);
});
it('Test Repay', async () => {
const repaySOL = await program.methods
.repay(new BN(1))
.accounts({
signer: signer.publicKey,
mint: mintSOL,
tokenProgram: TOKEN_PROGRAM_ID,
})
.rpc({ commitment: 'confirmed' });
console.log('Repay SOL', repaySOL);
});
it('Test Withdraw', async () => {
const withdrawUSDC = await program.methods
.withdraw(new BN(100))
.accounts({
signer: signer.publicKey,
mint: mintUSDC,
tokenProgram: TOKEN_PROGRAM_ID,
})
.rpc({ commitment: 'confirmed' });
console.log('Withdraw USDC', withdrawUSDC);
});
});
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/bankrun-utils/bankrunConnection.ts
|
import {
TransactionConfirmationStatus,
AccountInfo,
Keypair,
PublicKey,
Transaction,
RpcResponseAndContext,
Commitment,
TransactionSignature,
SignatureStatusConfig,
SignatureStatus,
GetVersionedTransactionConfig,
GetTransactionConfig,
VersionedTransaction,
SimulateTransactionConfig,
SimulatedTransactionResponse,
TransactionReturnData,
TransactionError,
SignatureResultCallback,
ClientSubscriptionId,
Connection as SolanaConnection,
SystemProgram,
Blockhash,
LogsFilter,
LogsCallback,
AccountChangeCallback,
LAMPORTS_PER_SOL,
} from '@solana/web3.js';
import {
ProgramTestContext,
BanksClient,
BanksTransactionResultWithMeta,
Clock,
} from 'solana-bankrun';
import { BankrunProvider } from 'anchor-bankrun';
import bs58 from 'bs58';
import { BN, Wallet } from '@coral-xyz/anchor';
import { Account, unpackAccount } from '@solana/spl-token';
export type Connection = SolanaConnection | BankrunConnection;
type BankrunTransactionMetaNormalized = {
logMessages: string[];
err: TransactionError;
};
type BankrunTransactionRespose = {
slot: number;
meta: BankrunTransactionMetaNormalized;
};
export class BankrunContextWrapper {
public readonly connection: BankrunConnection;
public readonly context: ProgramTestContext;
public readonly provider: BankrunProvider;
public readonly commitment: Commitment = 'confirmed';
constructor(context: ProgramTestContext) {
this.context = context;
this.provider = new BankrunProvider(context);
this.connection = new BankrunConnection(
this.context.banksClient,
this.context
);
}
async sendTransaction(
tx: Transaction,
additionalSigners?: Keypair[]
): Promise<TransactionSignature> {
tx.recentBlockhash = (await this.getLatestBlockhash()).toString();
tx.feePayer = this.context.payer.publicKey;
if (!additionalSigners) {
additionalSigners = [];
}
tx.sign(this.context.payer, ...additionalSigners);
return await this.connection.sendTransaction(tx);
}
async getMinimumBalanceForRentExemption(_: number): Promise<number> {
return 10 * LAMPORTS_PER_SOL;
}
async fundKeypair(
keypair: Keypair | Wallet,
lamports: number | bigint
): Promise<TransactionSignature> {
const ixs = [
SystemProgram.transfer({
fromPubkey: this.context.payer.publicKey,
toPubkey: keypair.publicKey,
lamports,
}),
];
const tx = new Transaction().add(...ixs);
return await this.sendTransaction(tx);
}
async getLatestBlockhash(): Promise<Blockhash> {
const blockhash = await this.connection.getLatestBlockhash('finalized');
return blockhash.blockhash;
}
printTxLogs(signature: string): void {
this.connection.printTxLogs(signature);
}
async moveTimeForward(increment: number): Promise<void> {
const currentClock = await this.context.banksClient.getClock();
const newUnixTimestamp = currentClock.unixTimestamp + BigInt(increment);
const newClock = new Clock(
currentClock.slot,
currentClock.epochStartTimestamp,
currentClock.epoch,
currentClock.leaderScheduleEpoch,
newUnixTimestamp
);
await this.context.setClock(newClock);
}
async setTimestamp(unix_timestamp: number): Promise<void> {
const currentClock = await this.context.banksClient.getClock();
const newUnixTimestamp = BigInt(unix_timestamp);
const newClock = new Clock(
currentClock.slot,
currentClock.epochStartTimestamp,
currentClock.epoch,
currentClock.leaderScheduleEpoch,
newUnixTimestamp
);
await this.context.setClock(newClock);
}
}
export class BankrunConnection {
private readonly _banksClient: BanksClient;
private readonly context: ProgramTestContext;
private transactionToMeta: Map<
TransactionSignature,
BanksTransactionResultWithMeta
> = new Map();
private clock: Clock;
private nextClientSubscriptionId = 0;
private onLogCallbacks = new Map<number, LogsCallback>();
private onAccountChangeCallbacks = new Map<
number,
[PublicKey, AccountChangeCallback]
>();
constructor(banksClient: BanksClient, context: ProgramTestContext) {
this._banksClient = banksClient;
this.context = context;
}
getSlot(): Promise<bigint> {
return this._banksClient.getSlot();
}
toConnection(): SolanaConnection {
return this as unknown as SolanaConnection;
}
async getTokenAccount(publicKey: PublicKey): Promise<Account> {
const info = await this.getAccountInfo(publicKey);
return unpackAccount(publicKey, info, info.owner);
}
async getMultipleAccountsInfo(
publicKeys: PublicKey[],
_commitmentOrConfig?: Commitment
): Promise<AccountInfo<Buffer>[]> {
const accountInfos = [];
for (const publicKey of publicKeys) {
const accountInfo = await this.getAccountInfo(publicKey);
accountInfos.push(accountInfo);
}
return accountInfos;
}
async getAccountInfo(
publicKey: PublicKey
): Promise<null | AccountInfo<Buffer>> {
const parsedAccountInfo = await this.getParsedAccountInfo(publicKey);
return parsedAccountInfo ? parsedAccountInfo.value : null;
}
async getAccountInfoAndContext(
publicKey: PublicKey,
_commitment?: Commitment
): Promise<RpcResponseAndContext<null | AccountInfo<Buffer>>> {
return await this.getParsedAccountInfo(publicKey);
}
async sendRawTransaction(
rawTransaction: Buffer | Uint8Array | Array<number>,
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
_options?: any
): Promise<TransactionSignature> {
const tx = Transaction.from(rawTransaction);
const signature = await this.sendTransaction(tx);
return signature;
}
async sendTransaction(tx: Transaction): Promise<TransactionSignature> {
const banksTransactionMeta = await this._banksClient.tryProcessTransaction(
tx
);
if (banksTransactionMeta.result) {
throw new Error(banksTransactionMeta.result);
}
const signature = bs58.encode(tx.signatures[0].signature);
this.transactionToMeta.set(signature, banksTransactionMeta);
let finalizedCount = 0;
while (finalizedCount < 10) {
const signatureStatus = (await this.getSignatureStatus(signature)).value
.confirmationStatus;
if (signatureStatus.toString() == '"finalized"') {
finalizedCount += 1;
}
}
// update the clock slot/timestamp
// sometimes race condition causes failures so we retry
try {
await this.updateSlotAndClock();
} catch (e) {
await this.updateSlotAndClock();
}
if (this.onLogCallbacks.size > 0) {
const transaction = await this.getTransaction(signature);
const context = { slot: transaction.slot };
const logs = {
logs: transaction.meta.logMessages,
err: transaction.meta.err,
signature,
};
for (const logCallback of this.onLogCallbacks.values()) {
logCallback(logs, context);
}
}
for (const [
publicKey,
callback,
] of this.onAccountChangeCallbacks.values()) {
const accountInfo = await this.getParsedAccountInfo(publicKey);
callback(accountInfo.value, accountInfo.context);
}
return signature;
}
private async updateSlotAndClock() {
const currentSlot = await this.getSlot();
const nextSlot = currentSlot + BigInt(1);
this.context.warpToSlot(nextSlot);
const currentClock = await this._banksClient.getClock();
const newClock = new Clock(
nextSlot,
currentClock.epochStartTimestamp,
currentClock.epoch,
currentClock.leaderScheduleEpoch,
currentClock.unixTimestamp + BigInt(1)
);
this.context.setClock(newClock);
this.clock = newClock;
}
getTime(): number {
return Number(this.clock.unixTimestamp);
}
async getParsedAccountInfo(
publicKey: PublicKey
): Promise<RpcResponseAndContext<AccountInfo<Buffer>>> {
const accountInfoBytes = await this._banksClient.getAccount(publicKey);
if (accountInfoBytes === null) {
return {
context: { slot: Number(await this._banksClient.getSlot()) },
value: null,
};
}
accountInfoBytes.data = Buffer.from(accountInfoBytes.data);
const accountInfoBuffer = accountInfoBytes as AccountInfo<Buffer>;
return {
context: { slot: Number(await this._banksClient.getSlot()) },
value: accountInfoBuffer,
};
}
async getLatestBlockhash(commitment?: Commitment): Promise<
Readonly<{
blockhash: string;
lastValidBlockHeight: number;
}>
> {
const blockhashAndBlockheight = await this._banksClient.getLatestBlockhash(
commitment
);
return {
blockhash: blockhashAndBlockheight[0],
lastValidBlockHeight: Number(blockhashAndBlockheight[1]),
};
}
async getSignatureStatus(
signature: string,
_config?: SignatureStatusConfig
): Promise<RpcResponseAndContext<null | SignatureStatus>> {
const transactionStatus = await this._banksClient.getTransactionStatus(
signature
);
if (transactionStatus === null) {
return {
context: { slot: Number(await this._banksClient.getSlot()) },
value: null,
};
}
return {
context: { slot: Number(await this._banksClient.getSlot()) },
value: {
slot: Number(transactionStatus.slot),
confirmations: Number(transactionStatus.confirmations),
err: transactionStatus.err,
confirmationStatus:
transactionStatus.confirmationStatus as TransactionConfirmationStatus,
},
};
}
/**
* There's really no direct equivalent to getTransaction exposed by SolanaProgramTest, so we do the best that we can here - it's a little hacky.
*/
async getTransaction(
signature: string,
_rawConfig?: GetTransactionConfig | GetVersionedTransactionConfig
): Promise<BankrunTransactionRespose | null> {
const txMeta = this.transactionToMeta.get(
signature as TransactionSignature
);
if (txMeta === undefined) {
return null;
}
const transactionStatus = await this._banksClient.getTransactionStatus(
signature
);
const meta: BankrunTransactionMetaNormalized = {
logMessages: txMeta.meta.logMessages,
err: txMeta.result,
};
return {
slot: Number(transactionStatus.slot),
meta,
};
}
findComputeUnitConsumption(signature: string): bigint {
const txMeta = this.transactionToMeta.get(
signature as TransactionSignature
);
if (txMeta === undefined) {
throw new Error('Transaction not found');
}
return txMeta.meta.computeUnitsConsumed;
}
printTxLogs(signature: string): void {
const txMeta = this.transactionToMeta.get(
signature as TransactionSignature
);
if (txMeta === undefined) {
throw new Error('Transaction not found');
}
console.log(txMeta.meta.logMessages);
}
async simulateTransaction(
transaction: Transaction | VersionedTransaction,
_config?: SimulateTransactionConfig
): Promise<RpcResponseAndContext<SimulatedTransactionResponse>> {
const simulationResult = await this._banksClient.simulateTransaction(
transaction
);
const returnDataProgramId =
simulationResult.meta?.returnData?.programId.toBase58();
const returnDataNormalized = Buffer.from(
simulationResult.meta?.returnData?.data
).toString('base64');
const returnData: TransactionReturnData = {
programId: returnDataProgramId,
data: [returnDataNormalized, 'base64'],
};
return {
context: { slot: Number(await this._banksClient.getSlot()) },
value: {
err: simulationResult.result,
logs: simulationResult.meta.logMessages,
accounts: undefined,
unitsConsumed: Number(simulationResult.meta.computeUnitsConsumed),
returnData,
},
};
}
onSignature(
signature: string,
callback: SignatureResultCallback,
commitment?: Commitment
): ClientSubscriptionId {
const txMeta = this.transactionToMeta.get(
signature as TransactionSignature
);
this._banksClient.getSlot(commitment).then((slot) => {
if (txMeta) {
callback({ err: txMeta.result }, { slot: Number(slot) });
}
});
return 0;
}
async removeSignatureListener(_clientSubscriptionId: number): Promise<void> {
// Nothing actually has to happen here! Pretty cool, huh?
// This function signature only exists to match the web3js interface
}
onLogs(
filter: LogsFilter,
callback: LogsCallback,
_commitment?: Commitment
): ClientSubscriptionId {
const subscriptId = this.nextClientSubscriptionId;
this.onLogCallbacks.set(subscriptId, callback);
this.nextClientSubscriptionId += 1;
return subscriptId;
}
async removeOnLogsListener(
clientSubscriptionId: ClientSubscriptionId
): Promise<void> {
this.onLogCallbacks.delete(clientSubscriptionId);
}
onAccountChange(
publicKey: PublicKey,
callback: AccountChangeCallback,
// @ts-ignore
_commitment?: Commitment
): ClientSubscriptionId {
const subscriptId = this.nextClientSubscriptionId;
this.onAccountChangeCallbacks.set(subscriptId, [publicKey, callback]);
this.nextClientSubscriptionId += 1;
return subscriptId;
}
async removeAccountChangeListener(
clientSubscriptionId: ClientSubscriptionId
): Promise<void> {
this.onAccountChangeCallbacks.delete(clientSubscriptionId);
}
async getMinimumBalanceForRentExemption(_: number): Promise<number> {
return 10 * LAMPORTS_PER_SOL;
}
}
export function asBN(value: number | bigint): BN {
return new BN(Number(value));
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/Cargo.toml
|
[package]
name = "lending"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "lending"
[features]
default = []
cpi = ["no-entrypoint"]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]
[dependencies]
anchor-lang = { version="0.30.1", features=["init-if-needed"] }
anchor-spl = "0.30.1"
pyth-sdk-solana = "0.10.1"
pyth-solana-receiver-sdk = "0.3.1"
solana-program = "1.18.17"
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/constants.rs
|
use anchor_lang::prelude::*;
#[constant]
// https://pyth.network/developers/price-feed-ids#solana-stable
pub const SOL_USD_FEED_ID: &str = "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d";
pub const USDC_USD_FEED_ID: &str = "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a";
pub const MAXIMUM_AGE: u64 = 100; // allow price feed 100 sec old, to avoid stale price feed errors
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/error.rs
|
use anchor_lang::prelude::*;
#[error_code]
pub enum ErrorCode {
#[msg("Borrowed amount exceeds the maximum LTV.")]
OverLTV,
#[msg("Borrowed amount results in an under collateralized loan.")]
UnderCollateralized,
#[msg("Insufficient funds to withdraw.")]
InsufficientFunds,
#[msg("Attempting to repay more than borrowed.")]
OverRepay,
#[msg("Attempting to borrow more than allowed.")]
OverBorrowableAmount,
#[msg("User is not undercollateralized.")]
NotUndercollateralized
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/lib.rs
|
use anchor_lang::prelude::*;
use instructions::*;
mod state;
mod instructions;
mod error;
mod constants;
declare_id!("CdZeD33fXsAHfZYS8jdxg4qHgXYJwBQ1Bv6GJyETtLST");
#[program]
pub mod lending_protocol {
use super::*;
pub fn init_bank(ctx: Context<InitBank>, liquidation_threshold: u64, max_ltv: u64) -> Result<()> {
process_init_bank(ctx, liquidation_threshold, max_ltv)
}
pub fn init_user(ctx: Context<InitUser>, usdc_address: Pubkey) -> Result<()> {
process_init_user(ctx, usdc_address)
}
pub fn deposit (ctx: Context<Deposit>, amount: u64) -> Result<()> {
process_deposit(ctx, amount)
}
pub fn withdraw (ctx: Context<Withdraw>, amount: u64) -> Result<()> {
process_withdraw(ctx, amount)
}
pub fn borrow(ctx: Context<Borrow>, amount: u64) -> Result<()> {
process_borrow(ctx, amount)
}
pub fn repay(ctx: Context<Repay>, amount: u64) -> Result<()> {
process_repay(ctx, amount)
}
pub fn liquidate(ctx: Context<Liquidate>) -> Result<()> {
process_liquidate(ctx)
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/mod.rs
|
pub mod state;
pub mod error;
pub mod instructions;
pub mod constants;
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/state.rs
|
use anchor_lang::prelude::*;
#[account]
#[derive(InitSpace)]
pub struct Bank {
/// Authority to make changes to Bank State
pub authority: Pubkey,
/// Mint address of the asset
pub mint_address: Pubkey,
/// Current number of tokens in the bank
pub total_deposits: u64,
/// Current number of deposit shares in the bank
pub total_deposit_shares: u64,
// Current number of borrowed tokens in the bank
pub total_borrowed: u64,
/// Current number of borrowed shares in the bank
pub total_borrowed_shares: u64,
/// LTV at which the loan is defined as under collateralized and can be liquidated
pub liquidation_threshold: u64,
/// Bonus percentage of collateral that can be liquidated
pub liquidation_bonus: u64,
/// Percentage of collateral that can be liquidated
pub liquidation_close_factor: u64,
/// Max percentage of collateral that can be borrowed
pub max_ltv: u64,
/// Last updated timestamp
pub last_updated: i64,
pub interest_rate: u64,
}
// Challenge: How would you update the user state to save "all_deposited_assets" and "all_borrowed_assets" to accommodate for several asset listings?
#[account]
#[derive(InitSpace)]
pub struct User {
/// Pubkey of the user's wallet
pub owner: Pubkey,
/// User's deposited tokens in the SOL bank
pub deposited_sol: u64,
/// User's deposited shares in the SOL bank
pub deposited_sol_shares: u64,
/// User's borrowed tokens in the SOL bank
pub borrowed_sol: u64,
/// User's borrowed shares in the SOL bank
pub borrowed_sol_shares: u64,
/// User's deposited tokens in the USDC bank
pub deposited_usdc: u64,
/// User's deposited shares in the USDC bank
pub deposited_usdc_shares: u64,
/// User's borrowed tokens in the USDC bank
pub borrowed_usdc: u64,
/// User's borrowed shares in the USDC bank
pub borrowed_usdc_shares: u64,
/// USDC mint address
pub usdc_address: Pubkey,
/// Current health factor of the user
pub health_factor: u64,
/// Last updated timestamp
pub last_updated: i64,
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/instructions/withdraw.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_interface::{ self, Mint, TokenAccount, TokenInterface, TransferChecked };
use crate::state::*;
use crate::error::ErrorCode;
#[derive(Accounts)]
pub struct Withdraw<'info> {
#[account(mut)]
pub signer: Signer<'info>,
pub mint: InterfaceAccount<'info, Mint>,
#[account(
mut,
seeds = [mint.key().as_ref()],
bump,
)]
pub bank: Account<'info, Bank>,
#[account(
mut,
seeds = [b"treasury", mint.key().as_ref()],
bump,
)]
pub bank_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
mut,
seeds = [signer.key().as_ref()],
bump,
)]
pub user_account: Account<'info, User>,
#[account(
init_if_needed,
payer = signer,
associated_token::mint = mint,
associated_token::authority = signer,
associated_token::token_program = token_program,
)]
pub user_token_account: InterfaceAccount<'info, TokenAccount>,
pub token_program: Interface<'info, TokenInterface>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub system_program: Program<'info, System>,
}
// 1. CPI transfer from bank's token account to user's token account
// 2. Calculate new shares to be removed from the bank
// 3. Update user's deposited amount and total collateral value
// 4. Update bank's total deposits and total deposit shares
// 5. Update users health factor ??
pub fn process_withdraw(ctx: Context<Withdraw>, amount: u64) -> Result<()> {
let user = &mut ctx.accounts.user_account;
let deposited_value;
// FIXME: Change from if statement to match statement?? Use PDA deserialization to get the mint address??
if ctx.accounts.mint.to_account_info().key() == user.usdc_address {
deposited_value = user.deposited_usdc;
} else {
deposited_value = user.deposited_sol;
}
if amount > deposited_value {
return Err(ErrorCode::InsufficientFunds.into());
}
let transfer_cpi_accounts = TransferChecked {
from: ctx.accounts.bank_token_account.to_account_info(),
mint: ctx.accounts.mint.to_account_info(),
to: ctx.accounts.user_token_account.to_account_info(),
authority: ctx.accounts.bank_token_account.to_account_info(),
};
let cpi_program = ctx.accounts.token_program.to_account_info();
let mint_key = ctx.accounts.mint.key();
let signer_seeds: &[&[&[u8]]] = &[
&[
b"treasury",
mint_key.as_ref(),
&[ctx.bumps.bank_token_account],
],
];
let cpi_ctx = CpiContext::new(cpi_program, transfer_cpi_accounts).with_signer(signer_seeds);
let decimals = ctx.accounts.mint.decimals;
token_interface::transfer_checked(cpi_ctx, amount, decimals)?;
let bank = &mut ctx.accounts.bank;
let shares_to_remove = (amount as f64 / bank.total_deposits as f64) * bank.total_deposit_shares as f64;
let user = &mut ctx.accounts.user_account;
if ctx.accounts.mint.to_account_info().key() == user.usdc_address {
user.deposited_usdc -= shares_to_remove as u64;
} else {
user.deposited_sol -= shares_to_remove as u64;
}
bank.total_deposits -= amount;
bank.total_deposit_shares -= shares_to_remove as u64;
Ok(())
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/instructions/repay.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_interface::{ self, Mint, TokenAccount, TokenInterface, TransferChecked };
use crate::state::*;
use crate::error::ErrorCode;
#[derive(Accounts)]
pub struct Repay<'info> {
#[account(mut)]
pub signer: Signer<'info>,
pub mint: InterfaceAccount<'info, Mint>,
#[account(
mut,
seeds = [mint.key().as_ref()],
bump,
)]
pub bank: Account<'info, Bank>,
#[account(
mut,
seeds = [b"treasury", mint.key().as_ref()],
bump,
)]
pub bank_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
mut,
seeds = [signer.key().as_ref()],
bump,
)]
pub user_account: Account<'info, User>,
#[account(
init_if_needed,
payer = signer,
associated_token::mint = mint,
associated_token::authority = signer,
associated_token::token_program = token_program,
)]
pub user_token_account: InterfaceAccount<'info, TokenAccount>,
pub token_program: Interface<'info, TokenInterface>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub system_program: Program<'info, System>,
}
// Repay function just needs to make a CPI transfer from the user's token account into the bank's token account
pub fn process_repay(ctx: Context<Repay>, amount: u64) -> Result<()> {
let user = &mut ctx.accounts.user_account;
let borrowed_asset;
// Note: For simplicity, interest fees are not included in this calculation
match ctx.accounts.mint.to_account_info().key() {
key if key == user.usdc_address => {
borrowed_asset = user.borrowed_usdc;
},
_ => {
borrowed_asset = user.borrowed_sol;
}
}
if amount > borrowed_asset {
return Err(ErrorCode::OverRepay.into());
}
let transfer_cpi_accounts = TransferChecked {
from: ctx.accounts.user_token_account.to_account_info(),
mint: ctx.accounts.mint.to_account_info(),
to: ctx.accounts.bank_token_account.to_account_info(),
authority: ctx.accounts.signer.to_account_info(),
};
let cpi_program = ctx.accounts.token_program.to_account_info();
let cpi_ctx = CpiContext::new(cpi_program, transfer_cpi_accounts);
let decimals = ctx.accounts.mint.decimals;
token_interface::transfer_checked(cpi_ctx, amount, decimals)?;
// Note: The checked_ prefix in Rust is used to perform operations safely by checking for potential
// arithmetic overflow or other errors that could occur during the computation. If such an error occurs, these methods
// return None instead of causing a panic.
let bank = &mut ctx.accounts.bank;
let borrowed_ratio = amount.checked_div(bank.total_borrowed).unwrap();
let users_shares = bank.total_borrowed_shares.checked_mul(borrowed_ratio).unwrap();
let user = &mut ctx.accounts.user_account;
match ctx.accounts.mint.to_account_info().key() {
key if key == user.usdc_address => {
user.borrowed_usdc -= amount;
user.borrowed_usdc_shares -= users_shares;
},
_ => {
user.borrowed_sol -= amount;
user.borrowed_sol_shares -= users_shares;
}
}
// Add in "update health factor" function here
bank.total_borrowed -= amount;
bank.total_borrowed_shares -= users_shares;
Ok(())
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/instructions/deposit.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_interface::{ self, Mint, TokenAccount, TokenInterface, TransferChecked };
use crate::state::*;
#[derive(Accounts)]
pub struct Deposit<'info> {
#[account(mut)]
pub signer: Signer<'info>,
pub mint: InterfaceAccount<'info, Mint>,
#[account(
mut,
seeds = [mint.key().as_ref()],
bump,
)]
pub bank: Account<'info, Bank>,
#[account(
mut,
seeds = [b"treasury", mint.key().as_ref()],
bump,
)]
pub bank_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
mut,
seeds = [signer.key().as_ref()],
bump,
)]
pub user_account: Account<'info, User>,
#[account(
mut,
associated_token::mint = mint,
associated_token::authority = signer,
associated_token::token_program = token_program,
)]
pub user_token_account: InterfaceAccount<'info, TokenAccount>,
pub token_program: Interface<'info, TokenInterface>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub system_program: Program<'info, System>,
}
// 1. CPI transfer from user's token account to bank's token account
// 2. Calculate new shares to be added to the bank
// 3. Update user's deposited amount and total collateral value
// 4. Update bank's total deposits and total deposit shares
// 5. Update users health factor ??
pub fn process_deposit(ctx: Context<Deposit>, amount: u64) -> Result<()> {
let transfer_cpi_accounts = TransferChecked {
from: ctx.accounts.user_token_account.to_account_info(),
mint: ctx.accounts.mint.to_account_info(),
to: ctx.accounts.bank_token_account.to_account_info(),
authority: ctx.accounts.signer.to_account_info(),
};
let cpi_program = ctx.accounts.token_program.to_account_info();
let cpi_ctx = CpiContext::new(cpi_program, transfer_cpi_accounts);
let decimals = ctx.accounts.mint.decimals;
token_interface::transfer_checked(cpi_ctx, amount, decimals)?;
// calculate new shares to be added to the bank
let bank = &mut ctx.accounts.bank;
// Note: The checked_ prefix in Rust is used to perform operations safely by checking for potential
// arithmetic overflow or other errors that could occur during the computation. If such an error occurs,
// these methods return None instead of causing a panic.
if bank.total_deposits == 0 {
bank.total_deposits = amount;
bank.total_deposit_shares = amount;
}
let deposit_ratio = amount.checked_div(bank.total_deposits).unwrap();
let users_shares = bank.total_deposit_shares.checked_mul(deposit_ratio).unwrap();
let user = &mut ctx.accounts.user_account;
match ctx.accounts.mint.to_account_info().key() {
key if key == user.usdc_address => {
user.deposited_usdc += amount;
user.deposited_usdc_shares += users_shares;
},
_ => {
user.deposited_sol += amount;
user.deposited_sol_shares += users_shares;
}
}
// The above match statement can easily have new branches added when additional assets are added to the protocol
bank.total_deposits += amount;
bank.total_deposit_shares += users_shares;
user.last_updated = Clock::get()?.unix_timestamp;
Ok(())
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/instructions/borrow.rs
|
use std::f32::consts::E;
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_interface::{ self, Mint, TokenAccount, TokenInterface, TransferChecked };
use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2};
use crate::constants::{MAXIMUM_AGE, SOL_USD_FEED_ID, USDC_USD_FEED_ID};
use crate::state::*;
use crate::error::ErrorCode;
#[derive(Accounts)]
pub struct Borrow<'info> {
#[account(mut)]
pub signer: Signer<'info>,
pub mint: InterfaceAccount<'info, Mint>,
#[account(
mut,
seeds = [mint.key().as_ref()],
bump,
)]
pub bank: Account<'info, Bank>,
#[account(
mut,
seeds = [b"treasury", mint.key().as_ref()],
bump,
)]
pub bank_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
mut,
seeds = [signer.key().as_ref()],
bump,
)]
pub user_account: Account<'info, User>,
#[account(
init_if_needed,
payer = signer,
associated_token::mint = mint,
associated_token::authority = signer,
associated_token::token_program = token_program,
)]
pub user_token_account: InterfaceAccount<'info, TokenAccount>,
pub price_update: Account<'info, PriceUpdateV2>,
pub token_program: Interface<'info, TokenInterface>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub system_program: Program<'info, System>,
}
// 1. Check if user has enough collateral to borrow
// 2. Warn if borrowing beyond the safe amount but still allow if within the max borrowable amount
// 3. Make a CPI transfer from the bank's token account to the user's token account
// 4. Update the user's borrowed amount and total borrowed value
// 5. Update the bank's total borrows and total borrow shares
pub fn process_borrow(ctx: Context<Borrow>, amount: u64) -> Result<()> {
// Check if user has enough collateral to borrow
let bank = &mut ctx.accounts.bank;
let user = &mut ctx.accounts.user_account;
let price_update = &mut ctx.accounts.price_update;
let total_collateral: u64;
match ctx.accounts.mint.to_account_info().key() {
key if key == user.usdc_address => {
let sol_feed_id = get_feed_id_from_hex(SOL_USD_FEED_ID)?;
let sol_price = price_update.get_price_no_older_than(&Clock::get()?, MAXIMUM_AGE, &sol_feed_id)?;
let accrued_interest = calculate_accrued_interest(user.deposited_sol, bank.interest_rate, user.last_updated)?;
total_collateral = sol_price.price as u64 * (user.deposited_sol + accrued_interest);
},
_ => {
let usdc_feed_id = get_feed_id_from_hex(USDC_USD_FEED_ID)?;
let usdc_price = price_update.get_price_no_older_than(&Clock::get()?, MAXIMUM_AGE, &usdc_feed_id)?;
total_collateral = usdc_price.price as u64 * user.deposited_usdc;
}
}
let borrowable_amount = total_collateral as u64 * bank.liquidation_threshold;
if borrowable_amount < amount {
return Err(ErrorCode::OverBorrowableAmount.into());
}
let transfer_cpi_accounts = TransferChecked {
from: ctx.accounts.bank_token_account.to_account_info(),
mint: ctx.accounts.mint.to_account_info(),
to: ctx.accounts.user_token_account.to_account_info(),
authority: ctx.accounts.bank_token_account.to_account_info(),
};
let cpi_program = ctx.accounts.token_program.to_account_info();
let mint_key = ctx.accounts.mint.key();
let signer_seeds: &[&[&[u8]]] = &[
&[
b"treasury",
mint_key.as_ref(),
&[ctx.bumps.bank_token_account],
],
];
let cpi_ctx = CpiContext::new(cpi_program, transfer_cpi_accounts).with_signer(signer_seeds);
let decimals = ctx.accounts.mint.decimals;
token_interface::transfer_checked(cpi_ctx, amount, decimals)?;
if bank.total_borrowed == 0 {
bank.total_borrowed = amount;
bank.total_borrowed_shares = amount;
}
let borrow_ratio = amount.checked_div(bank.total_borrowed).unwrap();
let users_shares = bank.total_borrowed_shares.checked_mul(borrow_ratio).unwrap();
bank.total_borrowed += amount;
bank.total_borrowed_shares += users_shares;
match ctx.accounts.mint.to_account_info().key() {
key if key == user.usdc_address => {
user.borrowed_usdc += amount;
user.deposited_usdc_shares += users_shares;
},
_ => {
user.borrowed_sol += amount;
user.deposited_sol_shares += users_shares;
}
}
Ok(())
}
fn calculate_accrued_interest(deposited: u64, interest_rate: u64, last_update: i64) -> Result<u64> {
let current_time = Clock::get()?.unix_timestamp;
let time_elapsed = current_time - last_update;
let new_value = (deposited as f64 * E.powf(interest_rate as f32 * time_elapsed as f32) as f64) as u64;
Ok(new_value)
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/instructions/mod.rs
|
pub use admin::*;
pub mod admin;
pub use deposit::*;
pub mod deposit;
pub use borrow::*;
pub mod borrow;
pub use withdraw::*;
pub mod withdraw;
pub use repay::*;
pub mod repay;
pub use liquidate::*;
pub mod liquidate;
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/instructions/admin.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token_interface::{ Mint, TokenAccount, TokenInterface };
use crate::state::*;
#[derive(Accounts)]
pub struct InitBank<'info> {
#[account(mut)]
pub signer: Signer<'info>,
pub mint: InterfaceAccount<'info, Mint>,
#[account(
init,
space = 8 + Bank::INIT_SPACE,
payer = signer,
seeds = [mint.key().as_ref()],
bump,
)]
pub bank: Account<'info, Bank>,
#[account(
init,
token::mint = mint,
token::authority = bank_token_account,
payer = signer,
seeds = [b"treasury", mint.key().as_ref()],
bump,
)]
pub bank_token_account: InterfaceAccount<'info, TokenAccount>,
pub token_program: Interface<'info, TokenInterface>,
pub system_program: Program <'info, System>,
}
#[derive(Accounts)]
pub struct InitUser<'info> {
#[account(mut)]
pub signer: Signer<'info>,
#[account(
init,
payer = signer,
space = 8 + User::INIT_SPACE,
seeds = [signer.key().as_ref()],
bump,
)]
pub user_account: Account<'info, User>,
pub system_program: Program <'info, System>,
}
pub fn process_init_bank(ctx: Context<InitBank>, liquidation_threshold: u64, max_ltv: u64) -> Result<()> {
let bank = &mut ctx.accounts.bank;
bank.mint_address = ctx.accounts.mint.key();
bank.authority = ctx.accounts.signer.key();
bank.liquidation_threshold = liquidation_threshold;
bank.max_ltv = max_ltv;
Ok(())
}
pub fn process_init_user(ctx: Context<InitUser>, usdc_address: Pubkey) -> Result<()> {
let user = &mut ctx.accounts.user_account;
user.owner = ctx.accounts.signer.key();
user.usdc_address = usdc_address;
let now = Clock::get()?.unix_timestamp;
user.last_updated = now;
Ok(())
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src
|
solana_public_repos/developer-bootcamp-2024/project-10-lending/lending/src/instructions/liquidate.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_interface::{ self, Mint, TokenAccount, TokenInterface, TransferChecked };
use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2};
use crate::constants::{MAXIMUM_AGE, SOL_USD_FEED_ID, USDC_USD_FEED_ID};
use crate::state::*;
use crate::error::ErrorCode;
#[derive(Accounts)]
pub struct Liquidate<'info> {
#[account(mut)]
pub liquidator: Signer<'info>,
pub price_update: Account<'info, PriceUpdateV2>,
pub collateral_mint: InterfaceAccount<'info, Mint>,
pub borrowed_mint: InterfaceAccount<'info, Mint>,
#[account(
mut,
seeds = [collateral_mint.key().as_ref()],
bump,
)]
pub collateral_bank: Account<'info, Bank>,
#[account(
mut,
seeds = [b"treasury", collateral_mint.key().as_ref()],
bump,
)]
pub collateral_bank_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
mut,
seeds = [borrowed_mint.key().as_ref()],
bump,
)]
pub borrowed_bank: Account<'info, Bank>,
#[account(
mut,
seeds = [b"treasury", borrowed_mint.key().as_ref()],
bump,
)]
pub borrowed_bank_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
mut,
seeds = [liquidator.key().as_ref()],
bump,
)]
pub user_account: Account<'info, User>,
#[account(
init_if_needed,
payer = liquidator,
associated_token::mint = collateral_mint,
associated_token::authority = liquidator,
associated_token::token_program = token_program,
)]
pub liquidator_collateral_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
init_if_needed,
payer = liquidator,
associated_token::mint = borrowed_mint,
associated_token::authority = liquidator,
associated_token::token_program = token_program,
)]
pub liquidator_borrowed_token_account: InterfaceAccount<'info, TokenAccount>,
pub token_program: Interface<'info, TokenInterface>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub system_program: Program<'info, System>,
}
// 1. Check if user is undercollateralized
// 2. Calculate liquidation amount
// 3. Make a CPI transfer from the user's token account to the bank's token account
// 4. Update the user and bank states
// 5. Handle fees and rewards
pub fn process_liquidate(ctx: Context<Liquidate>) -> Result<()> {
let collateral_bank = &mut ctx.accounts.collateral_bank;
let user = &mut ctx.accounts.user_account;
let price_update = &mut ctx.accounts.price_update;
let sol_feed_id = get_feed_id_from_hex(SOL_USD_FEED_ID)?;
let usdc_feed_id = get_feed_id_from_hex(USDC_USD_FEED_ID)?;
let sol_price = price_update.get_price_no_older_than(&Clock::get()?, MAXIMUM_AGE, &sol_feed_id)?;
let usdc_price = price_update.get_price_no_older_than(&Clock::get()?, MAXIMUM_AGE, &usdc_feed_id)?;
// Note: For simplicity, interest is not being included in these calculations.
let total_collateral = (sol_price.price as u64 * user.deposited_sol) + (usdc_price.price as u64 * user.deposited_usdc);
let total_borrowed = (sol_price.price as u64 * user.borrowed_sol) + (usdc_price.price as u64 * user.borrowed_usdc);
let health_factor = (total_collateral * collateral_bank.liquidation_threshold)/total_borrowed;
if health_factor >= 1 {
return Err(ErrorCode::NotUndercollateralized.into());
}
let liquidation_amount = total_borrowed * collateral_bank.liquidation_close_factor;
// liquidator pays back the borrowed amount back to the bank
let transfer_to_bank = TransferChecked {
from: ctx.accounts.liquidator_borrowed_token_account.to_account_info(),
mint: ctx.accounts.borrowed_mint.to_account_info(),
to: ctx.accounts.borrowed_bank_token_account.to_account_info(),
authority: ctx.accounts.liquidator.to_account_info(),
};
let cpi_program = ctx.accounts.token_program.to_account_info();
let cpi_ctx_to_bank = CpiContext::new(cpi_program.clone(), transfer_to_bank);
let decimals = ctx.accounts.borrowed_mint.decimals;
token_interface::transfer_checked(cpi_ctx_to_bank, liquidation_amount, decimals)?;
// Transfer liquidation value and bonus to liquidator
let liquidation_bonus = (liquidation_amount * collateral_bank.liquidation_bonus) + liquidation_amount;
let transfer_to_liquidator = TransferChecked {
from: ctx.accounts.collateral_bank_token_account.to_account_info(),
mint: ctx.accounts.collateral_mint.to_account_info(),
to: ctx.accounts.liquidator_collateral_token_account.to_account_info(),
authority: ctx.accounts.collateral_bank_token_account.to_account_info(),
};
let mint_key = ctx.accounts.collateral_mint.key();
let signer_seeds: &[&[&[u8]]] = &[
&[
b"treasury",
mint_key.as_ref(),
&[ctx.bumps.collateral_bank_token_account],
],
];
let cpi_ctx_to_liquidator = CpiContext::new(cpi_program.clone(), transfer_to_liquidator).with_signer(signer_seeds);
let collateral_decimals = ctx.accounts.collateral_mint.decimals;
token_interface::transfer_checked(cpi_ctx_to_liquidator, liquidation_bonus, collateral_decimals)?;
Ok(())
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-6-nfts/package.json
|
{
"name": "new-nft",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@metaplex-foundation/mpl-token-metadata": "^3.2.1",
"@metaplex-foundation/umi-bundle-defaults": "^0.9.2",
"@solana-developers/helpers": "^2.5.2",
"esrun": "^3.2.26"
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-6-nfts/verify-nft.ts
|
import {
findMetadataPda,
mplTokenMetadata,
verifyCollectionV1,
} from "@metaplex-foundation/mpl-token-metadata";
import {
airdropIfRequired,
getExplorerLink,
getKeypairFromFile,
} from "@solana-developers/helpers";
import { createUmi } from "@metaplex-foundation/umi-bundle-defaults";
import { Connection, LAMPORTS_PER_SOL, clusterApiUrl } from "@solana/web3.js";
import { keypairIdentity, publicKey } from "@metaplex-foundation/umi";
const connection = new Connection(clusterApiUrl("devnet"));
const user = await getKeypairFromFile();
await airdropIfRequired(
connection,
user.publicKey,
1 * LAMPORTS_PER_SOL,
0.5 * LAMPORTS_PER_SOL
);
console.log("Loaded user", user.publicKey.toBase58());
const umi = createUmi(connection.rpcEndpoint);
umi.use(mplTokenMetadata());
const umiUser = umi.eddsa.createKeypairFromSecretKey(user.secretKey);
umi.use(keypairIdentity(umiUser));
console.log("Set up Umi instance for user");
// We could also dp
const collectionAddress = publicKey(
"ChfGtd2wT12c2u82PHNpe4PdQ5PMqJnVECfaNbQ2uaVw"
);
const nftAddress = publicKey("84uZmnRpzfa77w3KtyagjWXA8g1yE6vP8ReuHyN5HZaN");
const transaction = await verifyCollectionV1(umi, {
metadata: findMetadataPda(umi, { mint: nftAddress }),
collectionMint: collectionAddress,
authority: umi.identity,
});
transaction.sendAndConfirm(umi);
console.log(
`✅ NFT ${nftAddress} verified as member of collection ${collectionAddress}! See Explorer at ${getExplorerLink(
"address",
nftAddress,
"devnet"
)}`
);
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-6-nfts/create-nft.ts
|
import {
createNft,
fetchDigitalAsset,
mplTokenMetadata,
} from "@metaplex-foundation/mpl-token-metadata";
import {
airdropIfRequired,
getExplorerLink,
getKeypairFromFile,
} from "@solana-developers/helpers";
import { createUmi } from "@metaplex-foundation/umi-bundle-defaults";
import { Connection, LAMPORTS_PER_SOL, clusterApiUrl } from "@solana/web3.js";
import {
generateSigner,
keypairIdentity,
percentAmount,
publicKey,
} from "@metaplex-foundation/umi";
const connection = new Connection(clusterApiUrl("devnet"));
const user = await getKeypairFromFile();
await airdropIfRequired(
connection,
user.publicKey,
1 * LAMPORTS_PER_SOL,
0.5 * LAMPORTS_PER_SOL
);
console.log("Loaded user", user.publicKey.toBase58());
const umi = createUmi(connection.rpcEndpoint);
umi.use(mplTokenMetadata());
const umiUser = umi.eddsa.createKeypairFromSecretKey(user.secretKey);
umi.use(keypairIdentity(umiUser));
console.log("Set up Umi instance for user");
const collectionAddress = publicKey(
"ChfGtd2wT12c2u82PHNpe4PdQ5PMqJnVECfaNbQ2uaVw"
);
console.log(`Creating NFT...`);
const mint = generateSigner(umi);
const transaction = await createNft(umi, {
mint,
name: "My NFT",
uri: "https://raw.githubusercontent.com/solana-developers/professional-education/main/labs/sample-nft-offchain-data.json",
sellerFeeBasisPoints: percentAmount(0),
collection: {
key: collectionAddress,
verified: false,
},
});
await transaction.sendAndConfirm(umi);
const createdNft = await fetchDigitalAsset(umi, mint.publicKey);
console.log(
`🖼️ Created NFT! Address is ${getExplorerLink(
"address",
createdNft.mint.publicKey,
"devnet"
)}`
);
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-6-nfts/create-collection.ts
|
import {
createNft,
fetchDigitalAsset,
mplTokenMetadata,
} from "@metaplex-foundation/mpl-token-metadata";
import {
airdropIfRequired,
getExplorerLink,
getKeypairFromFile,
} from "@solana-developers/helpers";
import { createUmi } from "@metaplex-foundation/umi-bundle-defaults";
import { Connection, LAMPORTS_PER_SOL, clusterApiUrl } from "@solana/web3.js";
import {
generateSigner,
keypairIdentity,
percentAmount,
} from "@metaplex-foundation/umi";
const connection = new Connection(clusterApiUrl("devnet"));
const user = await getKeypairFromFile();
await airdropIfRequired(
connection,
user.publicKey,
1 * LAMPORTS_PER_SOL,
0.5 * LAMPORTS_PER_SOL
);
console.log("Loaded user", user.publicKey.toBase58());
const umi = createUmi(connection.rpcEndpoint);
umi.use(mplTokenMetadata());
const umiUser = umi.eddsa.createKeypairFromSecretKey(user.secretKey);
umi.use(keypairIdentity(umiUser));
console.log("Set up Umi instance for user");
const collectionMint = generateSigner(umi);
const transaction = await createNft(umi, {
mint: collectionMint,
name: "My Collection",
symbol: "MC",
uri: "https://raw.githubusercontent.com/solana-developers/professional-education/main/labs/sample-nft-collection-offchain-data.json",
sellerFeeBasisPoints: percentAmount(0),
isCollection: true,
});
await transaction.sendAndConfirm(umi);
const createdCollectionNft = await fetchDigitalAsset(
umi,
collectionMint.publicKey
);
console.log(
`Created Collection 📦! Address is ${getExplorerLink(
"address",
createdCollectionNft.mint.publicKey,
"devnet"
)}`
);
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/jest.preset.js
|
const nxPreset = require('@nx/jest/preset').default;
module.exports = { ...nxPreset };
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/nx.json
|
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/eslint.config.js",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s"
],
"sharedGlobals": []
},
"targetDefaults": {
"@nx/next:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/eslint:lint": {
"cache": true,
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/eslint.config.js"
]
},
"@nx/rollup:rollup": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
},
"generators": {
"@nx/next": {
"application": {
"style": "css",
"linter": "eslint"
}
}
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/LICENSE
|
MIT License
Copyright (c) 2024 brimigs
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/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/vercel.json
|
{
"buildCommand": "npm run build",
"outputDirectory": "dist/web/.next"
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/tsconfig.base.json
|
{
"compileOnSave": false,
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"lib": ["es2020", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@/*": ["./web/*"],
"@token-vesting/anchor": ["anchor/src/index.ts"]
}
},
"exclude": ["node_modules", "tmp"]
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/package.json
|
{
"name": "@token-vesting/source",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"anchor": "nx run anchor:anchor",
"anchor-build": "nx run anchor:anchor build",
"anchor-localnet": "nx run anchor:anchor localnet",
"anchor-test": "nx run anchor:anchor test",
"feature": "nx generate @solana-developers/preset-react:feature",
"build": "nx build web",
"dev": "nx serve web"
},
"private": true,
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@solana-developers/preset-next": "3.0.1",
"@solana/spl-token": "^0.4.6",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-react-ui": "^0.9.35",
"@solana/web3.js": "1.94.0",
"@tabler/icons-react": "3.5.0",
"@tailwindcss/typography": "0.5.13",
"@tanstack/react-query": "5.40.0",
"@tanstack/react-query-next-experimental": "5.40.0",
"bs58": "5.0.0",
"buffer": "6.0.3",
"daisyui": "4.11.1",
"encoding": "0.1.13",
"jotai": "2.8.3",
"next": "14.0.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hot-toast": "2.4.1",
"tslib": "^2.3.0"
},
"devDependencies": {
"@nx/eslint": "19.0.0",
"@nx/eslint-plugin": "19.0.0",
"@nx/jest": "19.0.0",
"@nx/js": "19.0.0",
"@nx/next": "19.0.0",
"@nx/rollup": "19.0.0",
"@nx/workspace": "19.0.0",
"@swc-node/register": "~1.8.0",
"@swc/cli": "~0.3.12",
"@swc/core": "~1.3.85",
"@swc/helpers": "~0.5.2",
"@swc/jest": "0.2.20",
"@types/jest": "^29.4.0",
"@types/node": "18.16.9",
"@types/react": "18.3.1",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "^7.3.0",
"@typescript-eslint/parser": "^7.3.0",
"autoprefixer": "10.4.13",
"eslint": "~8.57.0",
"eslint-config-next": "14.0.4",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"nx": "19.0.0",
"postcss": "8.4.21",
"prettier": "^2.6.2",
"tailwindcss": "3.2.7",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.4.2"
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/jest.config.ts
|
import { getJestProjectsAsync } from '@nx/jest';
export default async () => ({
projects: await getJestProjectsAsync(),
});
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/tailwind.config.js
|
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind');
const { join } = require('path');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
join(
__dirname,
'{src,pages,components,app}/**/*!(*.stories|*.spec).{ts,tsx,html}'
),
...createGlobPatternsForDependencies(__dirname),
],
theme: {
extend: {},
},
plugins: [require('daisyui')],
};
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/project.json
|
{
"name": "web",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "web",
"projectType": "application",
"tags": [],
"targets": {
"build": {
"executor": "@nx/next:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/web"
},
"configurations": {
"development": {
"outputPath": "web"
},
"production": {}
}
},
"serve": {
"executor": "@nx/next:server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "web:build",
"dev": true,
"port": 3000
},
"configurations": {
"development": {
"buildTarget": "web:build:development",
"dev": true
},
"production": {
"buildTarget": "web:build:production",
"dev": false
}
}
},
"export": {
"executor": "@nx/next:export",
"options": {
"buildTarget": "web:build:production"
}
},
"lint": {
"executor": "@nx/eslint:lint"
}
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/next.config.js
|
//@ts-check
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { composePlugins, withNx } = require('@nx/next');
/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
webpack: (config) => {
config.externals = [
...(config.externals || []),
'bigint',
'node-gyp-build',
];
return config;
},
nx: {
// Set this to true if you would like to use SVGR
// See: https://github.com/gregberge/svgr
svgr: false,
},
};
const plugins = [
// Add more Next.js plugins to this list if needed.
withNx,
];
module.exports = composePlugins(...plugins)(nextConfig);
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/next-env.d.ts
|
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/tsconfig.json
|
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"jsx": "preserve",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"resolveJsonModule": true,
"isolatedModules": true,
"incremental": true,
"plugins": [
{
"name": "next"
}
]
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"../web/.next/types/**/*.ts",
"../dist/web/.next/types/**/*.ts",
"next-env.d.ts",
".next/types/**/*.ts"
],
"exclude": ["node_modules", "jest.config.ts", "**/*.spec.ts", "**/*.test.ts"]
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/index.d.ts
|
/* eslint-disable @typescript-eslint/no-explicit-any */
declare module '*.svg' {
const content: any;
export const ReactComponent: any;
export default content;
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/postcss.config.js
|
const { join } = require('path');
// Note: If you use library-specific PostCSS/Tailwind configuration then you should remove the `postcssConfig` build
// option from your application's configuration (i.e. project.json).
//
// See: https://nx.dev/guides/using-tailwind-css-in-react#step-4:-applying-configuration-to-libraries
module.exports = {
plugins: {
tailwindcss: {
config: join(__dirname, 'tailwind.config.js'),
},
autoprefixer: {},
},
};
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/.eslintrc.json
|
{
"extends": [
"plugin:@nx/react-typescript",
"next",
"next/core-web-vitals",
"../.eslintrc.json"
],
"ignorePatterns": ["!**/*", ".next/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@next/next/no-html-link-for-pages": ["error", "web/pages"]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"allow": ["@/"]
}
]
}
}
]
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/react-query-provider.tsx
|
'use client';
import React, { ReactNode, useState } from 'react';
import { ReactQueryStreamedHydration } from '@tanstack/react-query-next-experimental';
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
export function ReactQueryProvider({ children }: { children: ReactNode }) {
const [client] = useState(new QueryClient());
return (
<QueryClientProvider client={client}>
<ReactQueryStreamedHydration>{children}</ReactQueryStreamedHydration>
</QueryClientProvider>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/global.css
|
@tailwind base;
@tailwind components;
@tailwind utilities;
html,
body {
height: 100%;
}
.wallet-adapter-button-trigger {
background: rgb(100, 26, 230) !important;
border-radius: 8px !important;
padding-left: 16px !important;
padding-right: 16px !important;
}
.wallet-adapter-dropdown-list,
.wallet-adapter-button {
font-family: inherit !important;
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/page.module.css
|
.page {
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/layout.tsx
|
import './global.css';
import { UiLayout } from '@/components/ui/ui-layout';
import { ClusterProvider } from '@/components/cluster/cluster-data-access';
import { SolanaProvider } from '@/components/solana/solana-provider';
import { ReactQueryProvider } from './react-query-provider';
export const metadata = {
title: 'token-vesting',
description: 'Generated by create-solana-dapp',
};
const links: { label: string; path: string }[] = [
{ label: 'Account', path: '/account' },
{ label: 'Clusters', path: '/clusters' },
{ label: 'Vesting Program', path: '/vesting' },
];
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>
<ReactQueryProvider>
<ClusterProvider>
<SolanaProvider>
<UiLayout links={links}>{children}</UiLayout>
</SolanaProvider>
</ClusterProvider>
</ReactQueryProvider>
</body>
</html>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/page.tsx
|
import DashboardFeature from '@/components/dashboard/dashboard-feature';
export default function Page() {
return <DashboardFeature />;
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/clusters/page.tsx
|
import ClusterFeature from '@/components/cluster/cluster-feature';
export default function Page() {
return <ClusterFeature />;
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/vesting/page.tsx
|
import VestingFeature from '@/components/vesting/vesting-feature';
export default function Page() {
return <VestingFeature />;
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/api
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/api/hello/route.ts
|
export async function GET(request: Request) {
return new Response('Hello, from API!');
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/account/page.tsx
|
import AccountListFeature from '@/components/account/account-list-feature';
export default function Page() {
return <AccountListFeature />;
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/account
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/app/account/[address]/page.tsx
|
import AccountDetailFeature from '@/components/account/account-detail-feature';
export default function Page() {
return <AccountDetailFeature />;
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/ui/ui-layout.tsx
|
'use client';
import { WalletButton } from '../solana/solana-provider';
import * as React from 'react';
import { ReactNode, Suspense, useEffect, useRef } from 'react';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { AccountChecker } from '../account/account-ui';
import {
ClusterChecker,
ClusterUiSelect,
ExplorerLink,
} from '../cluster/cluster-ui';
import toast, { Toaster } from 'react-hot-toast';
export function UiLayout({
children,
links,
}: {
children: ReactNode;
links: { label: string; path: string }[];
}) {
const pathname = usePathname();
return (
<div className="h-full flex flex-col">
<div className="navbar bg-base-300 text-neutral-content flex-col md:flex-row space-y-2 md:space-y-0">
<div className="flex-1">
<Link className="btn btn-ghost normal-case text-xl" href="/">
<img className="h-4 md:h-6" alt="Logo" src="/logo.png" />
</Link>
<ul className="menu menu-horizontal px-1 space-x-2">
{links.map(({ label, path }) => (
<li key={path}>
<Link
className={pathname.startsWith(path) ? 'active' : ''}
href={path}
>
{label}
</Link>
</li>
))}
</ul>
</div>
<div className="flex-none space-x-2">
<WalletButton />
<ClusterUiSelect />
</div>
</div>
<ClusterChecker>
<AccountChecker />
</ClusterChecker>
<div className="flex-grow mx-4 lg:mx-auto">
<Suspense
fallback={
<div className="text-center my-32">
<span className="loading loading-spinner loading-lg"></span>
</div>
}
>
{children}
</Suspense>
<Toaster position="bottom-right" />
</div>
<footer className="footer footer-center p-4 bg-base-300 text-base-content">
<aside>
<p>
Generated by{' '}
<a
className="link hover:text-white"
href="https://github.com/solana-developers/create-solana-dapp"
target="_blank"
rel="noopener noreferrer"
>
create-solana-dapp
</a>
</p>
</aside>
</footer>
</div>
);
}
export function AppModal({
children,
title,
hide,
show,
submit,
submitDisabled,
submitLabel,
}: {
children: ReactNode;
title: string;
hide: () => void;
show: boolean;
submit?: () => void;
submitDisabled?: boolean;
submitLabel?: string;
}) {
const dialogRef = useRef<HTMLDialogElement | null>(null);
useEffect(() => {
if (!dialogRef.current) return;
if (show) {
dialogRef.current.showModal();
} else {
dialogRef.current.close();
}
}, [show, dialogRef]);
return (
<dialog className="modal" ref={dialogRef}>
<div className="modal-box space-y-5">
<h3 className="font-bold text-lg">{title}</h3>
{children}
<div className="modal-action">
<div className="join space-x-2">
{submit ? (
<button
className="btn btn-xs lg:btn-md btn-primary"
onClick={submit}
disabled={submitDisabled}
>
{submitLabel || 'Save'}
</button>
) : null}
<button onClick={hide} className="btn">
Close
</button>
</div>
</div>
</div>
</dialog>
);
}
export function AppHero({
children,
title,
subtitle,
}: {
children?: ReactNode;
title: ReactNode;
subtitle: ReactNode;
}) {
return (
<div className="hero py-[64px]">
<div className="hero-content text-center">
<div className="max-w-2xl">
{typeof title === 'string' ? (
<h1 className="text-5xl font-bold">{title}</h1>
) : (
title
)}
{typeof subtitle === 'string' ? (
<p className="py-6">{subtitle}</p>
) : (
subtitle
)}
{children}
</div>
</div>
</div>
);
}
export function ellipsify(str = '', len = 4) {
if (str.length > 30) {
return (
str.substring(0, len) + '..' + str.substring(str.length - len, str.length)
);
}
return str;
}
export function useTransactionToast() {
return (signature: string) => {
toast.success(
<div className={'text-center'}>
<div className="text-lg">Transaction sent</div>
<ExplorerLink
path={`tx/${signature}`}
label={'View Transaction'}
className="btn btn-xs btn-primary"
/>
</div>
);
};
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/cluster/cluster-data-access.tsx
|
'use client';
import { clusterApiUrl, Connection } from '@solana/web3.js';
import { atom, useAtomValue, useSetAtom } from 'jotai';
import { atomWithStorage } from 'jotai/utils';
import { createContext, ReactNode, useContext } from 'react';
import toast from 'react-hot-toast';
export interface Cluster {
name: string;
endpoint: string;
network?: ClusterNetwork;
active?: boolean;
}
export enum ClusterNetwork {
Mainnet = 'mainnet-beta',
Testnet = 'testnet',
Devnet = 'devnet',
Custom = 'custom',
}
// By default, we don't configure the mainnet-beta cluster
// The endpoint provided by clusterApiUrl('mainnet-beta') does not allow access from the browser due to CORS restrictions
// To use the mainnet-beta cluster, provide a custom endpoint
export const defaultClusters: Cluster[] = [
{
name: 'devnet',
endpoint: clusterApiUrl('devnet'),
network: ClusterNetwork.Devnet,
},
{ name: 'local', endpoint: 'http://localhost:8899' },
{
name: 'testnet',
endpoint: clusterApiUrl('testnet'),
network: ClusterNetwork.Testnet,
},
];
const clusterAtom = atomWithStorage<Cluster>(
'solana-cluster',
defaultClusters[0]
);
const clustersAtom = atomWithStorage<Cluster[]>(
'solana-clusters',
defaultClusters
);
const activeClustersAtom = atom<Cluster[]>((get) => {
const clusters = get(clustersAtom);
const cluster = get(clusterAtom);
return clusters.map((item) => ({
...item,
active: item.name === cluster.name,
}));
});
const activeClusterAtom = atom<Cluster>((get) => {
const clusters = get(activeClustersAtom);
return clusters.find((item) => item.active) || clusters[0];
});
export interface ClusterProviderContext {
cluster: Cluster;
clusters: Cluster[];
addCluster: (cluster: Cluster) => void;
deleteCluster: (cluster: Cluster) => void;
setCluster: (cluster: Cluster) => void;
getExplorerUrl(path: string): string;
}
const Context = createContext<ClusterProviderContext>(
{} as ClusterProviderContext
);
export function ClusterProvider({ children }: { children: ReactNode }) {
const cluster = useAtomValue(activeClusterAtom);
const clusters = useAtomValue(activeClustersAtom);
const setCluster = useSetAtom(clusterAtom);
const setClusters = useSetAtom(clustersAtom);
const value: ClusterProviderContext = {
cluster,
clusters: clusters.sort((a, b) => (a.name > b.name ? 1 : -1)),
addCluster: (cluster: Cluster) => {
try {
new Connection(cluster.endpoint);
setClusters([...clusters, cluster]);
} catch (err) {
toast.error(`${err}`);
}
},
deleteCluster: (cluster: Cluster) => {
setClusters(clusters.filter((item) => item.name !== cluster.name));
},
setCluster: (cluster: Cluster) => setCluster(cluster),
getExplorerUrl: (path: string) =>
`https://explorer.solana.com/${path}${getClusterUrlParam(cluster)}`,
};
return <Context.Provider value={value}>{children}</Context.Provider>;
}
export function useCluster() {
return useContext(Context);
}
function getClusterUrlParam(cluster: Cluster): string {
let suffix = '';
switch (cluster.network) {
case ClusterNetwork.Devnet:
suffix = 'devnet';
break;
case ClusterNetwork.Mainnet:
suffix = '';
break;
case ClusterNetwork.Testnet:
suffix = 'testnet';
break;
default:
suffix = `custom&customUrl=${encodeURIComponent(cluster.endpoint)}`;
break;
}
return suffix.length ? `?cluster=${suffix}` : '';
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/cluster/cluster-ui.tsx
|
'use client';
import { useConnection } from '@solana/wallet-adapter-react';
import { IconTrash } from '@tabler/icons-react';
import { useQuery } from '@tanstack/react-query';
import { ReactNode, useState } from 'react';
import { AppModal } from '../ui/ui-layout';
import { ClusterNetwork, useCluster } from './cluster-data-access';
import { Connection } from '@solana/web3.js';
export function ExplorerLink({
path,
label,
className,
}: {
path: string;
label: string;
className?: string;
}) {
const { getExplorerUrl } = useCluster();
return (
<a
href={getExplorerUrl(path)}
target="_blank"
rel="noopener noreferrer"
className={className ? className : `link font-mono`}
>
{label}
</a>
);
}
export function ClusterChecker({ children }: { children: ReactNode }) {
const { cluster } = useCluster();
const { connection } = useConnection();
const query = useQuery({
queryKey: ['version', { cluster, endpoint: connection.rpcEndpoint }],
queryFn: () => connection.getVersion(),
retry: 1,
});
if (query.isLoading) {
return null;
}
if (query.isError || !query.data) {
return (
<div className="alert alert-warning text-warning-content/80 rounded-none flex justify-center">
<span>
Error connecting to cluster <strong>{cluster.name}</strong>
</span>
<button
className="btn btn-xs btn-neutral"
onClick={() => query.refetch()}
>
Refresh
</button>
</div>
);
}
return children;
}
export function ClusterUiSelect() {
const { clusters, setCluster, cluster } = useCluster();
return (
<div className="dropdown dropdown-end">
<label tabIndex={0} className="btn btn-primary rounded-btn">
{cluster.name}
</label>
<ul
tabIndex={0}
className="menu dropdown-content z-[1] p-2 shadow bg-base-100 rounded-box w-52 mt-4"
>
{clusters.map((item) => (
<li key={item.name}>
<button
className={`btn btn-sm ${
item.active ? 'btn-primary' : 'btn-ghost'
}`}
onClick={() => setCluster(item)}
>
{item.name}
</button>
</li>
))}
</ul>
</div>
);
}
export function ClusterUiModal({
hideModal,
show,
}: {
hideModal: () => void;
show: boolean;
}) {
const { addCluster } = useCluster();
const [name, setName] = useState('');
const [network, setNetwork] = useState<ClusterNetwork | undefined>();
const [endpoint, setEndpoint] = useState('');
return (
<AppModal
title={'Add Cluster'}
hide={hideModal}
show={show}
submit={() => {
try {
new Connection(endpoint);
if (name) {
addCluster({ name, network, endpoint });
hideModal();
} else {
console.log('Invalid cluster name');
}
} catch {
console.log('Invalid cluster endpoint');
}
}}
submitLabel="Save"
>
<input
type="text"
placeholder="Name"
className="input input-bordered w-full"
value={name}
onChange={(e) => setName(e.target.value)}
/>
<input
type="text"
placeholder="Endpoint"
className="input input-bordered w-full"
value={endpoint}
onChange={(e) => setEndpoint(e.target.value)}
/>
<select
className="select select-bordered w-full"
value={network}
onChange={(e) => setNetwork(e.target.value as ClusterNetwork)}
>
<option value={undefined}>Select a network</option>
<option value={ClusterNetwork.Devnet}>Devnet</option>
<option value={ClusterNetwork.Testnet}>Testnet</option>
<option value={ClusterNetwork.Mainnet}>Mainnet</option>
</select>
</AppModal>
);
}
export function ClusterUiTable() {
const { clusters, setCluster, deleteCluster } = useCluster();
return (
<div className="overflow-x-auto">
<table className="table border-4 border-separate border-base-300">
<thead>
<tr>
<th>Name/ Network / Endpoint</th>
<th className="text-center">Actions</th>
</tr>
</thead>
<tbody>
{clusters.map((item) => (
<tr key={item.name} className={item?.active ? 'bg-base-200' : ''}>
<td className="space-y-2">
<div className="whitespace-nowrap space-x-2">
<span className="text-xl">
{item?.active ? (
item.name
) : (
<button
title="Select cluster"
className="link link-secondary"
onClick={() => setCluster(item)}
>
{item.name}
</button>
)}
</span>
</div>
<span className="text-xs">
Network: {item.network ?? 'custom'}
</span>
<div className="whitespace-nowrap text-gray-500 text-xs">
{item.endpoint}
</div>
</td>
<td className="space-x-2 whitespace-nowrap text-center">
<button
disabled={item?.active}
className="btn btn-xs btn-default btn-outline"
onClick={() => {
if (!window.confirm('Are you sure?')) return;
deleteCluster(item);
}}
>
<IconTrash size={16} />
</button>
</td>
</tr>
))}
</tbody>
</table>
</div>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/cluster/cluster-feature.tsx
|
'use client';
import { useState } from 'react';
import { AppHero } from '../ui/ui-layout';
import { ClusterUiModal } from './cluster-ui';
import { ClusterUiTable } from './cluster-ui';
export default function ClusterFeature() {
const [showModal, setShowModal] = useState(false);
return (
<div>
<AppHero
title="Clusters"
subtitle="Manage and select your Solana clusters"
>
<ClusterUiModal
show={showModal}
hideModal={() => setShowModal(false)}
/>
<button
className="btn btn-xs lg:btn-md btn-primary"
onClick={() => setShowModal(true)}
>
Add Cluster
</button>
</AppHero>
<ClusterUiTable />
</div>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/solana/solana-provider.tsx
|
'use client';
import dynamic from 'next/dynamic';
import { AnchorProvider } from '@coral-xyz/anchor';
import { WalletError } from '@solana/wallet-adapter-base';
import {
AnchorWallet,
useConnection,
useWallet,
ConnectionProvider,
WalletProvider,
} from '@solana/wallet-adapter-react';
import { WalletModalProvider } from '@solana/wallet-adapter-react-ui';
import { ReactNode, useCallback, useMemo } from 'react';
import { useCluster } from '../cluster/cluster-data-access';
require('@solana/wallet-adapter-react-ui/styles.css');
export const WalletButton = dynamic(
async () =>
(await import('@solana/wallet-adapter-react-ui')).WalletMultiButton,
{ ssr: false }
);
export function SolanaProvider({ children }: { children: ReactNode }) {
const { cluster } = useCluster();
const endpoint = useMemo(() => cluster.endpoint, [cluster]);
const onError = useCallback((error: WalletError) => {
console.error(error);
}, []);
return (
<ConnectionProvider endpoint={endpoint}>
<WalletProvider wallets={[]} onError={onError} autoConnect={true}>
<WalletModalProvider>{children}</WalletModalProvider>
</WalletProvider>
</ConnectionProvider>
);
}
export function useAnchorProvider() {
const { connection } = useConnection();
const wallet = useWallet();
return new AnchorProvider(connection, wallet as AnchorWallet, {
commitment: 'confirmed',
});
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/dashboard/dashboard-feature.tsx
|
'use client';
import { AppHero } from '../ui/ui-layout';
const links: { label: string; href: string }[] = [
{ label: 'Solana Docs', href: 'https://docs.solana.com/' },
{ label: 'Solana Faucet', href: 'https://faucet.solana.com/' },
{ label: 'Solana Cookbook', href: 'https://solanacookbook.com/' },
{ label: 'Solana Stack Overflow', href: 'https://solana.stackexchange.com/' },
{
label: 'Solana Developers GitHub',
href: 'https://github.com/solana-developers/',
},
];
export default function DashboardFeature() {
return (
<div>
<AppHero title="gm" subtitle="Say hi to your new Solana dApp." />
<div className="max-w-xl mx-auto py-6 sm:px-6 lg:px-8 text-center">
<div className="space-y-2">
<p>Here are some helpful links to get you started.</p>
{links.map((link, index) => (
<div key={index}>
<a
href={link.href}
className="link"
target="_blank"
rel="noopener noreferrer"
>
{link.label}
</a>
</div>
))}
</div>
</div>
</div>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/vesting/vesting-data-access.tsx
|
"use client";
import { getVestingProgram, getVestingProgramId } from "@token-vesting/anchor";
import { useConnection } from "@solana/wallet-adapter-react";
import { Cluster, PublicKey } from "@solana/web3.js";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useMemo } from "react";
import toast from "react-hot-toast";
import { useCluster } from "../cluster/cluster-data-access";
import { useAnchorProvider } from "../solana/solana-provider";
import { useTransactionToast } from "../ui/ui-layout";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
interface CreateVestingArgs {
companyName: string;
mint: string;
}
interface CreateEmployeeArgs {
startTime: number;
endTime: number;
totalAmount: number;
cliffTime: number;
}
export function useVestingProgram() {
const { connection } = useConnection();
const { cluster } = useCluster();
const transactionToast = useTransactionToast();
const provider = useAnchorProvider();
const programId = useMemo(
() => getVestingProgramId(cluster.network as Cluster),
[cluster]
);
const program = getVestingProgram(provider);
const accounts = useQuery({
queryKey: ["vesting", "all", { cluster }],
queryFn: () => program.account.vestingAccount.all(),
});
const getProgramAccount = useQuery({
queryKey: ["get-program-account", { cluster }],
queryFn: () => connection.getParsedAccountInfo(programId),
});
const createVestingAccount = useMutation<string, Error, CreateVestingArgs>({
mutationKey: ["vestingAccount", "create", { cluster }],
mutationFn: ({ companyName, mint }) =>
program.methods
.createVestingAccount(companyName)
.accounts({ mint: new PublicKey(mint), tokenProgram: TOKEN_PROGRAM_ID })
.rpc(),
onSuccess: (signature) => {
transactionToast(signature);
return accounts.refetch();
},
onError: () => toast.error("Failed to initialize account"),
});
return {
program,
programId,
accounts,
getProgramAccount,
createVestingAccount,
};
}
export function useVestingProgramAccount({ account }: { account: PublicKey }) {
const { cluster } = useCluster();
const transactionToast = useTransactionToast();
const { program, accounts } = useVestingProgram();
const accountQuery = useQuery({
queryKey: ["vesting", "fetch", { cluster, account }],
queryFn: () => program.account.vestingAccount.fetch(account),
});
const createEmployeeVesting = useMutation<string, Error, CreateEmployeeArgs>({
mutationKey: ["vesting", "close", { cluster, account }],
mutationFn: ({ startTime, endTime, totalAmount, cliffTime }) =>
program.methods
.createEmployeeVesting(startTime, endTime, totalAmount, cliffTime)
.rpc(),
onSuccess: (tx) => {
transactionToast(tx);
return accounts.refetch();
},
});
return {
accountQuery,
createEmployeeVesting,
};
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/vesting/vesting-feature.tsx
|
'use client';
import { useWallet } from '@solana/wallet-adapter-react';
import { WalletButton } from '../solana/solana-provider';
import { AppHero, ellipsify } from '../ui/ui-layout';
import { ExplorerLink } from '../cluster/cluster-ui';
import { useVestingProgram } from './vesting-data-access';
import { VestingCreate, VestingList } from './vesting-ui';
export default function VestingFeature() {
const { publicKey } = useWallet();
const { programId } = useVestingProgram();
return publicKey ? (
<div>
<AppHero
title="Token Vesting"
subtitle={'Create a new account by clicking the "Create" button.'}
>
<p className="mb-6">
<ExplorerLink
path={`account/${programId}`}
label={ellipsify(programId.toString())}
/>
</p>
<VestingCreate />
</AppHero>
<VestingList />
</div>
) : (
<div className="max-w-4xl mx-auto">
<div className="hero py-[64px]">
<div className="hero-content text-center">
<WalletButton />
</div>
</div>
</div>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/vesting/vesting-ui.tsx
|
"use client";
import { PublicKey } from "@solana/web3.js";
import { useMemo, useState } from "react";
import {
useVestingProgram,
useVestingProgramAccount,
} from "./vesting-data-access";
import { useWallet } from "@solana/wallet-adapter-react";
export function VestingCreate() {
const { createVestingAccount } = useVestingProgram();
const { publicKey } = useWallet();
const [company, setCompany] = useState("");
const [mint, setMint] = useState("");
const isFormValid = company.length > 0;
const handleSubmit = () => {
if (publicKey && isFormValid) {
createVestingAccount.mutateAsync({ companyName: company, mint: mint });
}
};
if (!publicKey) {
return <p>Connect your wallet</p>;
}
return (
<div>
<input
type="text"
placeholder="Company Name"
value={company}
onChange={(e) => setCompany(e.target.value)}
className="input input-bordered w-full max-w-xs"
/>
<input
type="text"
placeholder="Token Mint Address"
value={mint}
onChange={(e) => setMint(e.target.value)}
className="input input-bordered w-full max-w-xs"
/>
<button
className="btn btn-xs lg:btn-md btn-primary"
onClick={handleSubmit}
disabled={createVestingAccount.isPending || !isFormValid}
>
Create New Vesting Account {createVestingAccount.isPending && "..."}
</button>
</div>
);
}
export function VestingList() {
const { accounts, getProgramAccount } = useVestingProgram();
if (getProgramAccount.isLoading) {
return <span className="loading loading-spinner loading-lg"></span>;
}
if (!getProgramAccount.data?.value) {
return (
<div className="alert alert-info flex justify-center">
<span>
Program account not found. Make sure you have deployed the program and
are on the correct cluster.
</span>
</div>
);
}
return (
<div className={"space-y-6"}>
{accounts.isLoading ? (
<span className="loading loading-spinner loading-lg"></span>
) : accounts.data?.length ? (
<div className="grid md:grid-cols-2 gap-4">
{accounts.data?.map((account) => (
<VestingCard
key={account.publicKey.toString()}
account={account.publicKey}
/>
))}
</div>
) : (
<div className="text-center">
<h2 className={"text-2xl"}>No accounts</h2>
No accounts found. Create one above to get started.
</div>
)}
</div>
);
}
function VestingCard({ account }: { account: PublicKey }) {
const { accountQuery, createEmployeeVesting } = useVestingProgramAccount({
account,
});
const [startTime, setStartTime] = useState(0);
const [endTime, setEndTime] = useState(0);
const [cliffTime, setCliffTime] = useState(0);
const [totalAmount, setTotalAmount] = useState(0);
const companyName = useMemo(
() => accountQuery.data?.companyName ?? 0,
[accountQuery.data?.companyName]
);
return accountQuery.isLoading ? (
<span className="loading loading-spinner loading-lg"></span>
) : (
<div className="card card-bordered border-base-300 border-4 text-neutral-content">
<div className="card-body items-center text-center">
<div className="space-y-6">
<h2
className="card-title justify-center text-3xl cursor-pointer"
onClick={() => accountQuery.refetch()}
>
{companyName}
</h2>
<div className="card-actions justify-around">
<input
type="text"
placeholder="Start Time"
value={startTime || ""}
onChange={(e) => setStartTime(parseInt(e.target.value))}
className="input input-bordered w-full max-w-xs"
/>
<input
type="text"
placeholder="End Time"
value={endTime || ""}
onChange={(e) => setEndTime(parseInt(e.target.value))}
className="input input-bordered w-full max-w-xs"
/>
<input
type="text"
placeholder="Cliff Time"
value={cliffTime || ""}
onChange={(e) => setCliffTime(parseInt(e.target.value))}
className="input input-bordered w-full max-w-xs"
/>
<input
type="text"
placeholder="Total Allocation"
value={totalAmount || ""}
onChange={(e) => setTotalAmount(parseInt(e.target.value))}
className="input input-bordered w-full max-w-xs"
/>
<button
className="btn btn-xs lg:btn-md btn-outline"
onClick={() =>
createEmployeeVesting.mutateAsync({
startTime,
endTime,
totalAmount,
cliffTime,
})
}
disabled={createEmployeeVesting.isPending}
>
Create Employee Vesting Account
</button>
</div>
</div>
</div>
</div>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/account/account-data-access.tsx
|
'use client';
import { useConnection, useWallet } from '@solana/wallet-adapter-react';
import { TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID } from '@solana/spl-token';
import {
Connection,
LAMPORTS_PER_SOL,
PublicKey,
SystemProgram,
TransactionMessage,
TransactionSignature,
VersionedTransaction,
} from '@solana/web3.js';
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
import toast from 'react-hot-toast';
import { useTransactionToast } from '../ui/ui-layout';
export function useGetBalance({ address }: { address: PublicKey }) {
const { connection } = useConnection();
return useQuery({
queryKey: ['get-balance', { endpoint: connection.rpcEndpoint, address }],
queryFn: () => connection.getBalance(address),
});
}
export function useGetSignatures({ address }: { address: PublicKey }) {
const { connection } = useConnection();
return useQuery({
queryKey: ['get-signatures', { endpoint: connection.rpcEndpoint, address }],
queryFn: () => connection.getConfirmedSignaturesForAddress2(address),
});
}
export function useGetTokenAccounts({ address }: { address: PublicKey }) {
const { connection } = useConnection();
return useQuery({
queryKey: [
'get-token-accounts',
{ endpoint: connection.rpcEndpoint, address },
],
queryFn: async () => {
const [tokenAccounts, token2022Accounts] = await Promise.all([
connection.getParsedTokenAccountsByOwner(address, {
programId: TOKEN_PROGRAM_ID,
}),
connection.getParsedTokenAccountsByOwner(address, {
programId: TOKEN_2022_PROGRAM_ID,
}),
]);
return [...tokenAccounts.value, ...token2022Accounts.value];
},
});
}
export function useTransferSol({ address }: { address: PublicKey }) {
const { connection } = useConnection();
const transactionToast = useTransactionToast();
const wallet = useWallet();
const client = useQueryClient();
return useMutation({
mutationKey: [
'transfer-sol',
{ endpoint: connection.rpcEndpoint, address },
],
mutationFn: async (input: { destination: PublicKey; amount: number }) => {
let signature: TransactionSignature = '';
try {
const { transaction, latestBlockhash } = await createTransaction({
publicKey: address,
destination: input.destination,
amount: input.amount,
connection,
});
// Send transaction and await for signature
signature = await wallet.sendTransaction(transaction, connection);
// Send transaction and await for signature
await connection.confirmTransaction(
{ signature, ...latestBlockhash },
'confirmed'
);
console.log(signature);
return signature;
} catch (error: unknown) {
console.log('error', `Transaction failed! ${error}`, signature);
return;
}
},
onSuccess: (signature) => {
if (signature) {
transactionToast(signature);
}
return Promise.all([
client.invalidateQueries({
queryKey: [
'get-balance',
{ endpoint: connection.rpcEndpoint, address },
],
}),
client.invalidateQueries({
queryKey: [
'get-signatures',
{ endpoint: connection.rpcEndpoint, address },
],
}),
]);
},
onError: (error) => {
toast.error(`Transaction failed! ${error}`);
},
});
}
export function useRequestAirdrop({ address }: { address: PublicKey }) {
const { connection } = useConnection();
const transactionToast = useTransactionToast();
const client = useQueryClient();
return useMutation({
mutationKey: ['airdrop', { endpoint: connection.rpcEndpoint, address }],
mutationFn: async (amount: number = 1) => {
const [latestBlockhash, signature] = await Promise.all([
connection.getLatestBlockhash(),
connection.requestAirdrop(address, amount * LAMPORTS_PER_SOL),
]);
await connection.confirmTransaction(
{ signature, ...latestBlockhash },
'confirmed'
);
return signature;
},
onSuccess: (signature) => {
transactionToast(signature);
return Promise.all([
client.invalidateQueries({
queryKey: [
'get-balance',
{ endpoint: connection.rpcEndpoint, address },
],
}),
client.invalidateQueries({
queryKey: [
'get-signatures',
{ endpoint: connection.rpcEndpoint, address },
],
}),
]);
},
});
}
async function createTransaction({
publicKey,
destination,
amount,
connection,
}: {
publicKey: PublicKey;
destination: PublicKey;
amount: number;
connection: Connection;
}): Promise<{
transaction: VersionedTransaction;
latestBlockhash: { blockhash: string; lastValidBlockHeight: number };
}> {
// Get the latest blockhash to use in our transaction
const latestBlockhash = await connection.getLatestBlockhash();
// Create instructions to send, in this case a simple transfer
const instructions = [
SystemProgram.transfer({
fromPubkey: publicKey,
toPubkey: destination,
lamports: amount * LAMPORTS_PER_SOL,
}),
];
// Create a new TransactionMessage with version and compile it to legacy
const messageLegacy = new TransactionMessage({
payerKey: publicKey,
recentBlockhash: latestBlockhash.blockhash,
instructions,
}).compileToLegacyMessage();
// Create a new VersionedTransaction which supports legacy and v0
const transaction = new VersionedTransaction(messageLegacy);
return {
transaction,
latestBlockhash,
};
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/account/account-ui.tsx
|
'use client';
import { useWallet } from '@solana/wallet-adapter-react';
import { LAMPORTS_PER_SOL, PublicKey } from '@solana/web3.js';
import { IconRefresh } from '@tabler/icons-react';
import { useQueryClient } from '@tanstack/react-query';
import { useMemo, useState } from 'react';
import { AppModal, ellipsify } from '../ui/ui-layout';
import { useCluster } from '../cluster/cluster-data-access';
import { ExplorerLink } from '../cluster/cluster-ui';
import {
useGetBalance,
useGetSignatures,
useGetTokenAccounts,
useRequestAirdrop,
useTransferSol,
} from './account-data-access';
export function AccountBalance({ address }: { address: PublicKey }) {
const query = useGetBalance({ address });
return (
<div>
<h1
className="text-5xl font-bold cursor-pointer"
onClick={() => query.refetch()}
>
{query.data ? <BalanceSol balance={query.data} /> : '...'} SOL
</h1>
</div>
);
}
export function AccountChecker() {
const { publicKey } = useWallet();
if (!publicKey) {
return null;
}
return <AccountBalanceCheck address={publicKey} />;
}
export function AccountBalanceCheck({ address }: { address: PublicKey }) {
const { cluster } = useCluster();
const mutation = useRequestAirdrop({ address });
const query = useGetBalance({ address });
if (query.isLoading) {
return null;
}
if (query.isError || !query.data) {
return (
<div className="alert alert-warning text-warning-content/80 rounded-none flex justify-center">
<span>
You are connected to <strong>{cluster.name}</strong> but your account
is not found on this cluster.
</span>
<button
className="btn btn-xs btn-neutral"
onClick={() =>
mutation.mutateAsync(1).catch((err) => console.log(err))
}
>
Request Airdrop
</button>
</div>
);
}
return null;
}
export function AccountButtons({ address }: { address: PublicKey }) {
const wallet = useWallet();
const { cluster } = useCluster();
const [showAirdropModal, setShowAirdropModal] = useState(false);
const [showReceiveModal, setShowReceiveModal] = useState(false);
const [showSendModal, setShowSendModal] = useState(false);
return (
<div>
<ModalAirdrop
hide={() => setShowAirdropModal(false)}
address={address}
show={showAirdropModal}
/>
<ModalReceive
address={address}
show={showReceiveModal}
hide={() => setShowReceiveModal(false)}
/>
<ModalSend
address={address}
show={showSendModal}
hide={() => setShowSendModal(false)}
/>
<div className="space-x-2">
<button
disabled={cluster.network?.includes('mainnet')}
className="btn btn-xs lg:btn-md btn-outline"
onClick={() => setShowAirdropModal(true)}
>
Airdrop
</button>
<button
disabled={wallet.publicKey?.toString() !== address.toString()}
className="btn btn-xs lg:btn-md btn-outline"
onClick={() => setShowSendModal(true)}
>
Send
</button>
<button
className="btn btn-xs lg:btn-md btn-outline"
onClick={() => setShowReceiveModal(true)}
>
Receive
</button>
</div>
</div>
);
}
export function AccountTokens({ address }: { address: PublicKey }) {
const [showAll, setShowAll] = useState(false);
const query = useGetTokenAccounts({ address });
const client = useQueryClient();
const items = useMemo(() => {
if (showAll) return query.data;
return query.data?.slice(0, 5);
}, [query.data, showAll]);
return (
<div className="space-y-2">
<div className="justify-between">
<div className="flex justify-between">
<h2 className="text-2xl font-bold">Token Accounts</h2>
<div className="space-x-2">
{query.isLoading ? (
<span className="loading loading-spinner"></span>
) : (
<button
className="btn btn-sm btn-outline"
onClick={async () => {
await query.refetch();
await client.invalidateQueries({
queryKey: ['getTokenAccountBalance'],
});
}}
>
<IconRefresh size={16} />
</button>
)}
</div>
</div>
</div>
{query.isError && (
<pre className="alert alert-error">
Error: {query.error?.message.toString()}
</pre>
)}
{query.isSuccess && (
<div>
{query.data.length === 0 ? (
<div>No token accounts found.</div>
) : (
<table className="table border-4 rounded-lg border-separate border-base-300">
<thead>
<tr>
<th>Public Key</th>
<th>Mint</th>
<th className="text-right">Balance</th>
</tr>
</thead>
<tbody>
{items?.map(({ account, pubkey }) => (
<tr key={pubkey.toString()}>
<td>
<div className="flex space-x-2">
<span className="font-mono">
<ExplorerLink
label={ellipsify(pubkey.toString())}
path={`account/${pubkey.toString()}`}
/>
</span>
</div>
</td>
<td>
<div className="flex space-x-2">
<span className="font-mono">
<ExplorerLink
label={ellipsify(account.data.parsed.info.mint)}
path={`account/${account.data.parsed.info.mint.toString()}`}
/>
</span>
</div>
</td>
<td className="text-right">
<span className="font-mono">
{account.data.parsed.info.tokenAmount.uiAmount}
</span>
</td>
</tr>
))}
{(query.data?.length ?? 0) > 5 && (
<tr>
<td colSpan={4} className="text-center">
<button
className="btn btn-xs btn-outline"
onClick={() => setShowAll(!showAll)}
>
{showAll ? 'Show Less' : 'Show All'}
</button>
</td>
</tr>
)}
</tbody>
</table>
)}
</div>
)}
</div>
);
}
export function AccountTransactions({ address }: { address: PublicKey }) {
const query = useGetSignatures({ address });
const [showAll, setShowAll] = useState(false);
const items = useMemo(() => {
if (showAll) return query.data;
return query.data?.slice(0, 5);
}, [query.data, showAll]);
return (
<div className="space-y-2">
<div className="flex justify-between">
<h2 className="text-2xl font-bold">Transaction History</h2>
<div className="space-x-2">
{query.isLoading ? (
<span className="loading loading-spinner"></span>
) : (
<button
className="btn btn-sm btn-outline"
onClick={() => query.refetch()}
>
<IconRefresh size={16} />
</button>
)}
</div>
</div>
{query.isError && (
<pre className="alert alert-error">
Error: {query.error?.message.toString()}
</pre>
)}
{query.isSuccess && (
<div>
{query.data.length === 0 ? (
<div>No transactions found.</div>
) : (
<table className="table border-4 rounded-lg border-separate border-base-300">
<thead>
<tr>
<th>Signature</th>
<th className="text-right">Slot</th>
<th>Block Time</th>
<th className="text-right">Status</th>
</tr>
</thead>
<tbody>
{items?.map((item) => (
<tr key={item.signature}>
<th className="font-mono">
<ExplorerLink
path={`tx/${item.signature}`}
label={ellipsify(item.signature, 8)}
/>
</th>
<td className="font-mono text-right">
<ExplorerLink
path={`block/${item.slot}`}
label={item.slot.toString()}
/>
</td>
<td>
{new Date((item.blockTime ?? 0) * 1000).toISOString()}
</td>
<td className="text-right">
{item.err ? (
<div
className="badge badge-error"
title={JSON.stringify(item.err)}
>
Failed
</div>
) : (
<div className="badge badge-success">Success</div>
)}
</td>
</tr>
))}
{(query.data?.length ?? 0) > 5 && (
<tr>
<td colSpan={4} className="text-center">
<button
className="btn btn-xs btn-outline"
onClick={() => setShowAll(!showAll)}
>
{showAll ? 'Show Less' : 'Show All'}
</button>
</td>
</tr>
)}
</tbody>
</table>
)}
</div>
)}
</div>
);
}
function BalanceSol({ balance }: { balance: number }) {
return (
<span>{Math.round((balance / LAMPORTS_PER_SOL) * 100000) / 100000}</span>
);
}
function ModalReceive({
hide,
show,
address,
}: {
hide: () => void;
show: boolean;
address: PublicKey;
}) {
return (
<AppModal title="Receive" hide={hide} show={show}>
<p>Receive assets by sending them to your public key:</p>
<code>{address.toString()}</code>
</AppModal>
);
}
function ModalAirdrop({
hide,
show,
address,
}: {
hide: () => void;
show: boolean;
address: PublicKey;
}) {
const mutation = useRequestAirdrop({ address });
const [amount, setAmount] = useState('2');
return (
<AppModal
hide={hide}
show={show}
title="Airdrop"
submitDisabled={!amount || mutation.isPending}
submitLabel="Request Airdrop"
submit={() => mutation.mutateAsync(parseFloat(amount)).then(() => hide())}
>
<input
disabled={mutation.isPending}
type="number"
step="any"
min="1"
placeholder="Amount"
className="input input-bordered w-full"
value={amount}
onChange={(e) => setAmount(e.target.value)}
/>
</AppModal>
);
}
function ModalSend({
hide,
show,
address,
}: {
hide: () => void;
show: boolean;
address: PublicKey;
}) {
const wallet = useWallet();
const mutation = useTransferSol({ address });
const [destination, setDestination] = useState('');
const [amount, setAmount] = useState('1');
if (!address || !wallet.sendTransaction) {
return <div>Wallet not connected</div>;
}
return (
<AppModal
hide={hide}
show={show}
title="Send"
submitDisabled={!destination || !amount || mutation.isPending}
submitLabel="Send"
submit={() => {
mutation
.mutateAsync({
destination: new PublicKey(destination),
amount: parseFloat(amount),
})
.then(() => hide());
}}
>
<input
disabled={mutation.isPending}
type="text"
placeholder="Destination"
className="input input-bordered w-full"
value={destination}
onChange={(e) => setDestination(e.target.value)}
/>
<input
disabled={mutation.isPending}
type="number"
step="any"
min="1"
placeholder="Amount"
className="input input-bordered w-full"
value={amount}
onChange={(e) => setAmount(e.target.value)}
/>
</AppModal>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/account/account-detail-feature.tsx
|
'use client';
import { PublicKey } from '@solana/web3.js';
import { useMemo } from 'react';
import { useParams } from 'next/navigation';
import { ExplorerLink } from '../cluster/cluster-ui';
import { AppHero, ellipsify } from '../ui/ui-layout';
import {
AccountBalance,
AccountButtons,
AccountTokens,
AccountTransactions,
} from './account-ui';
export default function AccountDetailFeature() {
const params = useParams();
const address = useMemo(() => {
if (!params.address) {
return;
}
try {
return new PublicKey(params.address);
} catch (e) {
console.log(`Invalid public key`, e);
}
}, [params]);
if (!address) {
return <div>Error loading account</div>;
}
return (
<div>
<AppHero
title={<AccountBalance address={address} />}
subtitle={
<div className="my-4">
<ExplorerLink
path={`account/${address}`}
label={ellipsify(address.toString())}
/>
</div>
}
>
<div className="my-4">
<AccountButtons address={address} />
</div>
</AppHero>
<div className="space-y-8">
<AccountTokens address={address} />
<AccountTransactions address={address} />
</div>
</div>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/web/components/account/account-list-feature.tsx
|
'use client';
import { useWallet } from '@solana/wallet-adapter-react';
import { WalletButton } from '../solana/solana-provider';
import { redirect } from 'next/navigation';
export default function AccountListFeature() {
const { publicKey } = useWallet();
if (publicKey) {
return redirect(`/account/${publicKey.toString()}`);
}
return (
<div className="hero py-[64px]">
<div className="hero-content text-center">
<WalletButton />
</div>
</div>
);
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/Cargo.toml
|
[workspace]
members = [
"programs/*"
]
resolver = "2"
[profile.release]
overflow-checks = true
lto = "fat"
codegen-units = 1
[profile.release.build-override]
opt-level = 3
incremental = false
codegen-units = 1
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/project.json
|
{
"name": "anchor",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "anchor/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/anchor",
"main": "anchor/src/index.ts",
"tsConfig": "anchor/tsconfig.lib.json",
"assets": [],
"project": "anchor/package.json",
"compiler": "swc",
"format": ["cjs", "esm"]
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "nx:run-commands",
"options": {
"cwd": "anchor",
"commands": ["anchor test"],
"parallel": false
}
},
"anchor": {
"executor": "nx:run-commands",
"options": {
"cwd": "anchor",
"commands": ["anchor"],
"parallel": false
}
},
"localnet": {
"executor": "nx:run-commands",
"options": {
"cwd": "anchor",
"commands": ["anchor localnet"],
"parallel": false
}
},
"jest": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "anchor/jest.config.ts"
}
}
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/.swcrc
|
{
"jsc": {
"target": "es2017",
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"decoratorMetadata": true,
"legacyDecorator": true
},
"keepClassNames": true,
"externalHelpers": true,
"loose": true
},
"module": {
"type": "es6"
},
"sourceMaps": true,
"exclude": [
"jest.config.ts",
".*\\.spec.tsx?$",
".*\\.test.tsx?$",
"./src/jest-setup.ts$",
"./**/jest-setup.ts$",
".*.js$"
]
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/Anchor.toml
|
[toolchain]
[features]
resolution = true
skip-lint = false
[programs.localnet]
vesting = "GFdLg11UBR8ZeePW43ZyD1gY4z4UQ96LPa22YBgnn4z8"
[registry]
url = "https://api.apr.dev"
[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
[scripts]
test = "../node_modules/.bin/nx run anchor:jest"
[test]
startup_wait = 5000
shutdown_wait = 2000
upgradeable = false
[test.validator]
bind_address = "127.0.0.1"
ledger = ".anchor/test-ledger"
rpc_port = 8899
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/package.json
|
{
"name": "@token-vesting/anchor",
"version": "0.0.1",
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@solana/spl-token": "^0.4.8",
"@solana/web3.js": "1.94.0",
"anchor-bankrun": "^0.4.0",
"solana-bankrun": "^0.2.0",
"spl-token-bankrun": "0.2.5"
},
"main": "./index.cjs",
"module": "./index.js",
"private": true
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/tsconfig.json
|
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/tsconfig.lib.json
|
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../dist/out-tsc",
"declaration": true,
"types": ["node"],
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*.ts"],
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/.eslintrc.json
|
{
"extends": ["../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"ignoredFiles": ["{projectRoot}/rollup.config.{js,ts,mjs,mts}"]
}
]
}
}
]
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/tsconfig.spec.json
|
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"jest.config.ts",
"src/**/*.test.ts",
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/jest.config.ts
|
/* eslint-disable */
import { readFileSync } from 'fs';
// Reading the SWC compilation config and remove the "exclude"
// for the test files to be compiled by SWC
const { exclude: _, ...swcJestConfig } = JSON.parse(
readFileSync(`${__dirname}/.swcrc`, 'utf-8')
);
// disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves.
// If we do not disable this, SWC Core will read .swcrc and won't transform our test files due to "exclude"
if (swcJestConfig.swcrc === undefined) {
swcJestConfig.swcrc = false;
}
// Uncomment if using global setup/teardown files being transformed via swc
// https://nx.dev/packages/jest/documents/overview#global-setup/teardown-with-nx-libraries
// jest needs EsModule Interop to find the default exported setup/teardown functions
// swcJestConfig.module.noInterop = false;
export default {
displayName: 'anchor',
preset: '../jest.preset.js',
transform: {
'^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
},
moduleFileExtensions: ['ts', 'js', 'html'],
testEnvironment: '',
coverageDirectory: '../coverage/anchor',
};
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/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.
import * as anchor from '@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/developer-bootcamp-2024/project-8-token-vesting/anchor
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/tests/bankrun.spec.ts
|
// No imports needed: web3, anchor, pg and more are globally available
import * as anchor from "@coral-xyz/anchor";
import { BankrunProvider } from "anchor-bankrun";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import { BN, Program } from "@coral-xyz/anchor";
import {
startAnchor,
Clock,
BanksClient,
ProgramTestContext,
} from "solana-bankrun";
import { createMint, mintTo } from "spl-token-bankrun";
import { PublicKey, Keypair } from "@solana/web3.js";
import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet";
import IDL from "../target/idl/vesting.json";
import { Vesting } from "../target/types/vesting";
import { SYSTEM_PROGRAM_ID } from "@coral-xyz/anchor/dist/cjs/native/system";
describe("Vesting Smart Contract Tests", () => {
const companyName = "Company";
let beneficiary: Keypair;
let vestingAccountKey: PublicKey;
let treasuryTokenAccount: PublicKey;
let employeeAccount: PublicKey;
let provider: BankrunProvider;
let program: Program<Vesting>;
let banksClient: BanksClient;
let employer: Keypair;
let mint: PublicKey;
let beneficiaryProvider: BankrunProvider;
let program2: Program<Vesting>;
let context: ProgramTestContext;
beforeAll(async () => {
beneficiary = new anchor.web3.Keypair();
// set up bankrun
context = await startAnchor(
"",
[{ name: "vesting", programId: new PublicKey(IDL.address) }],
[
{
address: beneficiary.publicKey,
info: {
lamports: 1_000_000_000,
data: Buffer.alloc(0),
owner: SYSTEM_PROGRAM_ID,
executable: false,
},
},
]
);
provider = new BankrunProvider(context);
anchor.setProvider(provider);
program = new Program<Vesting>(IDL as Vesting, provider);
banksClient = context.banksClient;
employer = provider.wallet.payer;
// Create a new mint
// @ts-ignore
mint = await createMint(banksClient, employer, employer.publicKey, null, 2);
// Generate a new keypair for the beneficiary
beneficiaryProvider = new BankrunProvider(context);
beneficiaryProvider.wallet = new NodeWallet(beneficiary);
program2 = new Program<Vesting>(IDL as Vesting, beneficiaryProvider);
// Derive PDAs
[vestingAccountKey] = PublicKey.findProgramAddressSync(
[Buffer.from(companyName)],
program.programId
);
[treasuryTokenAccount] = PublicKey.findProgramAddressSync(
[Buffer.from("vesting_treasury"), Buffer.from(companyName)],
program.programId
);
[employeeAccount] = PublicKey.findProgramAddressSync(
[
Buffer.from("employee_vesting"),
beneficiary.publicKey.toBuffer(),
vestingAccountKey.toBuffer(),
],
program.programId
);
});
it("should create a vesting account", async () => {
const tx = await program.methods
.createVestingAccount(companyName)
.accounts({
signer: employer.publicKey,
mint,
tokenProgram: TOKEN_PROGRAM_ID,
})
.rpc({ commitment: "confirmed" });
const vestingAccountData = await program.account.vestingAccount.fetch(
vestingAccountKey,
"confirmed"
);
console.log(
"Vesting Account Data:",
JSON.stringify(vestingAccountData, null, 2)
);
console.log("Create Vesting Account Transaction Signature:", tx);
});
it("should fund the treasury token account", async () => {
const amount = 10_000 * 10 ** 9;
const mintTx = await mintTo(
// @ts-ignores
banksClient,
employer,
mint,
treasuryTokenAccount,
employer,
amount
);
console.log("Mint to Treasury Transaction Signature:", mintTx);
});
it("should create an employee vesting account", async () => {
const tx2 = await program.methods
.createEmployeeVesting(new BN(0), new BN(100), new BN(100), new BN(0))
.accounts({
beneficiary: beneficiary.publicKey,
vestingAccount: vestingAccountKey,
})
.rpc({ commitment: "confirmed", skipPreflight: true });
console.log("Create Employee Account Transaction Signature:", tx2);
console.log("Employee account", employeeAccount.toBase58());
});
it("should claim tokens", async () => {
await new Promise((resolve) => setTimeout(resolve, 1000));
const currentClock = await banksClient.getClock();
context.setClock(
new Clock(
currentClock.slot,
currentClock.epochStartTimestamp,
currentClock.epoch,
currentClock.leaderScheduleEpoch,
1000n
)
);
console.log("Employee account", employeeAccount.toBase58());
const tx3 = await program2.methods
.claimTokens(companyName)
.accounts({
tokenProgram: TOKEN_PROGRAM_ID,
})
.rpc({ commitment: "confirmed" });
console.log("Claim Tokens transaction signature", tx3);
});
});
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/programs
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/programs/vesting/Cargo.toml
|
[package]
name = "vesting"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "vesting"
[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]
[dependencies]
anchor-lang = { version="0.30.1", features=["init-if-needed"] }
anchor-spl = "0.30.1"
solana-program = "1.18.17"
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/programs
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/programs/vesting/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/programs/vesting
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/programs/vesting/src/lib.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_interface::{ self, Mint, TokenAccount, TokenInterface, TransferChecked };
declare_id!("GFdLg11UBR8ZeePW43ZyD1gY4z4UQ96LPa22YBgnn4z8");
#[program]
pub mod vesting {
use super::*;
pub fn create_vesting_account(
ctx: Context<CreateVestingAccount>,
company_name: String
) -> Result<()> {
*ctx.accounts.vesting_account = VestingAccount {
owner: ctx.accounts.signer.key(),
mint: ctx.accounts.mint.key(),
treasury_token_account: ctx.accounts.treasury_token_account.key(),
company_name,
treasury_bump: ctx.bumps.treasury_token_account,
bump: ctx.bumps.vesting_account,
};
Ok(())
}
pub fn create_employee_vesting(
ctx: Context<CreateEmployeeAccount>,
start_time: i64,
end_time: i64,
total_amount: i64,
cliff_time: i64
) -> Result<()> {
*ctx.accounts.employee_account = EmployeeAccount {
beneficiary: ctx.accounts.beneficiary.key(),
start_time,
end_time,
total_amount,
total_withdrawn: 0,
cliff_time,
vesting_account: ctx.accounts.vesting_account.key(),
bump: ctx.bumps.employee_account,
};
Ok(())
}
pub fn claim_tokens(ctx: Context<ClaimTokens>, _company_name: String) -> Result<()> {
let employee_account = &mut ctx.accounts.employee_account;
let now = Clock::get()?.unix_timestamp;
// Check if the current time is before the cliff time
if now < employee_account.cliff_time {
return Err(ErrorCode::ClaimNotAvailableYet.into());
}
// Calculate the vested amount
let time_since_start = now.saturating_sub(employee_account.start_time);
let total_vesting_time = employee_account.end_time.saturating_sub(
employee_account.start_time
);
let vested_amount = if now >= employee_account.end_time {
employee_account.total_amount
} else {
(employee_account.total_amount * time_since_start) / total_vesting_time
};
//Calculate the amount that can be withdrawn
let claimable_amount = vested_amount.saturating_sub(employee_account.total_withdrawn);
// Check if there is anything left to claim
if claimable_amount == 0 {
return Err(ErrorCode::NothingToClaim.into());
}
let transfer_cpi_accounts = TransferChecked {
from: ctx.accounts.treasury_token_account.to_account_info(),
mint: ctx.accounts.mint.to_account_info(),
to: ctx.accounts.employee_token_account.to_account_info(),
authority: ctx.accounts.treasury_token_account.to_account_info(),
};
let cpi_program = ctx.accounts.token_program.to_account_info();
let signer_seeds: &[&[&[u8]]] = &[
&[
b"vesting_treasury",
ctx.accounts.vesting_account.company_name.as_ref(),
&[ctx.accounts.vesting_account.treasury_bump],
],
];
let cpi_context = CpiContext::new(cpi_program, transfer_cpi_accounts).with_signer(
signer_seeds
);
let decimals = ctx.accounts.mint.decimals;
token_interface::transfer_checked(cpi_context, claimable_amount as u64, decimals)?;
employee_account.total_withdrawn += claimable_amount;
Ok(())
}
}
#[derive(Accounts)]
#[instruction(company_name: String)]
pub struct CreateVestingAccount<'info> {
#[account(mut)]
pub signer: Signer<'info>,
#[account(
init,
space = 8 + VestingAccount::INIT_SPACE,
payer = signer,
seeds = [company_name.as_ref()],
bump
)]
pub vesting_account: Account<'info, VestingAccount>,
pub mint: InterfaceAccount<'info, Mint>,
#[account(
init,
token::mint = mint,
token::authority = treasury_token_account,
payer = signer,
seeds = [b"vesting_treasury", company_name.as_bytes()],
bump
)]
pub treasury_token_account: InterfaceAccount<'info, TokenAccount>,
pub token_program: Interface<'info, TokenInterface>,
pub system_program: Program<'info, System>,
}
#[derive(Accounts)]
pub struct CreateEmployeeAccount<'info> {
#[account(mut)]
pub owner: Signer<'info>,
pub beneficiary: SystemAccount<'info>,
#[account(has_one = owner)]
pub vesting_account: Account<'info, VestingAccount>,
#[account(
init,
space = 8 + EmployeeAccount::INIT_SPACE,
payer = owner,
seeds = [b"employee_vesting", beneficiary.key().as_ref(), vesting_account.key().as_ref()],
bump
)]
pub employee_account: Account<'info, EmployeeAccount>,
pub system_program: Program<'info, System>,
}
#[derive(Accounts)]
#[instruction(company_name: String)]
pub struct ClaimTokens<'info> {
#[account(mut)]
pub beneficiary: Signer<'info>,
#[account(
mut,
seeds = [b"employee_vesting", beneficiary.key().as_ref(), vesting_account.key().as_ref()],
bump = employee_account.bump,
has_one = beneficiary,
has_one = vesting_account
)]
pub employee_account: Account<'info, EmployeeAccount>,
#[account(
mut,
seeds = [company_name.as_ref()],
bump = vesting_account.bump,
has_one = treasury_token_account,
has_one = mint
)]
pub vesting_account: Account<'info, VestingAccount>,
pub mint: InterfaceAccount<'info, Mint>,
#[account(mut)]
pub treasury_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(
init_if_needed,
payer = beneficiary,
associated_token::mint = mint,
associated_token::authority = beneficiary,
associated_token::token_program = token_program
)]
pub employee_token_account: InterfaceAccount<'info, TokenAccount>,
pub token_program: Interface<'info, TokenInterface>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub system_program: Program<'info, System>,
}
#[account]
#[derive(InitSpace, Debug)]
pub struct VestingAccount {
pub owner: Pubkey,
pub mint: Pubkey,
pub treasury_token_account: Pubkey,
#[max_len(50)]
pub company_name: String,
pub treasury_bump: u8,
pub bump: u8,
}
#[account]
#[derive(InitSpace, Debug)]
pub struct EmployeeAccount {
pub beneficiary: Pubkey,
pub start_time: i64,
pub end_time: i64,
pub total_amount: i64,
pub total_withdrawn: i64,
pub cliff_time: i64,
pub vesting_account: Pubkey,
pub bump: u8,
}
#[error_code]
pub enum ErrorCode {
#[msg("Claiming is not available yet.")]
ClaimNotAvailableYet,
#[msg("There is nothing to claim.")]
NothingToClaim,
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/src/vesting-exports.ts
|
// Here we export some useful types and functions for interacting with the Anchor program.
import { AnchorProvider, Program } from '@coral-xyz/anchor';
import { Cluster, PublicKey } from '@solana/web3.js';
import VestingIDL from '../target/idl/vesting.json';
import type { Vesting } from '../target/types/vesting';
// Re-export the generated IDL and type
export { Vesting, VestingIDL };
// The programId is imported from the program IDL.
export const VESTING_PROGRAM_ID = new PublicKey(VestingIDL.address);
// This is a helper function to get the Vesting Anchor program.
export function getVestingProgram(provider: AnchorProvider) {
return new Program(VestingIDL as Vesting, provider);
}
// This is a helper function to get the program ID for the Vesting program depending on the cluster.
export function getVestingProgramId(cluster: Cluster) {
switch (cluster) {
case 'devnet':
case 'testnet':
// This is the program ID for the Vesting program on devnet and testnet.
return new PublicKey('2vKg76rA1Ho27YD4uuc2Z2FCwRTySxdyHup1JjsXS6dp');
case 'mainnet-beta':
default:
return VESTING_PROGRAM_ID;
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor
|
solana_public_repos/developer-bootcamp-2024/project-8-token-vesting/anchor/src/index.ts
|
// This file was generated by preset-anchor. Programs are exported from this file.
export * from './vesting-exports';
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/pnpm-lock.yaml
|
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
dependencies:
'@coral-xyz/anchor':
specifier: ^0.30.0
version: 0.30.0
'@solana-developers/helpers':
specifier: ^2.0.0
version: 2.3.0
devDependencies:
'@types/bn.js':
specifier: ^5.1.0
version: 5.1.5
'@types/chai':
specifier: ^4.3.0
version: 4.3.16
'@types/mocha':
specifier: ^9.0.0
version: 9.1.1
chai:
specifier: ^4.3.4
version: 4.4.1
mocha:
specifier: ^9.0.3
version: 9.2.2
prettier:
specifier: ^2.6.2
version: 2.8.8
ts-mocha:
specifier: ^10.0.0
version: 10.0.0(mocha@9.2.2)
typescript:
specifier: ^4.3.5
version: 4.9.5
packages:
/@babel/runtime@7.24.7:
resolution: {integrity: sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==}
engines: {node: '>=6.9.0'}
dependencies:
regenerator-runtime: 0.14.1
dev: false
/@coral-xyz/anchor@0.30.0:
resolution: {integrity: sha512-qreDh5ztiRHVnCbJ+RS70NJ6aSTPBYDAgFeQ7Z5QvaT5DcDIhNyt4onOciVz2ieIE1XWePOJDDu9SbNvPGBkvQ==}
engines: {node: '>=11'}
dependencies:
'@coral-xyz/borsh': 0.30.0(@solana/web3.js@1.93.0)
'@noble/hashes': 1.4.0
'@solana/web3.js': 1.93.0
bn.js: 5.2.1
bs58: 4.0.1
buffer-layout: 1.2.2
camelcase: 6.3.0
cross-fetch: 3.1.8
crypto-hash: 1.3.0
eventemitter3: 4.0.7
pako: 2.1.0
snake-case: 3.0.4
superstruct: 0.15.5
toml: 3.0.0
transitivePeerDependencies:
- bufferutil
- encoding
- utf-8-validate
dev: false
/@coral-xyz/borsh@0.30.0(@solana/web3.js@1.93.0):
resolution: {integrity: sha512-OrcV+7N10cChhgDRUxM4iEIuwxUHHs52XD85R8cFCUqE0vbLYrcoPPPs+VF6kZ9DhdJGVW2I6DHJOp5TykyZog==}
engines: {node: '>=10'}
peerDependencies:
'@solana/web3.js': ^1.68.0
dependencies:
'@solana/web3.js': 1.93.0
bn.js: 5.2.1
buffer-layout: 1.2.2
dev: false
/@noble/curves@1.4.0:
resolution: {integrity: sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==}
dependencies:
'@noble/hashes': 1.4.0
dev: false
/@noble/hashes@1.4.0:
resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==}
engines: {node: '>= 16'}
dev: false
/@solana-developers/helpers@2.3.0:
resolution: {integrity: sha512-OVdm/RJ9OMI23AnBYX/8UWuNtHRUxaXRUzhXo4WRtXYPHdQ+jTFS2TsjKSJ/F3a0kUZ6nN0b5TekFZvqYF0Qdg==}
dependencies:
'@solana/web3.js': 1.93.0
bs58: 5.0.0
dotenv: 16.4.5
transitivePeerDependencies:
- bufferutil
- encoding
- utf-8-validate
dev: false
/@solana/buffer-layout@4.0.1:
resolution: {integrity: sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==}
engines: {node: '>=5.10'}
dependencies:
buffer: 6.0.3
dev: false
/@solana/web3.js@1.93.0:
resolution: {integrity: sha512-suf4VYwWxERz4tKoPpXCRHFRNst7jmcFUaD65kII+zg9urpy5PeeqgLV6G5eWGzcVzA9tZeXOju1A1Y+0ojEVw==}
dependencies:
'@babel/runtime': 7.24.7
'@noble/curves': 1.4.0
'@noble/hashes': 1.4.0
'@solana/buffer-layout': 4.0.1
agentkeepalive: 4.5.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.7.0
rpc-websockets: 9.0.1
superstruct: 1.0.4
transitivePeerDependencies:
- bufferutil
- encoding
- utf-8-validate
dev: false
/@swc/helpers@0.5.11:
resolution: {integrity: sha512-YNlnKRWF2sVojTpIyzwou9XoTNbzbzONwRhOoniEioF1AtaitTvVZblaQRrAzChWQ1bLYyYSWzM18y4WwgzJ+A==}
dependencies:
tslib: 2.6.3
dev: false
/@types/bn.js@5.1.5:
resolution: {integrity: sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==}
dependencies:
'@types/node': 20.14.2
dev: true
/@types/chai@4.3.16:
resolution: {integrity: sha512-PatH4iOdyh3MyWtmHVFXLWCCIhUbopaltqddG9BzB+gMIzee2MJrvd+jouii9Z3wzQJruGWAm7WOMjgfG8hQlQ==}
dev: true
/@types/connect@3.4.38:
resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}
dependencies:
'@types/node': 12.20.55
dev: false
/@types/json5@0.0.29:
resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
requiresBuild: true
dev: true
optional: true
/@types/mocha@9.1.1:
resolution: {integrity: sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==}
dev: true
/@types/node@12.20.55:
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
dev: false
/@types/node@20.14.2:
resolution: {integrity: sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==}
dependencies:
undici-types: 5.26.5
/@types/uuid@8.3.4:
resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==}
dev: false
/@types/ws@7.4.7:
resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==}
dependencies:
'@types/node': 12.20.55
dev: false
/@types/ws@8.5.10:
resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}
dependencies:
'@types/node': 20.14.2
dev: false
/@ungap/promise-all-settled@1.1.2:
resolution: {integrity: sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==}
dev: true
/JSONStream@1.3.5:
resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==}
hasBin: true
dependencies:
jsonparse: 1.3.1
through: 2.3.8
dev: false
/agentkeepalive@4.5.0:
resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==}
engines: {node: '>= 8.0.0'}
dependencies:
humanize-ms: 1.2.1
dev: false
/ansi-colors@4.1.1:
resolution: {integrity: sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==}
engines: {node: '>=6'}
dev: true
/ansi-regex@5.0.1:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
dev: true
/ansi-styles@4.3.0:
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
engines: {node: '>=8'}
dependencies:
color-convert: 2.0.1
dev: true
/anymatch@3.1.3:
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
engines: {node: '>= 8'}
dependencies:
normalize-path: 3.0.0
picomatch: 2.3.1
dev: true
/argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
dev: true
/arrify@1.0.1:
resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==}
engines: {node: '>=0.10.0'}
dev: true
/assertion-error@1.1.0:
resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==}
dev: true
/balanced-match@1.0.2:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
dev: true
/base-x@3.0.9:
resolution: {integrity: sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==}
dependencies:
safe-buffer: 5.2.1
dev: false
/base-x@4.0.0:
resolution: {integrity: sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==}
dev: false
/base64-js@1.5.1:
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
dev: false
/bigint-buffer@1.1.5:
resolution: {integrity: sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==}
engines: {node: '>= 10.0.0'}
requiresBuild: true
dependencies:
bindings: 1.5.0
dev: false
/binary-extensions@2.3.0:
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
engines: {node: '>=8'}
dev: true
/bindings@1.5.0:
resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==}
dependencies:
file-uri-to-path: 1.0.0
dev: false
/bn.js@5.2.1:
resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==}
dev: false
/borsh@0.7.0:
resolution: {integrity: sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==}
dependencies:
bn.js: 5.2.1
bs58: 4.0.1
text-encoding-utf-8: 1.0.2
dev: false
/brace-expansion@1.1.11:
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
dependencies:
balanced-match: 1.0.2
concat-map: 0.0.1
dev: true
/braces@3.0.3:
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'}
dependencies:
fill-range: 7.1.1
dev: true
/browser-stdout@1.3.1:
resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==}
dev: true
/bs58@4.0.1:
resolution: {integrity: sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==}
dependencies:
base-x: 3.0.9
dev: false
/bs58@5.0.0:
resolution: {integrity: sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==}
dependencies:
base-x: 4.0.0
dev: false
/buffer-from@1.1.2:
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
dev: true
/buffer-layout@1.2.2:
resolution: {integrity: sha512-kWSuLN694+KTk8SrYvCqwP2WcgQjoRCiF5b4QDvkkz8EmgD+aWAIceGFKMIAdmF/pH+vpgNV3d3kAKorcdAmWA==}
engines: {node: '>=4.5'}
dev: false
/buffer@6.0.3:
resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}
dependencies:
base64-js: 1.5.1
ieee754: 1.2.1
dev: false
/bufferutil@4.0.8:
resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==}
engines: {node: '>=6.14.2'}
requiresBuild: true
dependencies:
node-gyp-build: 4.8.1
dev: false
/camelcase@6.3.0:
resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
engines: {node: '>=10'}
/chai@4.4.1:
resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==}
engines: {node: '>=4'}
dependencies:
assertion-error: 1.1.0
check-error: 1.0.3
deep-eql: 4.1.4
get-func-name: 2.0.2
loupe: 2.3.7
pathval: 1.1.1
type-detect: 4.0.8
dev: true
/chalk@4.1.2:
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
engines: {node: '>=10'}
dependencies:
ansi-styles: 4.3.0
supports-color: 7.2.0
dev: true
/check-error@1.0.3:
resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==}
dependencies:
get-func-name: 2.0.2
dev: true
/chokidar@3.5.3:
resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}
engines: {node: '>= 8.10.0'}
dependencies:
anymatch: 3.1.3
braces: 3.0.3
glob-parent: 5.1.2
is-binary-path: 2.1.0
is-glob: 4.0.3
normalize-path: 3.0.0
readdirp: 3.6.0
optionalDependencies:
fsevents: 2.3.3
dev: true
/cliui@7.0.4:
resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}
dependencies:
string-width: 4.2.3
strip-ansi: 6.0.1
wrap-ansi: 7.0.0
dev: true
/color-convert@2.0.1:
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
engines: {node: '>=7.0.0'}
dependencies:
color-name: 1.1.4
dev: true
/color-name@1.1.4:
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
dev: true
/commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
dev: false
/concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
dev: true
/cross-fetch@3.1.8:
resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==}
dependencies:
node-fetch: 2.7.0
transitivePeerDependencies:
- encoding
dev: false
/crypto-hash@1.3.0:
resolution: {integrity: sha512-lyAZ0EMyjDkVvz8WOeVnuCPvKVBXcMv1l5SVqO1yC7PzTwrD/pPje/BIRbWhMoPe436U+Y2nD7f5bFx0kt+Sbg==}
engines: {node: '>=8'}
dev: false
/debug@4.3.3(supports-color@8.1.1):
resolution: {integrity: sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==}
engines: {node: '>=6.0'}
peerDependencies:
supports-color: '*'
peerDependenciesMeta:
supports-color:
optional: true
dependencies:
ms: 2.1.2
supports-color: 8.1.1
dev: true
/decamelize@4.0.0:
resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==}
engines: {node: '>=10'}
dev: true
/deep-eql@4.1.4:
resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==}
engines: {node: '>=6'}
dependencies:
type-detect: 4.0.8
dev: true
/delay@5.0.0:
resolution: {integrity: sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==}
engines: {node: '>=10'}
dev: false
/diff@3.5.0:
resolution: {integrity: sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==}
engines: {node: '>=0.3.1'}
dev: true
/diff@5.0.0:
resolution: {integrity: sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==}
engines: {node: '>=0.3.1'}
dev: true
/dot-case@3.0.4:
resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
dependencies:
no-case: 3.0.4
tslib: 2.6.3
dev: false
/dotenv@16.4.5:
resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==}
engines: {node: '>=12'}
dev: false
/emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
dev: true
/es6-promise@4.2.8:
resolution: {integrity: sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==}
dev: false
/es6-promisify@5.0.0:
resolution: {integrity: sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==}
dependencies:
es6-promise: 4.2.8
dev: false
/escalade@3.1.2:
resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}
engines: {node: '>=6'}
dev: true
/escape-string-regexp@4.0.0:
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
engines: {node: '>=10'}
dev: true
/eventemitter3@4.0.7:
resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==}
dev: false
/eventemitter3@5.0.1:
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
dev: false
/eyes@0.1.8:
resolution: {integrity: sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==}
engines: {node: '> 0.1.90'}
dev: false
/fast-stable-stringify@1.0.0:
resolution: {integrity: sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==}
dev: false
/file-uri-to-path@1.0.0:
resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==}
dev: false
/fill-range@7.1.1:
resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
engines: {node: '>=8'}
dependencies:
to-regex-range: 5.0.1
dev: true
/find-up@5.0.0:
resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
engines: {node: '>=10'}
dependencies:
locate-path: 6.0.0
path-exists: 4.0.0
dev: true
/flat@5.0.2:
resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==}
hasBin: true
dev: true
/fs.realpath@1.0.0:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
dev: true
/fsevents@2.3.3:
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
requiresBuild: true
dev: true
optional: true
/get-caller-file@2.0.5:
resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
engines: {node: 6.* || 8.* || >= 10.*}
dev: true
/get-func-name@2.0.2:
resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==}
dev: true
/glob-parent@5.1.2:
resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
engines: {node: '>= 6'}
dependencies:
is-glob: 4.0.3
dev: true
/glob@7.2.0:
resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==}
deprecated: Glob versions prior to v9 are no longer supported
dependencies:
fs.realpath: 1.0.0
inflight: 1.0.6
inherits: 2.0.4
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
dev: true
/growl@1.10.5:
resolution: {integrity: sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==}
engines: {node: '>=4.x'}
dev: true
/has-flag@4.0.0:
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
engines: {node: '>=8'}
dev: true
/he@1.2.0:
resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
hasBin: true
dev: true
/humanize-ms@1.2.1:
resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}
dependencies:
ms: 2.1.3
dev: false
/ieee754@1.2.1:
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
dev: false
/inflight@1.0.6:
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
dependencies:
once: 1.4.0
wrappy: 1.0.2
dev: true
/inherits@2.0.4:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
dev: true
/is-binary-path@2.1.0:
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
engines: {node: '>=8'}
dependencies:
binary-extensions: 2.3.0
dev: true
/is-extglob@2.1.1:
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
engines: {node: '>=0.10.0'}
dev: true
/is-fullwidth-code-point@3.0.0:
resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
engines: {node: '>=8'}
dev: true
/is-glob@4.0.3:
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
engines: {node: '>=0.10.0'}
dependencies:
is-extglob: 2.1.1
dev: true
/is-number@7.0.0:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
dev: true
/is-plain-obj@2.1.0:
resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==}
engines: {node: '>=8'}
dev: true
/is-unicode-supported@0.1.0:
resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}
engines: {node: '>=10'}
dev: true
/isexe@2.0.0:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
dev: true
/isomorphic-ws@4.0.1(ws@7.5.9):
resolution: {integrity: sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==}
peerDependencies:
ws: '*'
dependencies:
ws: 7.5.9
dev: false
/jayson@4.1.0:
resolution: {integrity: sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==}
engines: {node: '>=8'}
hasBin: true
dependencies:
'@types/connect': 3.4.38
'@types/node': 12.20.55
'@types/ws': 7.4.7
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(ws@7.5.9)
json-stringify-safe: 5.0.1
uuid: 8.3.2
ws: 7.5.9
transitivePeerDependencies:
- bufferutil
- utf-8-validate
dev: false
/js-yaml@4.1.0:
resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
hasBin: true
dependencies:
argparse: 2.0.1
dev: true
/json-stringify-safe@5.0.1:
resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}
dev: false
/json5@1.0.2:
resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
hasBin: true
requiresBuild: true
dependencies:
minimist: 1.2.8
dev: true
optional: true
/jsonparse@1.3.1:
resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==}
engines: {'0': node >= 0.2.0}
dev: false
/locate-path@6.0.0:
resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
engines: {node: '>=10'}
dependencies:
p-locate: 5.0.0
dev: true
/log-symbols@4.1.0:
resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}
engines: {node: '>=10'}
dependencies:
chalk: 4.1.2
is-unicode-supported: 0.1.0
dev: true
/loupe@2.3.7:
resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==}
dependencies:
get-func-name: 2.0.2
dev: true
/lower-case@2.0.2:
resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
dependencies:
tslib: 2.6.3
dev: false
/make-error@1.3.6:
resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==}
dev: true
/minimatch@3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
dependencies:
brace-expansion: 1.1.11
dev: true
/minimatch@4.2.1:
resolution: {integrity: sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==}
engines: {node: '>=10'}
dependencies:
brace-expansion: 1.1.11
dev: true
/minimist@1.2.8:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
dev: true
/mkdirp@0.5.6:
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
hasBin: true
dependencies:
minimist: 1.2.8
dev: true
/mocha@9.2.2:
resolution: {integrity: sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==}
engines: {node: '>= 12.0.0'}
hasBin: true
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(supports-color@8.1.1)
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
dev: true
/ms@2.1.2:
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
dev: true
/ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
/nanoid@3.3.1:
resolution: {integrity: sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
dev: true
/no-case@3.0.4:
resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
dependencies:
lower-case: 2.0.2
tslib: 2.6.3
dev: false
/node-fetch@2.7.0:
resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}
engines: {node: 4.x || >=6.0.0}
peerDependencies:
encoding: ^0.1.0
peerDependenciesMeta:
encoding:
optional: true
dependencies:
whatwg-url: 5.0.0
dev: false
/node-gyp-build@4.8.1:
resolution: {integrity: sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==}
hasBin: true
requiresBuild: true
dev: false
/normalize-path@3.0.0:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
dev: true
/once@1.4.0:
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
dependencies:
wrappy: 1.0.2
dev: true
/p-limit@3.1.0:
resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
engines: {node: '>=10'}
dependencies:
yocto-queue: 0.1.0
dev: true
/p-locate@5.0.0:
resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
engines: {node: '>=10'}
dependencies:
p-limit: 3.1.0
dev: true
/pako@2.1.0:
resolution: {integrity: sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==}
dev: false
/path-exists@4.0.0:
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
engines: {node: '>=8'}
dev: true
/path-is-absolute@1.0.1:
resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
engines: {node: '>=0.10.0'}
dev: true
/pathval@1.1.1:
resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==}
dev: true
/picomatch@2.3.1:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
dev: true
/prettier@2.8.8:
resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
engines: {node: '>=10.13.0'}
hasBin: true
dev: true
/randombytes@2.1.0:
resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}
dependencies:
safe-buffer: 5.2.1
dev: true
/readdirp@3.6.0:
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
dependencies:
picomatch: 2.3.1
dev: true
/regenerator-runtime@0.14.1:
resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}
dev: false
/require-directory@2.1.1:
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
engines: {node: '>=0.10.0'}
dev: true
/rpc-websockets@9.0.1:
resolution: {integrity: sha512-JCkdc/TfJBGRfmjIFK7cmqX79nwPWUd9xCM0DAydRbdLShsW3j/GV2gmPlaFa8V1+2u4V/O47fm4ZR5+F6HyDw==}
dependencies:
'@swc/helpers': 0.5.11
'@types/uuid': 8.3.4
'@types/ws': 8.5.10
buffer: 6.0.3
eventemitter3: 5.0.1
uuid: 8.3.2
ws: 8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)
optionalDependencies:
bufferutil: 4.0.8
utf-8-validate: 5.0.10
dev: false
/safe-buffer@5.2.1:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
/serialize-javascript@6.0.0:
resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==}
dependencies:
randombytes: 2.1.0
dev: true
/snake-case@3.0.4:
resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==}
dependencies:
dot-case: 3.0.4
tslib: 2.6.3
dev: false
/source-map-support@0.5.21:
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
dependencies:
buffer-from: 1.1.2
source-map: 0.6.1
dev: true
/source-map@0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
dev: true
/string-width@4.2.3:
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
engines: {node: '>=8'}
dependencies:
emoji-regex: 8.0.0
is-fullwidth-code-point: 3.0.0
strip-ansi: 6.0.1
dev: true
/strip-ansi@6.0.1:
resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
engines: {node: '>=8'}
dependencies:
ansi-regex: 5.0.1
dev: true
/strip-bom@3.0.0:
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
engines: {node: '>=4'}
requiresBuild: true
dev: true
optional: true
/strip-json-comments@3.1.1:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
dev: true
/superstruct@0.15.5:
resolution: {integrity: sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==}
dev: false
/superstruct@1.0.4:
resolution: {integrity: sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==}
engines: {node: '>=14.0.0'}
dev: false
/supports-color@7.2.0:
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
engines: {node: '>=8'}
dependencies:
has-flag: 4.0.0
dev: true
/supports-color@8.1.1:
resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
engines: {node: '>=10'}
dependencies:
has-flag: 4.0.0
dev: true
/text-encoding-utf-8@1.0.2:
resolution: {integrity: sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==}
dev: false
/through@2.3.8:
resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
dev: false
/to-regex-range@5.0.1:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
dependencies:
is-number: 7.0.0
dev: true
/toml@3.0.0:
resolution: {integrity: sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==}
dev: false
/tr46@0.0.3:
resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
dev: false
/ts-mocha@10.0.0(mocha@9.2.2):
resolution: {integrity: sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==}
engines: {node: '>= 6.X.X'}
hasBin: true
peerDependencies:
mocha: ^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X
dependencies:
mocha: 9.2.2
ts-node: 7.0.1
optionalDependencies:
tsconfig-paths: 3.15.0
dev: true
/ts-node@7.0.1:
resolution: {integrity: sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==}
engines: {node: '>=4.2.0'}
hasBin: true
dependencies:
arrify: 1.0.1
buffer-from: 1.1.2
diff: 3.5.0
make-error: 1.3.6
minimist: 1.2.8
mkdirp: 0.5.6
source-map-support: 0.5.21
yn: 2.0.0
dev: true
/tsconfig-paths@3.15.0:
resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
requiresBuild: true
dependencies:
'@types/json5': 0.0.29
json5: 1.0.2
minimist: 1.2.8
strip-bom: 3.0.0
dev: true
optional: true
/tslib@2.6.3:
resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==}
dev: false
/type-detect@4.0.8:
resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}
engines: {node: '>=4'}
dev: true
/typescript@4.9.5:
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true
/undici-types@5.26.5:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
/utf-8-validate@5.0.10:
resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==}
engines: {node: '>=6.14.2'}
requiresBuild: true
dependencies:
node-gyp-build: 4.8.1
dev: false
/uuid@8.3.2:
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
hasBin: true
dev: false
/webidl-conversions@3.0.1:
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
dev: false
/whatwg-url@5.0.0:
resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
dependencies:
tr46: 0.0.3
webidl-conversions: 3.0.1
dev: false
/which@2.0.2:
resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
engines: {node: '>= 8'}
hasBin: true
dependencies:
isexe: 2.0.0
dev: true
/workerpool@6.2.0:
resolution: {integrity: sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==}
dev: true
/wrap-ansi@7.0.0:
resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
engines: {node: '>=10'}
dependencies:
ansi-styles: 4.3.0
string-width: 4.2.3
strip-ansi: 6.0.1
dev: true
/wrappy@1.0.2:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
dev: true
/ws@7.5.9:
resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==}
engines: {node: '>=8.3.0'}
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: ^5.0.2
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
dev: false
/ws@8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10):
resolution: {integrity: sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==}
engines: {node: '>=10.0.0'}
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: '>=5.0.2'
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
dependencies:
bufferutil: 4.0.8
utf-8-validate: 5.0.10
dev: false
/y18n@5.0.8:
resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
engines: {node: '>=10'}
dev: true
/yargs-parser@20.2.4:
resolution: {integrity: sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==}
engines: {node: '>=10'}
dev: true
/yargs-unparser@2.0.0:
resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==}
engines: {node: '>=10'}
dependencies:
camelcase: 6.3.0
decamelize: 4.0.0
flat: 5.0.2
is-plain-obj: 2.1.0
dev: true
/yargs@16.2.0:
resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==}
engines: {node: '>=10'}
dependencies:
cliui: 7.0.4
escalade: 3.1.2
get-caller-file: 2.0.5
require-directory: 2.1.1
string-width: 4.2.3
y18n: 5.0.8
yargs-parser: 20.2.4
dev: true
/yn@2.0.0:
resolution: {integrity: sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==}
engines: {node: '>=4'}
dev: true
/yocto-queue@0.1.0:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
dev: true
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/Cargo.toml
|
[workspace]
members = [
"programs/*"
]
resolver = "2"
[profile.release]
overflow-checks = true
lto = "fat"
codegen-units = 1
[profile.release.build-override]
opt-level = 3
incremental = false
codegen-units = 1
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/.prettierignore
|
.anchor
.DS_Store
target
node_modules
dist
build
test-ledger
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/Anchor.toml
|
[toolchain]
[features]
resolution = true
skip-lint = false
[programs.localnet]
favorites = "ww9C83noARSQVBnqmCUmaVdbJjmiwcV9j2LkXYMoUCV"
[registry]
url = "https://api.apr.dev"
[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
[scripts]
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/package.json
|
{
"scripts": {
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.0",
"@solana-developers/helpers": "^2.0.0"
},
"license": "MIT",
"devDependencies": {
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"chai": "^4.3.4",
"mocha": "^9.0.3",
"prettier": "^2.6.2",
"ts-mocha": "^10.0.0",
"typescript": "^4.3.5"
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/tsconfig.json
|
{
"compilerOptions": {
"types": ["mocha", "chai"],
"typeRoots": ["./node_modules/@types"],
"lib": ["es2015"],
"module": "commonjs",
"target": "es6",
"esModuleInterop": true
}
}
| 0
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/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 (provider) => {
// Configure client to use the provider.
anchor.setProvider(provider);
// Add your deploy script here.
};
| 0
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/tests/favorites.ts
|
import * as anchor from '@coral-xyz/anchor';
import type { Program } from '@coral-xyz/anchor';
import { getCustomErrorMessage } from '@solana-developers/helpers';
import { assert } from 'chai';
import type { Favorites } from '../target/types/favorites';
import { systemProgramErrors } from './system-errors';
const web3 = anchor.web3;
describe('Favorites', () => {
// Use the cluster and the keypair from Anchor.toml
const provider = anchor.AnchorProvider.env();
anchor.setProvider(provider);
const user = (provider.wallet as anchor.Wallet).payer;
const someRandomGuy = anchor.web3.Keypair.generate();
const program = anchor.workspace.Favorites as Program<Favorites>;
// Here's what we want to write to the blockchain
const favoriteNumber = new anchor.BN(23);
const favoriteColor = 'purple';
const favoriteHobbies = ['skiing', 'skydiving', 'biking'];
// We don't need to airdrop if we're using the local cluster
// because the local cluster gives us 85 billion dollars worth of SOL
before(async () => {
const balance = await provider.connection.getBalance(user.publicKey);
const balanceInSOL = balance / web3.LAMPORTS_PER_SOL;
const formattedBalance = new Intl.NumberFormat().format(balanceInSOL);
console.log(`Balance: ${formattedBalance} SOL`);
});
it('Writes our favorites to the blockchain', async () => {
await program.methods
// set_favourites in Rust becomes setFavorites in TypeScript
.setFavorites(favoriteNumber, favoriteColor, favoriteHobbies)
// Sign the transaction
.signers([user])
// Send the transaction to the cluster or RPC
.rpc();
// Find the PDA for the user's favorites
const favoritesPdaAndBump = web3.PublicKey.findProgramAddressSync([Buffer.from('favorites'), user.publicKey.toBuffer()], program.programId);
const favoritesPda = favoritesPdaAndBump[0];
const dataFromPda = await program.account.favorites.fetch(favoritesPda);
// And make sure it matches!
assert.equal(dataFromPda.color, favoriteColor);
// A little extra work to make sure the BNs are equal
assert.equal(dataFromPda.number.toString(), favoriteNumber.toString());
// And check the hobbies too
assert.deepEqual(dataFromPda.hobbies, favoriteHobbies);
});
it('Updates the favorites', async () => {
const newFavoriteHobbies = ['skiing', 'skydiving', 'biking', 'swimming'];
try {
await program.methods.setFavorites(favoriteNumber, favoriteColor, newFavoriteHobbies).signers([user]).rpc();
} catch (error) {
console.error((error as Error).message);
const customErrorMessage = getCustomErrorMessage(systemProgramErrors, error);
throw new Error(customErrorMessage);
}
});
it('Rejects transactions from unauthorized signers', async () => {
try {
await program.methods
// set_favourites in Rust becomes setFavorites in TypeScript
.setFavorites(favoriteNumber, favoriteColor, favoriteHobbies)
// Sign the transaction
.signers([someRandomGuy])
// Send the transaction to the cluster or RPC
.rpc();
} catch (error) {
const errorMessage = (error as Error).message;
assert.isTrue(errorMessage.includes('unknown signer'));
}
});
});
| 0
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/tests/system-errors.ts
|
// From https://github.com/solana-labs/solana/blob/a94920a4eadf1008fc292e47e041c1b3b0d949df/sdk/program/src/system_instruction.rs
export const systemProgramErrors = [
'an account with the same address already exists',
'account does not have enough SOL to perform the operation',
'cannot assign account to this program id',
'cannot allocate account data of this length',
'length of requested seed is too long',
'provided address does not match addressed derived from seed',
'advancing stored nonce requires a populated RecentBlockhashes sysvar',
'stored nonce is still in recent_blockhashes',
'specified nonce does not match stored nonce',
];
| 0
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/programs
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/programs/favorites/Cargo.toml
|
[package]
name = "favorites"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "favorites"
[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build"]
[dependencies]
anchor-lang = {version = "0.30.1", features = ["init-if-needed"]}
solana-program = "=1.18.5"
| 0
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/programs
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/programs/favorites/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/programs/favorites
|
solana_public_repos/developer-bootcamp-2024/project-1-favorites/programs/favorites/src/lib.rs
|
use anchor_lang::prelude::*;
// Our program's address!
// This matches the key in the target/deploy directory
declare_id!("ww9C83noARSQVBnqmCUmaVdbJjmiwcV9j2LkXYMoUCV");
// Anchor programs always use 8 bits for the discriminator
pub const ANCHOR_DISCRIMINATOR_SIZE: usize = 8;
// Our Solana program!
#[program]
pub mod favorites {
use super::*;
// Our instruction handler! It sets the user's favorite number and color
pub fn set_favorites(context: Context<SetFavorites>, number: u64, color: String, hobbies: Vec<String>) -> Result<()> {
let user_public_key = context.accounts.user.key();
msg!("Greetings from {}", context.program_id);
msg!(
"User {user_public_key}'s favorite number is {number}, favorite color is: {color}",
);
msg!(
"User's hobbies are: {:?}",
hobbies
);
context.accounts.favorites.set_inner(Favorites {
number,
color,
hobbies
});
Ok(())
}
// We can also add a get_favorites instruction handler to return the user's favorite number and color
}
// What we will put inside the Favorites PDA
#[account]
#[derive(InitSpace)]
pub struct Favorites {
pub number: u64,
#[max_len(50)]
pub color: String,
#[max_len(5, 50)]
pub hobbies: Vec<String>
}
// When people call the set_favorites instruction, they will need to provide the accounts that will be modifed. This keeps Solana fast!
#[derive(Accounts)]
pub struct SetFavorites<'info> {
#[account(mut)]
pub user: Signer<'info>,
#[account(
init_if_needed,
payer = user,
space = ANCHOR_DISCRIMINATOR_SIZE + Favorites::INIT_SPACE,
seeds=[b"favorites", user.key().as_ref()],
bump)]
pub favorites: Account<'info, Favorites>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos
|
solana_public_repos/stripe-onramp/next.config.js
|
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
};
module.exports = nextConfig;
| 0
|
solana_public_repos
|
solana_public_repos/stripe-onramp/yarn.lock
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@babel/runtime@^7.20.7":
version "7.21.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673"
integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==
dependencies:
regenerator-runtime "^0.13.11"
"@eslint/eslintrc@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.0.tgz#943309d8697c52fc82c076e90c1c74fbbe69dbff"
integrity sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A==
dependencies:
ajv "^6.12.4"
debug "^4.3.2"
espree "^9.4.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.35.0":
version "8.35.0"
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.35.0.tgz#b7569632b0b788a0ca0e438235154e45d42813a7"
integrity sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw==
"@humanwhocodes/config-array@^0.11.8":
version "0.11.8"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9"
integrity sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==
dependencies:
"@humanwhocodes/object-schema" "^1.2.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@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
"@next/env@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.2.3.tgz#77ca49edb3c1d7c5263bb8f2ebe686080e98279e"
integrity sha512-FN50r/E+b8wuqyRjmGaqvqNDuWBWYWQiigfZ50KnSFH0f+AMQQyaZl+Zm2+CIpKk0fL9QxhLxOpTVA3xFHgFow==
"@next/eslint-plugin-next@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-13.2.3.tgz#5af8ddeac6dbe028c812a0e59c41952c004d95d5"
integrity sha512-QmMPItnU7VeojI1KnuwL9SLFWEwmaNHNlnOGpoTwdLoSiP9sc8KYiAHWEc4/44L+cAdCxcZYvn7frcRNP5l84Q==
dependencies:
glob "7.1.7"
"@next/swc-android-arm-eabi@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.2.3.tgz#85eed560c87c7996558c868a117be9780778f192"
integrity sha512-mykdVaAXX/gm+eFO2kPeVjnOCKwanJ9mV2U0lsUGLrEdMUifPUjiXKc6qFAIs08PvmTMOLMNnUxqhGsJlWGKSw==
"@next/swc-android-arm64@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.2.3.tgz#8ac54ca9795a48afc4631b4823a4864bd5db0129"
integrity sha512-8XwHPpA12gdIFtope+n9xCtJZM3U4gH4vVTpUwJ2w1kfxFmCpwQ4xmeGSkR67uOg80yRMuF0h9V1ueo05sws5w==
"@next/swc-darwin-arm64@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.2.3.tgz#f674e3c65aec505b6d218a662ade3fe248ccdbda"
integrity sha512-TXOubiFdLpMfMtaRu1K5d1I9ipKbW5iS2BNbu8zJhoqrhk3Kp7aRKTxqFfWrbliAHhWVE/3fQZUYZOWSXVQi1w==
"@next/swc-darwin-x64@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.2.3.tgz#a15ea7fb4c46034a8f5e387906d0cad08387075a"
integrity sha512-GZctkN6bJbpjlFiS5pylgB2pifHvgkqLAPumJzxnxkf7kqNm6rOGuNjsROvOWVWXmKhrzQkREO/WPS2aWsr/yw==
"@next/swc-freebsd-x64@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.2.3.tgz#f7ac6ae4f7d706ff2431f33e40230a554c8c2cbc"
integrity sha512-rK6GpmMt/mU6MPuav0/M7hJ/3t8HbKPCELw/Uqhi4732xoq2hJ2zbo2FkYs56y6w0KiXrIp4IOwNB9K8L/q62g==
"@next/swc-linux-arm-gnueabihf@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.2.3.tgz#84ad9e9679d55542a23b590ad9f2e1e9b2df62f7"
integrity sha512-yeiCp/Odt1UJ4KUE89XkeaaboIDiVFqKP4esvoLKGJ0fcqJXMofj4ad3tuQxAMs3F+qqrz9MclqhAHkex1aPZA==
"@next/swc-linux-arm64-gnu@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.2.3.tgz#56f9175bc632d647c60b9e8bedc0875edf92d8b7"
integrity sha512-/miIopDOUsuNlvjBjTipvoyjjaxgkOuvlz+cIbbPcm1eFvzX2ltSfgMgty15GuOiR8Hub4FeTSiq3g2dmCkzGA==
"@next/swc-linux-arm64-musl@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.2.3.tgz#7d4cf00e8f1729a3de464da0624773f5d0d14888"
integrity sha512-sujxFDhMMDjqhruup8LLGV/y+nCPi6nm5DlFoThMJFvaaKr/imhkXuk8uCTq4YJDbtRxnjydFv2y8laBSJVC2g==
"@next/swc-linux-x64-gnu@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.2.3.tgz#17de404910c4ebf7a1d366b19334d7e27e126ab0"
integrity sha512-w5MyxPknVvC9LVnMenAYMXMx4KxPwXuJRMQFvY71uXg68n7cvcas85U5zkdrbmuZ+JvsO5SIG8k36/6X3nUhmQ==
"@next/swc-linux-x64-musl@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.2.3.tgz#07cb7b7f3a3a98034e2533f82638a9b099ba4ab1"
integrity sha512-CTeelh8OzSOVqpzMFMFnVRJIFAFQoTsI9RmVJWW/92S4xfECGcOzgsX37CZ8K982WHRzKU7exeh7vYdG/Eh4CA==
"@next/swc-win32-arm64-msvc@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.2.3.tgz#b9ac98c954c71ec9de45d3497a8585096b873152"
integrity sha512-7N1KBQP5mo4xf52cFCHgMjzbc9jizIlkTepe9tMa2WFvEIlKDfdt38QYcr9mbtny17yuaIw02FXOVEytGzqdOQ==
"@next/swc-win32-ia32-msvc@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.2.3.tgz#5ec48653a48fd664e940c69c96bba698fdae92eb"
integrity sha512-LzWD5pTSipUXTEMRjtxES/NBYktuZdo7xExJqGDMnZU8WOI+v9mQzsmQgZS/q02eIv78JOCSemqVVKZBGCgUvA==
"@next/swc-win32-x64-msvc@13.2.3":
version "13.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.2.3.tgz#cd432f280beb8d8de5b7cd2501e9f502e9f3dd72"
integrity sha512-aLG2MaFs4y7IwaMTosz2r4mVbqRyCnMoFqOcmfTi7/mAS+G4IMH0vJp4oLdbshqiVoiVuKrAfqtXj55/m7Qu1Q==
"@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"
"@pkgr/utils@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@pkgr/utils/-/utils-2.3.1.tgz#0a9b06ffddee364d6642b3cd562ca76f55b34a03"
integrity sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==
dependencies:
cross-spawn "^7.0.3"
is-glob "^4.0.3"
open "^8.4.0"
picocolors "^1.0.0"
tiny-glob "^0.2.9"
tslib "^2.4.0"
"@rushstack/eslint-patch@^1.1.3":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz#8be36a1f66f3265389e90b5f9c9962146758f728"
integrity sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==
"@stripe/crypto@^0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@stripe/crypto/-/crypto-0.0.2.tgz#03534b1b83b356a7a783533f7b62bc3c69cfbbc3"
integrity sha512-kYi3yjMyzwZNtXbJMtx2WDcuolLSRLaqw7izVr4Mi0h8RKEZy3vIPqSWT41HVGNZ2vUUoQTUghjZAX48TQ7EiA==
"@stripe/stripe-js@^1.48.0":
version "1.48.0"
resolved "https://registry.yarnpkg.com/@stripe/stripe-js/-/stripe-js-1.48.0.tgz#53d07ebc32da03ee3d76eb6aebf4447c160807fd"
integrity sha512-Kw2BRXk6z/wnTU9m2IJOhxJNrx9xzmpFSbk6D/Z0x6LJntMafiHeHFag2PvSF30O2quMb1UUdWsnZqGVDruZww==
"@swc/helpers@0.4.14":
version "0.4.14"
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74"
integrity sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==
dependencies:
tslib "^2.4.0"
"@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/node@18.14.6":
version "18.14.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.14.6.tgz#ae1973dd2b1eeb1825695bb11ebfb746d27e3e93"
integrity sha512-93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==
"@types/prop-types@*":
version "15.7.5"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf"
integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==
"@types/react-dom@18.0.11":
version "18.0.11"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.0.11.tgz#321351c1459bc9ca3d216aefc8a167beec334e33"
integrity sha512-O38bPbI2CWtgw/OoQoY+BRelw7uysmXbWvw3nLWO21H1HSh+GOlqPuXshJfjmpNlKiiSDG9cc1JZAaMmVdcTlw==
dependencies:
"@types/react" "*"
"@types/react@*", "@types/react@18.0.28":
version "18.0.28"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.28.tgz#accaeb8b86f4908057ad629a26635fe641480065"
integrity sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"
"@types/scheduler@*":
version "0.16.2"
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39"
integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==
"@typescript-eslint/parser@^5.42.0":
version "5.54.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.54.1.tgz#05761d7f777ef1c37c971d3af6631715099b084c"
integrity sha512-8zaIXJp/nG9Ff9vQNh7TI+C3nA6q6iIsGJ4B4L6MhZ7mHnTMR4YP5vp2xydmFXIy8rpyIVbNAG44871LMt6ujg==
dependencies:
"@typescript-eslint/scope-manager" "5.54.1"
"@typescript-eslint/types" "5.54.1"
"@typescript-eslint/typescript-estree" "5.54.1"
debug "^4.3.4"
"@typescript-eslint/scope-manager@5.54.1":
version "5.54.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.54.1.tgz#6d864b4915741c608a58ce9912edf5a02bb58735"
integrity sha512-zWKuGliXxvuxyM71UA/EcPxaviw39dB2504LqAmFDjmkpO8qNLHcmzlh6pbHs1h/7YQ9bnsO8CCcYCSA8sykUg==
dependencies:
"@typescript-eslint/types" "5.54.1"
"@typescript-eslint/visitor-keys" "5.54.1"
"@typescript-eslint/types@5.54.1":
version "5.54.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.54.1.tgz#29fbac29a716d0f08c62fe5de70c9b6735de215c"
integrity sha512-G9+1vVazrfAfbtmCapJX8jRo2E4MDXxgm/IMOF4oGh3kq7XuK3JRkOg6y2Qu1VsTRmWETyTkWt1wxy7X7/yLkw==
"@typescript-eslint/typescript-estree@5.54.1":
version "5.54.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.1.tgz#df7b6ae05fd8fef724a87afa7e2f57fa4a599be1"
integrity sha512-bjK5t+S6ffHnVwA0qRPTZrxKSaFYocwFIkZx5k7pvWfsB1I57pO/0M0Skatzzw1sCkjJ83AfGTL0oFIFiDX3bg==
dependencies:
"@typescript-eslint/types" "5.54.1"
"@typescript-eslint/visitor-keys" "5.54.1"
debug "^4.3.4"
globby "^11.1.0"
is-glob "^4.0.3"
semver "^7.3.7"
tsutils "^3.21.0"
"@typescript-eslint/visitor-keys@5.54.1":
version "5.54.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.1.tgz#d7a8a0f7181d6ac748f4d47b2306e0513b98bf8b"
integrity sha512-q8iSoHTgwCfgcRJ2l2x+xCbu8nBlRAlsQ33k24Adj8eoVBE0f8dUeI+bAa8F84Mv05UGbAx57g2zrRsYIooqQg==
dependencies:
"@typescript-eslint/types" "5.54.1"
eslint-visitor-keys "^3.3.0"
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@^8.8.0:
version "8.8.2"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a"
integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==
ajv@^6.10.0, 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-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.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"
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==
aria-query@^5.1.3:
version "5.1.3"
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.1.3.tgz#19db27cd101152773631396f7a95a3b58c22c35e"
integrity sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==
dependencies:
deep-equal "^2.0.5"
array-includes@^3.1.5, array-includes@^3.1.6:
version "3.1.6"
resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f"
integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
get-intrinsic "^1.1.3"
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.flat@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz#ffc6576a7ca3efc2f46a143b9d1dda9b4b3cf5e2"
integrity sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
es-shim-unscopables "^1.0.0"
array.prototype.flatmap@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183"
integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
es-shim-unscopables "^1.0.0"
array.prototype.tosorted@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz#ccf44738aa2b5ac56578ffda97c03fd3e23dd532"
integrity sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
es-shim-unscopables "^1.0.0"
get-intrinsic "^1.1.3"
ast-types-flow@^0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad"
integrity sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==
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==
axe-core@^4.6.2:
version "4.6.3"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.6.3.tgz#fc0db6fdb65cc7a80ccf85286d91d64ababa3ece"
integrity sha512-/BQzOX780JhsxDnPpH4ZiyrJAzcd8AfzFPkv+89veFSr1rcMjuq2JDCwypKaPeB6ljHp9KjXhPpjgCvQlWYuqg==
axobject-query@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-3.1.1.tgz#3b6e5c6d4e43ca7ba51c5babf99d22a9c68485e1"
integrity sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==
dependencies:
deep-equal "^2.0.5"
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==
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:
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"
call-bind@^1.0.0, call-bind@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==
dependencies:
function-bind "^1.1.1"
get-intrinsic "^1.0.2"
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==
caniuse-lite@^1.0.30001406:
version "1.0.30001462"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001462.tgz#b2e801e37536d453731286857c8520d3dcee15fe"
integrity sha512-PDd20WuOBPiasZ7KbFnmQRyuLE7cFXW2PVd7dmALzbkUXEP46upAuCDm9eY9vho8fgNMGmbAX92QBZHzcnWIqw==
chalk@^4.0.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"
client-only@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1"
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==
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==
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==
cross-spawn@^7.0.2, cross-spawn@^7.0.3:
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"
csstype@^3.0.2:
version "3.1.1"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9"
integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==
damerau-levenshtein@^1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7"
integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==
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"
deep-equal@^2.0.5:
version "2.2.0"
resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.0.tgz#5caeace9c781028b9ff459f33b779346637c43e6"
integrity sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==
dependencies:
call-bind "^1.0.2"
es-get-iterator "^1.1.2"
get-intrinsic "^1.1.3"
is-arguments "^1.1.1"
is-array-buffer "^3.0.1"
is-date-object "^1.0.5"
is-regex "^1.1.4"
is-shared-array-buffer "^1.0.2"
isarray "^2.0.5"
object-is "^1.1.5"
object-keys "^1.1.1"
object.assign "^4.1.4"
regexp.prototype.flags "^1.4.3"
side-channel "^1.0.4"
which-boxed-primitive "^1.0.2"
which-collection "^1.0.1"
which-typed-array "^1.1.9"
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-lazy-prop@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f"
integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==
define-properties@^1.1.3, define-properties@^1.1.4:
version "1.2.0"
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5"
integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==
dependencies:
has-property-descriptors "^1.0.0"
object-keys "^1.1.1"
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"
emoji-regex@^9.2.2:
version "9.2.2"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
enhanced-resolve@^5.10.0:
version "5.12.0"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz#300e1c90228f5b570c4d35babf263f6da7155634"
integrity sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==
dependencies:
graceful-fs "^4.2.4"
tapable "^2.2.0"
es-abstract@^1.19.0, es-abstract@^1.20.4:
version "1.21.1"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.1.tgz#e6105a099967c08377830a0c9cb589d570dd86c6"
integrity sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==
dependencies:
available-typed-arrays "^1.0.5"
call-bind "^1.0.2"
es-set-tostringtag "^2.0.1"
es-to-primitive "^1.2.1"
function-bind "^1.1.1"
function.prototype.name "^1.1.5"
get-intrinsic "^1.1.3"
get-symbol-description "^1.0.0"
globalthis "^1.0.3"
gopd "^1.0.1"
has "^1.0.3"
has-property-descriptors "^1.0.0"
has-proto "^1.0.1"
has-symbols "^1.0.3"
internal-slot "^1.0.4"
is-array-buffer "^3.0.1"
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.10"
is-weakref "^1.0.2"
object-inspect "^1.12.2"
object-keys "^1.1.1"
object.assign "^4.1.4"
regexp.prototype.flags "^1.4.3"
safe-regex-test "^1.0.0"
string.prototype.trimend "^1.0.6"
string.prototype.trimstart "^1.0.6"
typed-array-length "^1.0.4"
unbox-primitive "^1.0.2"
which-typed-array "^1.1.9"
es-get-iterator@^1.1.2:
version "1.1.3"
resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.3.tgz#3ef87523c5d464d41084b2c3c9c214f1199763d6"
integrity sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.1.3"
has-symbols "^1.0.3"
is-arguments "^1.1.1"
is-map "^2.0.2"
is-set "^2.0.2"
is-string "^1.0.7"
isarray "^2.0.5"
stop-iteration-iterator "^1.0.0"
es-set-tostringtag@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz#338d502f6f674301d710b80c8592de8a15f09cd8"
integrity sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==
dependencies:
get-intrinsic "^1.1.3"
has "^1.0.3"
has-tostringtag "^1.0.0"
es-shim-unscopables@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz#702e632193201e3edf8713635d083d378e510241"
integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==
dependencies:
has "^1.0.3"
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"
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-config-next@13.2.3:
version "13.2.3"
resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-13.2.3.tgz#8a952bfd856f492684a30dd5fcdc8979c97c1cc2"
integrity sha512-kPulHiQEHGei9hIaaNGygHRc0UzlWM+3euOmYbxNkd2Nbhci5rrCDeMBMPSV8xgUssphDGmwDHWbk4VZz3rlZQ==
dependencies:
"@next/eslint-plugin-next" "13.2.3"
"@rushstack/eslint-patch" "^1.1.3"
"@typescript-eslint/parser" "^5.42.0"
eslint-import-resolver-node "^0.3.6"
eslint-import-resolver-typescript "^3.5.2"
eslint-plugin-import "^2.26.0"
eslint-plugin-jsx-a11y "^6.5.1"
eslint-plugin-react "^7.31.7"
eslint-plugin-react-hooks "^4.5.0"
eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.7:
version "0.3.7"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz#83b375187d412324a1963d84fa664377a23eb4d7"
integrity sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==
dependencies:
debug "^3.2.7"
is-core-module "^2.11.0"
resolve "^1.22.1"
eslint-import-resolver-typescript@^3.5.2:
version "3.5.3"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.3.tgz#db5ed9e906651b7a59dd84870aaef0e78c663a05"
integrity sha512-njRcKYBc3isE42LaTcJNVANR3R99H9bAxBDMNDr2W7yq5gYPxbU3MkdhsQukxZ/Xg9C2vcyLlDsbKfRDg0QvCQ==
dependencies:
debug "^4.3.4"
enhanced-resolve "^5.10.0"
get-tsconfig "^4.2.0"
globby "^13.1.2"
is-core-module "^2.10.0"
is-glob "^4.0.3"
synckit "^0.8.4"
eslint-module-utils@^2.7.4:
version "2.7.4"
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz#4f3e41116aaf13a20792261e61d3a2e7e0583974"
integrity sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==
dependencies:
debug "^3.2.7"
eslint-plugin-import@^2.26.0:
version "2.27.5"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz#876a6d03f52608a3e5bb439c2550588e51dd6c65"
integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==
dependencies:
array-includes "^3.1.6"
array.prototype.flat "^1.3.1"
array.prototype.flatmap "^1.3.1"
debug "^3.2.7"
doctrine "^2.1.0"
eslint-import-resolver-node "^0.3.7"
eslint-module-utils "^2.7.4"
has "^1.0.3"
is-core-module "^2.11.0"
is-glob "^4.0.3"
minimatch "^3.1.2"
object.values "^1.1.6"
resolve "^1.22.1"
semver "^6.3.0"
tsconfig-paths "^3.14.1"
eslint-plugin-jsx-a11y@^6.5.1:
version "6.7.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz#fca5e02d115f48c9a597a6894d5bcec2f7a76976"
integrity sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==
dependencies:
"@babel/runtime" "^7.20.7"
aria-query "^5.1.3"
array-includes "^3.1.6"
array.prototype.flatmap "^1.3.1"
ast-types-flow "^0.0.7"
axe-core "^4.6.2"
axobject-query "^3.1.1"
damerau-levenshtein "^1.0.8"
emoji-regex "^9.2.2"
has "^1.0.3"
jsx-ast-utils "^3.3.3"
language-tags "=1.0.5"
minimatch "^3.1.2"
object.entries "^1.1.6"
object.fromentries "^2.0.6"
semver "^6.3.0"
eslint-plugin-react-hooks@^4.5.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==
eslint-plugin-react@^7.31.7:
version "7.32.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz#e71f21c7c265ebce01bcbc9d0955170c55571f10"
integrity sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==
dependencies:
array-includes "^3.1.6"
array.prototype.flatmap "^1.3.1"
array.prototype.tosorted "^1.1.1"
doctrine "^2.1.0"
estraverse "^5.3.0"
jsx-ast-utils "^2.4.1 || ^3.0.0"
minimatch "^3.1.2"
object.entries "^1.1.6"
object.fromentries "^2.0.6"
object.hasown "^1.1.2"
object.values "^1.1.6"
prop-types "^15.8.1"
resolve "^2.0.0-next.4"
semver "^6.3.0"
string.prototype.matchall "^4.0.8"
eslint-scope@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642"
integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==
dependencies:
esrecurse "^4.3.0"
estraverse "^5.2.0"
eslint-utils@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672"
integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==
dependencies:
eslint-visitor-keys "^2.0.0"
eslint-visitor-keys@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
eslint-visitor-keys@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
eslint@8.35.0:
version "8.35.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.35.0.tgz#fffad7c7e326bae606f0e8f436a6158566d42323"
integrity sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw==
dependencies:
"@eslint/eslintrc" "^2.0.0"
"@eslint/js" "8.35.0"
"@humanwhocodes/config-array" "^0.11.8"
"@humanwhocodes/module-importer" "^1.0.1"
"@nodelib/fs.walk" "^1.2.8"
ajv "^6.10.0"
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.1.1"
eslint-utils "^3.0.0"
eslint-visitor-keys "^3.3.0"
espree "^9.4.0"
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"
grapheme-splitter "^1.0.4"
ignore "^5.2.0"
import-fresh "^3.0.0"
imurmurhash "^0.1.4"
is-glob "^4.0.0"
is-path-inside "^3.0.3"
js-sdsl "^4.1.4"
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.1"
regexpp "^3.2.0"
strip-ansi "^6.0.1"
strip-json-comments "^3.1.0"
text-table "^0.2.0"
espree@^9.4.0:
version "9.4.1"
resolved "https://registry.yarnpkg.com/espree/-/espree-9.4.1.tgz#51d6092615567a2c2cff7833445e37c28c0065bd"
integrity sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==
dependencies:
acorn "^8.8.0"
acorn-jsx "^5.3.2"
eslint-visitor-keys "^3.3.0"
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@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.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==
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.11, fast-glob@^3.2.9:
version "3.2.12"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80"
integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==
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==
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"
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:
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.0.4"
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11"
integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==
dependencies:
flatted "^3.1.0"
rimraf "^3.0.2"
flatted@^3.1.0:
version "3.2.7"
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==
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==
function-bind@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
function.prototype.name@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621"
integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.3"
es-abstract "^1.19.0"
functions-have-names "^1.2.2"
functions-have-names@^1.2.2:
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-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz#7ad1dc0535f3a2904bba075772763e5051f6d05f"
integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==
dependencies:
function-bind "^1.1.1"
has "^1.0.3"
has-symbols "^1.0.3"
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.2.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.4.0.tgz#64eee64596668a81b8fce18403f94f245ee0d4e5"
integrity sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==
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.1.7:
version "7.1.7"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
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.20.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-13.20.0.tgz#ea276a1e508ffd4f1612888f9d1bad1e2717bf82"
integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==
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"
globalyzer@0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/globalyzer/-/globalyzer-0.1.0.tgz#cb76da79555669a1519d5a8edf093afaa0bf1465"
integrity sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==
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"
globby@^13.1.2:
version "13.1.3"
resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.3.tgz#f62baf5720bcb2c1330c8d4ef222ee12318563ff"
integrity sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==
dependencies:
dir-glob "^3.0.1"
fast-glob "^3.2.11"
ignore "^5.2.0"
merge2 "^1.4.1"
slash "^4.0.0"
globrex@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098"
integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==
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"
graceful-fs@^4.2.4:
version "4.2.10"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
grapheme-splitter@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e"
integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==
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.0"
resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861"
integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==
dependencies:
get-intrinsic "^1.1.1"
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"
has@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
dependencies:
function-bind "^1.1.1"
ignore@^5.2.0:
version "5.2.4"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==
import-fresh@^3.0.0, 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.3, internal-slot@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986"
integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==
dependencies:
get-intrinsic "^1.2.0"
has "^1.0.3"
side-channel "^1.0.4"
is-arguments@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b"
integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==
dependencies:
call-bind "^1.0.2"
has-tostringtag "^1.0.0"
is-array-buffer@^3.0.1:
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-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-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.10.0, is-core-module@^2.11.0, is-core-module@^2.9.0:
version "2.11.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144"
integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==
dependencies:
has "^1.0.3"
is-date-object@^1.0.1, is-date-object@^1.0.5:
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-docker@^2.0.0, is-docker@^2.1.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
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-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3:
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-map@^2.0.1, is-map@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127"
integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==
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-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-set@^2.0.1, is-set@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz#90755fa4c2562dc1c5d4024760d6119b94ca18ec"
integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==
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.9:
version "1.1.10"
resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.10.tgz#36a5b5cb4189b575d1a3e4b08536bfb485801e3f"
integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==
dependencies:
available-typed-arrays "^1.0.5"
call-bind "^1.0.2"
for-each "^0.3.3"
gopd "^1.0.1"
has-tostringtag "^1.0.0"
is-weakmap@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz#5008b59bdc43b698201d18f62b37b2ca243e8cf2"
integrity sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==
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"
is-weakset@^2.0.1:
version "2.0.2"
resolved "https://registry.yarnpkg.com/is-weakset/-/is-weakset-2.0.2.tgz#4569d67a747a1ce5a994dfd4ef6dcea76e7c0a1d"
integrity sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.1.1"
is-wsl@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
dependencies:
is-docker "^2.0.0"
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==
js-sdsl@^4.1.4:
version "4.3.0"
resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.3.0.tgz#aeefe32a451f7af88425b11fdb5f58c90ae1d711"
integrity sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==
"js-tokens@^3.0.0 || ^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
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-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==
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"
"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea"
integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==
dependencies:
array-includes "^3.1.5"
object.assign "^4.1.3"
language-subtag-registry@~0.3.2:
version "0.3.22"
resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz#2e1500861b2e457eba7e7ae86877cbd08fa1fd1d"
integrity sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==
language-tags@=1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a"
integrity sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==
dependencies:
language-subtag-registry "~0.3.2"
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==
loose-envify@^1.1.0, loose-envify@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
dependencies:
js-tokens "^3.0.0 || ^4.0.0"
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"
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@^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==
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.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.4:
version "3.3.4"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
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==
next@13.2.3:
version "13.2.3"
resolved "https://registry.yarnpkg.com/next/-/next-13.2.3.tgz#92d170e7aca421321f230ff80c35c4751035f42e"
integrity sha512-nKFJC6upCPN7DWRx4+0S/1PIOT7vNlCT157w9AzbXEgKy6zkiPKEt5YyRUsRZkmpEqBVrGgOqNfwecTociyg+w==
dependencies:
"@next/env" "13.2.3"
"@swc/helpers" "0.4.14"
caniuse-lite "^1.0.30001406"
postcss "8.4.14"
styled-jsx "5.1.1"
optionalDependencies:
"@next/swc-android-arm-eabi" "13.2.3"
"@next/swc-android-arm64" "13.2.3"
"@next/swc-darwin-arm64" "13.2.3"
"@next/swc-darwin-x64" "13.2.3"
"@next/swc-freebsd-x64" "13.2.3"
"@next/swc-linux-arm-gnueabihf" "13.2.3"
"@next/swc-linux-arm64-gnu" "13.2.3"
"@next/swc-linux-arm64-musl" "13.2.3"
"@next/swc-linux-x64-gnu" "13.2.3"
"@next/swc-linux-x64-musl" "13.2.3"
"@next/swc-win32-arm64-msvc" "13.2.3"
"@next/swc-win32-ia32-msvc" "13.2.3"
"@next/swc-win32-x64-msvc" "13.2.3"
object-assign@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
object-inspect@^1.12.2, object-inspect@^1.9.0:
version "1.12.3"
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9"
integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==
object-is@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac"
integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.3"
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.3, 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.entries@^1.1.6:
version "1.1.6"
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.6.tgz#9737d0e5b8291edd340a3e3264bb8a3b00d5fa23"
integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
object.fromentries@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.6.tgz#cdb04da08c539cffa912dcd368b886e0904bfa73"
integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
object.hasown@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.2.tgz#f919e21fad4eb38a57bc6345b3afd496515c3f92"
integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==
dependencies:
define-properties "^1.1.4"
es-abstract "^1.20.4"
object.values@^1.1.6:
version "1.1.6"
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d"
integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
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"
open@^8.4.0:
version "8.4.2"
resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9"
integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==
dependencies:
define-lazy-prop "^2.0.0"
is-docker "^2.1.1"
is-wsl "^2.2.0"
optionator@^0.9.1:
version "0.9.1"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499"
integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==
dependencies:
deep-is "^0.1.3"
fast-levenshtein "^2.0.6"
levn "^0.4.1"
prelude-ls "^1.2.1"
type-check "^0.4.0"
word-wrap "^1.2.3"
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"
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==
picocolors@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
picomatch@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
postcss@8.4.14:
version "8.4.14"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf"
integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==
dependencies:
nanoid "^3.3.4"
picocolors "^1.0.0"
source-map-js "^1.0.2"
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==
prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
dependencies:
loose-envify "^1.4.0"
object-assign "^4.1.1"
react-is "^16.13.1"
punycode@^2.1.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f"
integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==
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==
react-dom@18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
dependencies:
loose-envify "^1.1.0"
scheduler "^0.23.0"
react-is@^16.13.1:
version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
react@18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
dependencies:
loose-envify "^1.1.0"
regenerator-runtime@^0.13.11:
version "0.13.11"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
regexp.prototype.flags@^1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac"
integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.3"
functions-have-names "^1.2.2"
regexpp@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2"
integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==
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@^1.22.1:
version "1.22.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
dependencies:
is-core-module "^2.9.0"
path-parse "^1.0.7"
supports-preserve-symlinks-flag "^1.0.0"
resolve@^2.0.0-next.4:
version "2.0.0-next.4"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660"
integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==
dependencies:
is-core-module "^2.9.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"
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-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"
scheduler@^0.23.0:
version "0.23.0"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
dependencies:
loose-envify "^1.1.0"
semver@^6.3.0:
version "6.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
semver@^7.3.7:
version "7.3.8"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798"
integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==
dependencies:
lru-cache "^6.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==
slash@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7"
integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==
source-map-js@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
stop-iteration-iterator@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz#6a60be0b4ee757d1ed5254858ec66b10c49285e4"
integrity sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==
dependencies:
internal-slot "^1.0.4"
string.prototype.matchall@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3"
integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
get-intrinsic "^1.1.3"
has-symbols "^1.0.3"
internal-slot "^1.0.3"
regexp.prototype.flags "^1.4.3"
side-channel "^1.0.4"
string.prototype.trimend@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533"
integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
string.prototype.trimstart@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4"
integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==
dependencies:
call-bind "^1.0.2"
define-properties "^1.1.4"
es-abstract "^1.20.4"
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.0, 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==
styled-jsx@5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.1.1.tgz#839a1c3aaacc4e735fed0781b8619ea5d0009d1f"
integrity sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==
dependencies:
client-only "0.0.1"
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==
synckit@^0.8.4:
version "0.8.5"
resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.5.tgz#b7f4358f9bb559437f9f167eb6bc46b3c9818fa3"
integrity sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==
dependencies:
"@pkgr/utils" "^2.3.1"
tslib "^2.5.0"
tapable@^2.2.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
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==
tiny-glob@^0.2.9:
version "0.2.9"
resolved "https://registry.yarnpkg.com/tiny-glob/-/tiny-glob-0.2.9.tgz#2212d441ac17928033b110f8b3640683129d31e2"
integrity sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==
dependencies:
globalyzer "0.1.0"
globrex "^0.1.2"
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"
tsconfig-paths@^3.14.1:
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.4.0, tslib@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
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-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-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@4.9.5:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
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"
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"
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-collection@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.1.tgz#70eab71ebbbd2aefaf32f917082fc62cdcb70906"
integrity sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==
dependencies:
is-map "^2.0.1"
is-set "^2.0.1"
is-weakmap "^2.0.1"
is-weakset "^2.0.1"
which-typed-array@^1.1.9:
version "1.1.9"
resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6"
integrity sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==
dependencies:
available-typed-arrays "^1.0.5"
call-bind "^1.0.2"
for-each "^0.3.3"
gopd "^1.0.1"
has-tostringtag "^1.0.0"
is-typed-array "^1.1.10"
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"
word-wrap@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
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==
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==
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
|
solana_public_repos/stripe-onramp/package.json
|
{
"name": "stripe-onramp",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@stripe/crypto": "^0.0.2",
"@stripe/stripe-js": "^1.48.0",
"@types/node": "18.14.6",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"eslint": "8.35.0",
"eslint-config-next": "13.2.3",
"next": "13.2.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "4.9.5"
}
}
| 0
|
solana_public_repos
|
solana_public_repos/stripe-onramp/tsconfig.json
|
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
| 0
|
solana_public_repos
|
solana_public_repos/stripe-onramp/.eslintrc.json
|
{
"extends": "next/core-web-vitals"
}
| 0
|
solana_public_repos/stripe-onramp/src
|
solana_public_repos/stripe-onramp/src/styles/globals.css
|
:root {
--max-width: 1100px;
--border-radius: 12px;
--font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',
'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',
'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
--primary-glow: conic-gradient(
from 180deg at 50% 50%,
#16abff33 0deg,
#0885ff33 55deg,
#54d6ff33 120deg,
#0071ff33 160deg,
transparent 360deg
);
--secondary-glow: radial-gradient(
rgba(255, 255, 255, 1),
rgba(255, 255, 255, 0)
);
--tile-start-rgb: 239, 245, 249;
--tile-end-rgb: 228, 232, 233;
--tile-border: conic-gradient(
#00000080,
#00000040,
#00000030,
#00000020,
#00000010,
#00000010,
#00000080
);
--callout-rgb: 238, 240, 241;
--callout-border-rgb: 172, 175, 176;
--card-rgb: 180, 185, 188;
--card-border-rgb: 131, 134, 135;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
--secondary-glow: linear-gradient(
to bottom right,
rgba(1, 65, 255, 0),
rgba(1, 65, 255, 0),
rgba(1, 65, 255, 0.3)
);
--tile-start-rgb: 2, 13, 46;
--tile-end-rgb: 2, 5, 19;
--tile-border: conic-gradient(
#ffffff80,
#ffffff40,
#ffffff30,
#ffffff20,
#ffffff10,
#ffffff10,
#ffffff80
);
--callout-rgb: 20, 20, 20;
--callout-border-rgb: 108, 108, 108;
--card-rgb: 100, 100, 100;
--card-border-rgb: 200, 200, 200;
}
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
max-width: 100vw;
overflow-x: hidden;
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
a {
color: inherit;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}
| 0
|
solana_public_repos/stripe-onramp/src
|
solana_public_repos/stripe-onramp/src/pages/index.tsx
|
import Head from 'next/head'
import Script from 'next/script'
import { loadStripeOnramp, OnrampSession } from "@stripe/crypto"
import { useEffect } from 'react'
export default function Home({ clientSecret }: { clientSecret: string | null }) {
const loadOnramp = async (clientSecret: string) => {
if (clientSecret) {
const stripeOnramp = await loadStripeOnramp(
"pk_test_51MelqmKFdUBg6B83SMCXJh2TAY7gDjgpTyj0DoeASTcLqwY7lBFH3ZhlJKYQ9eOEm9kSBLwfHovKuEIVHpvOfnN800qEcndtaf"
)
if (!stripeOnramp) throw("Onramp failed to load.")
const onrampSession = stripeOnramp.createSession({ clientSecret, appearance: { theme: 'dark' } })
onrampSession.mount("#onramp-element")
}
}
useEffect(() => {
if (clientSecret) loadOnramp(clientSecret)
}, [clientSecret])
return (
<>
<Head>
<title>Grizzly Stripe Onramp</title>
<meta name="description" content="Generated by create next app" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main>
<Script src="https://js.stripe.com/v3/" />
<Script src="https://crypto-js.stripe.com/crypto-onramp-outer.js" />
<div id='onramp-element' style={{ marginTop: '4vh', display: 'flex', justifyContent: 'center', alignItems: 'center' }}></div>
</main>
</>
)
}
export async function getServerSideProps() {
try {
const res = await fetch(
'https://api.stripe.com/v1/crypto/onramp_sessions',
{
headers: {
'Authorization': 'Bearer ' + process.env.STRIPE_API_KEY,
'Content-Type': 'application/json',
},
method: 'POST'
}
).then(res => res.json())
const clientSecret = res['client_secret']
return { props: { clientSecret } }
} catch (err) {
console.error(err)
return { props: { clientSecret: null } }
}
}
| 0
|
solana_public_repos/stripe-onramp/src
|
solana_public_repos/stripe-onramp/src/pages/_document.tsx
|
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
| 0
|
solana_public_repos/stripe-onramp/src
|
solana_public_repos/stripe-onramp/src/pages/_app.tsx
|
import '@/styles/globals.css'
import type { AppProps } from 'next/app'
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}
| 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.