repo_id
stringclasses 563
values | file_path
stringlengths 40
166
| content
stringlengths 1
2.94M
| __index_level_0__
int64 0
0
|
|---|---|---|---|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/ContributeWithVoteArgs.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
export type ContributeWithVoteArgs = {
amount: beet.bignum
nextBump: beet.COption<number>
}
/**
* @category userTypes
* @category generated
*/
export const contributeWithVoteArgsBeet =
new beet.FixableBeetArgsStruct<ContributeWithVoteArgs>(
[
['amount', beet.u64],
['nextBump', beet.coption(beet.u8)],
],
'ContributeWithVoteArgs'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/VaultState.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
/**
* @category enums
* @category generated
*/
export enum VaultState {
Active,
Deactivated,
Closed,
}
/**
* @category userTypes
* @category generated
*/
export const vaultStateBeet = beet.fixedScalarEnum(
VaultState
) as beet.FixedSizeBeet<VaultState, VaultState>
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/VoteTicket.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as web3 from '@solana/web3.js'
import * as beet from '@metaplex-foundation/beet'
import * as beetSolana from '@metaplex-foundation/beet-solana'
import { VoteStatus, voteStatusBeet } from './VoteStatus'
export type VoteTicket = {
voter: web3.PublicKey
amount: beet.bignum
timestamp: beet.bignum
voteStatus: VoteStatus
}
/**
* @category userTypes
* @category generated
*/
export const voteTicketBeet = new beet.BeetArgsStruct<VoteTicket>(
[
['voter', beetSolana.publicKey],
['amount', beet.u64],
['timestamp', beet.u64],
['voteStatus', voteStatusBeet],
],
'VoteTicket'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/CustomStrategy.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as web3 from '@solana/web3.js'
import * as beetSolana from '@metaplex-foundation/beet-solana'
import * as beet from '@metaplex-foundation/beet'
export type CustomStrategy = {
programId: web3.PublicKey
accounts: web3.PublicKey[]
data: Uint8Array
}
/**
* @category userTypes
* @category generated
*/
export const customStrategyBeet =
new beet.FixableBeetArgsStruct<CustomStrategy>(
[
['programId', beetSolana.publicKey],
['accounts', beet.array(beetSolana.publicKey)],
['data', beet.bytes],
],
'CustomStrategy'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/PoolState.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
/**
* @category enums
* @category generated
*/
export enum PoolState {
PendingStart,
Active,
Distributed,
}
/**
* @category userTypes
* @category generated
*/
export const poolStateBeet = beet.fixedScalarEnum(
PoolState
) as beet.FixedSizeBeet<PoolState, PoolState>
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/CreatePoolArgs.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
import { Pool, poolBeet } from '../accounts/Pool'
export type CreatePoolArgs = {
pool: Pool
}
/**
* @category userTypes
* @category generated
*/
export const createPoolArgsBeet = new beet.BeetArgsStruct<CreatePoolArgs>(
[['pool', poolBeet]],
'CreatePoolArgs'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/PoolAccess.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
import { TokenGateInfo, tokenGateInfoBeet } from './TokenGateInfo'
/**
* This type is used to derive the {@link PoolAccess} type as well as the de/serializer.
* However don't refer to it in your code but use the {@link PoolAccess} type instead.
*
* @category userTypes
* @category enums
* @category generated
* @private
*/
export type PoolAccessRecord = {
Open: void /* scalar variant */
Manual: void /* scalar variant */
TokenGated: { fields: [TokenGateInfo] }
}
/**
* Union type respresenting the PoolAccess data enum defined in Rust.
*
* NOTE: that it includes a `__kind` property which allows to narrow types in
* switch/if statements.
* Additionally `isPoolAccess*` type guards are exposed below to narrow to a specific variant.
*
* @category userTypes
* @category enums
* @category generated
*/
export type PoolAccess = beet.DataEnumKeyAsKind<PoolAccessRecord>
export const isPoolAccessOpen = (
x: PoolAccess
): x is PoolAccess & { __kind: 'Open' } => x.__kind === 'Open'
export const isPoolAccessManual = (
x: PoolAccess
): x is PoolAccess & { __kind: 'Manual' } => x.__kind === 'Manual'
export const isPoolAccessTokenGated = (
x: PoolAccess
): x is PoolAccess & { __kind: 'TokenGated' } => x.__kind === 'TokenGated'
/**
* @category userTypes
* @category generated
*/
export const poolAccessBeet = beet.dataEnum<PoolAccessRecord>([
['Open', beet.unit],
['Manual', beet.unit],
[
'TokenGated',
new beet.BeetArgsStruct<PoolAccessRecord['TokenGated']>(
[['fields', beet.fixedSizeTuple([tokenGateInfoBeet])]],
'PoolAccessRecord["TokenGated"]'
),
],
]) as beet.FixableBeet<PoolAccess, PoolAccess>
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/AcceptanceStatus.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
/**
* @category enums
* @category generated
*/
export enum AcceptanceStatus {
Accepted,
Pending,
Denied,
}
/**
* @category userTypes
* @category generated
*/
export const acceptanceStatusBeet = beet.fixedScalarEnum(
AcceptanceStatus
) as beet.FixedSizeBeet<AcceptanceStatus, AcceptanceStatus>
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/JoinPoolWithTokenArgs.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
import { Participant, participantBeet } from '../accounts/Participant'
export type JoinPoolWithTokenArgs = {
participant: Participant
}
/**
* @category userTypes
* @category generated
*/
export const joinPoolWithTokenArgsBeet =
new beet.BeetArgsStruct<JoinPoolWithTokenArgs>(
[['participant', participantBeet]],
'JoinPoolWithTokenArgs'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/SybilStrategy.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as web3 from '@solana/web3.js'
import * as beet from '@metaplex-foundation/beet'
import * as beetSolana from '@metaplex-foundation/beet-solana'
import { CustomStrategy, customStrategyBeet } from './CustomStrategy'
/**
* This type is used to derive the {@link SybilStrategy} type as well as the de/serializer.
* However don't refer to it in your code but use the {@link SybilStrategy} type instead.
*
* @category userTypes
* @category enums
* @category generated
* @private
*/
export type SybilStrategyRecord = {
None: void /* scalar variant */
Relayer: { fields: [web3.PublicKey[]] }
Custom: { fields: [CustomStrategy] }
}
/**
* Union type respresenting the SybilStrategy data enum defined in Rust.
*
* NOTE: that it includes a `__kind` property which allows to narrow types in
* switch/if statements.
* Additionally `isSybilStrategy*` type guards are exposed below to narrow to a specific variant.
*
* @category userTypes
* @category enums
* @category generated
*/
export type SybilStrategy = beet.DataEnumKeyAsKind<SybilStrategyRecord>
export const isSybilStrategyNone = (
x: SybilStrategy
): x is SybilStrategy & { __kind: 'None' } => x.__kind === 'None'
export const isSybilStrategyRelayer = (
x: SybilStrategy
): x is SybilStrategy & { __kind: 'Relayer' } => x.__kind === 'Relayer'
export const isSybilStrategyCustom = (
x: SybilStrategy
): x is SybilStrategy & { __kind: 'Custom' } => x.__kind === 'Custom'
/**
* @category userTypes
* @category generated
*/
export const sybilStrategyBeet = beet.dataEnum<SybilStrategyRecord>([
['None', beet.unit],
[
'Relayer',
new beet.FixableBeetArgsStruct<SybilStrategyRecord['Relayer']>(
[['fields', beet.tuple([beet.array(beetSolana.publicKey)])]],
'SybilStrategyRecord["Relayer"]'
),
],
[
'Custom',
new beet.FixableBeetArgsStruct<SybilStrategyRecord['Custom']>(
[['fields', beet.tuple([customStrategyBeet])]],
'SybilStrategyRecord["Custom"]'
),
],
]) as beet.FixableBeet<SybilStrategy, SybilStrategy>
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/index.ts
|
export * from './AcceptanceStatus'
export * from './ContributeWithVoteArgs'
export * from './CreatePoolArgs'
export * from './CreateVaultArgs'
export * from './CustomStrategy'
export * from './JoinPoolArgs'
export * from './JoinPoolWithTokenArgs'
export * from './PoolAccess'
export * from './PoolState'
export * from './RefreshArgs'
export * from './SybilStrategy'
export * from './TokenGateInfo'
export * from './VaultState'
export * from './VoteStatus'
export * from './VoteTicket'
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/VoteStatus.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
/**
* @category enums
* @category generated
*/
export enum VoteStatus {
Valid,
Invalid,
}
/**
* @category userTypes
* @category generated
*/
export const voteStatusBeet = beet.fixedScalarEnum(
VoteStatus
) as beet.FixedSizeBeet<VoteStatus, VoteStatus>
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/RefreshArgs.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
import { Pool, poolBeet } from '../accounts/Pool'
import { Participant, participantBeet } from '../accounts/Participant'
export type RefreshArgs = {
pool: Pool
participants: Participant[]
}
/**
* @category userTypes
* @category generated
*/
export const refreshArgsBeet = new beet.FixableBeetArgsStruct<RefreshArgs>(
[
['pool', poolBeet],
['participants', beet.array(participantBeet)],
],
'RefreshArgs'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/CreateVaultArgs.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
import { Vault, vaultBeet } from '../accounts/Vault'
export type CreateVaultArgs = {
vault: Vault
}
/**
* @category userTypes
* @category generated
*/
export const createVaultArgsBeet = new beet.BeetArgsStruct<CreateVaultArgs>(
[['vault', vaultBeet]],
'CreateVaultArgs'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/types/TokenGateInfo.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as web3 from '@solana/web3.js'
import * as beet from '@metaplex-foundation/beet'
import * as beetSolana from '@metaplex-foundation/beet-solana'
export type TokenGateInfo = {
mint: web3.PublicKey
minimumBalance: beet.bignum
}
/**
* @category userTypes
* @category generated
*/
export const tokenGateInfoBeet = new beet.BeetArgsStruct<TokenGateInfo>(
[
['mint', beetSolana.publicKey],
['minimumBalance', beet.u64],
],
'TokenGateInfo'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/accounts/Pool.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet'
import * as web3 from '@solana/web3.js'
import * as beetSolana from '@metaplex-foundation/beet-solana'
import { PoolState, poolStateBeet } from '../types/PoolState'
import { PoolAccess, poolAccessBeet } from '../types/PoolAccess'
import { SybilStrategy, sybilStrategyBeet } from '../types/SybilStrategy'
/**
* Arguments used to create {@link Pool}
* @category Accounts
* @category generated
*/
export type PoolArgs = {
name: string
start: beet.bignum
end: beet.bignum
mint: web3.PublicKey
admins: web3.PublicKey[]
poolState: PoolState
poolAccess: PoolAccess
sybilStrategy: SybilStrategy
participantIndex: number
bump: number
}
/**
* Holds the data for the {@link Pool} Account and provides de/serialization
* functionality for that data
*
* @category Accounts
* @category generated
*/
export class Pool implements PoolArgs {
private constructor(
readonly name: string,
readonly start: beet.bignum,
readonly end: beet.bignum,
readonly mint: web3.PublicKey,
readonly admins: web3.PublicKey[],
readonly poolState: PoolState,
readonly poolAccess: PoolAccess,
readonly sybilStrategy: SybilStrategy,
readonly participantIndex: number,
readonly bump: number
) {}
/**
* Creates a {@link Pool} instance from the provided args.
*/
static fromArgs(args: PoolArgs) {
return new Pool(
args.name,
args.start,
args.end,
args.mint,
args.admins,
args.poolState,
args.poolAccess,
args.sybilStrategy,
args.participantIndex,
args.bump
)
}
/**
* Deserializes the {@link Pool} from the data of the provided {@link web3.AccountInfo}.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static fromAccountInfo(
accountInfo: web3.AccountInfo<Buffer>,
offset = 0
): [Pool, number] {
return Pool.deserialize(accountInfo.data, offset)
}
/**
* Retrieves the account info from the provided address and deserializes
* the {@link Pool} from its data.
*
* @throws Error if no account info is found at the address or if deserialization fails
*/
static async fromAccountAddress(
connection: web3.Connection,
address: web3.PublicKey,
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<Pool> {
const accountInfo = await connection.getAccountInfo(
address,
commitmentOrConfig
)
if (accountInfo == null) {
throw new Error(`Unable to find Pool account at ${address}`)
}
return Pool.fromAccountInfo(accountInfo, 0)[0]
}
/**
* Provides a {@link web3.Connection.getProgramAccounts} config builder,
* to fetch accounts matching filters that can be specified via that builder.
*
* @param programId - the program that owns the accounts we are filtering
*/
static gpaBuilder(
programId: web3.PublicKey = new web3.PublicKey(
'BNsqbpyoGuh66NJh5tRw6DNqy6y6X9s6LgF6yunDGRKt'
)
) {
return beetSolana.GpaBuilder.fromStruct(programId, poolBeet)
}
/**
* Deserializes the {@link Pool} from the provided data Buffer.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static deserialize(buf: Buffer, offset = 0): [Pool, number] {
return poolBeet.deserialize(buf, offset)
}
/**
* Serializes the {@link Pool} into a Buffer.
* @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
*/
serialize(): [Buffer, number] {
return poolBeet.serialize(this)
}
/**
* Returns the byteSize of a {@link Buffer} holding the serialized data of
* {@link Pool} for the provided args.
*
* @param args need to be provided since the byte size for this account
* depends on them
*/
static byteSize(args: PoolArgs) {
const instance = Pool.fromArgs(args)
return poolBeet.toFixedFromValue(instance).byteSize
}
/**
* Fetches the minimum balance needed to exempt an account holding
* {@link Pool} data from rent
*
* @param args need to be provided since the byte size for this account
* depends on them
* @param connection used to retrieve the rent exemption information
*/
static async getMinimumBalanceForRentExemption(
args: PoolArgs,
connection: web3.Connection,
commitment?: web3.Commitment
): Promise<number> {
return connection.getMinimumBalanceForRentExemption(
Pool.byteSize(args),
commitment
)
}
/**
* Returns a readable version of {@link Pool} properties
* and can be used to convert to JSON and/or logging
*/
pretty() {
return {
name: this.name,
start: (() => {
const x = <{ toNumber: () => number }>this.start
if (typeof x.toNumber === 'function') {
try {
return x.toNumber()
} catch (_) {
return x
}
}
return x
})(),
end: (() => {
const x = <{ toNumber: () => number }>this.end
if (typeof x.toNumber === 'function') {
try {
return x.toNumber()
} catch (_) {
return x
}
}
return x
})(),
mint: this.mint.toBase58(),
admins: this.admins,
poolState: 'PoolState.' + PoolState[this.poolState],
poolAccess: this.poolAccess.__kind,
sybilStrategy: this.sybilStrategy.__kind,
participantIndex: this.participantIndex,
bump: this.bump,
}
}
}
/**
* @category Accounts
* @category generated
*/
export const poolBeet = new beet.FixableBeetStruct<Pool, PoolArgs>(
[
['name', beet.utf8String],
['start', beet.u64],
['end', beet.u64],
['mint', beetSolana.publicKey],
['admins', beet.array(beetSolana.publicKey)],
['poolState', poolStateBeet],
['poolAccess', poolAccessBeet],
['sybilStrategy', sybilStrategyBeet],
['participantIndex', beet.u8],
['bump', beet.u8],
],
Pool.fromArgs,
'Pool'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/accounts/Vault.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as web3 from '@solana/web3.js'
import * as beet from '@metaplex-foundation/beet'
import * as beetSolana from '@metaplex-foundation/beet-solana'
import { VaultState, vaultStateBeet } from '../types/VaultState'
/**
* Arguments used to create {@link Vault}
* @category Accounts
* @category generated
*/
export type VaultArgs = {
name: string
authority: web3.PublicKey
vaultState: VaultState
bump: number
}
/**
* Holds the data for the {@link Vault} Account and provides de/serialization
* functionality for that data
*
* @category Accounts
* @category generated
*/
export class Vault implements VaultArgs {
private constructor(
readonly name: string,
readonly authority: web3.PublicKey,
readonly vaultState: VaultState,
readonly bump: number
) {}
/**
* Creates a {@link Vault} instance from the provided args.
*/
static fromArgs(args: VaultArgs) {
return new Vault(args.name, args.authority, args.vaultState, args.bump)
}
/**
* Deserializes the {@link Vault} from the data of the provided {@link web3.AccountInfo}.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static fromAccountInfo(
accountInfo: web3.AccountInfo<Buffer>,
offset = 0
): [Vault, number] {
return Vault.deserialize(accountInfo.data, offset)
}
/**
* Retrieves the account info from the provided address and deserializes
* the {@link Vault} from its data.
*
* @throws Error if no account info is found at the address or if deserialization fails
*/
static async fromAccountAddress(
connection: web3.Connection,
address: web3.PublicKey,
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<Vault> {
const accountInfo = await connection.getAccountInfo(
address,
commitmentOrConfig
)
if (accountInfo == null) {
throw new Error(`Unable to find Vault account at ${address}`)
}
return Vault.fromAccountInfo(accountInfo, 0)[0]
}
/**
* Provides a {@link web3.Connection.getProgramAccounts} config builder,
* to fetch accounts matching filters that can be specified via that builder.
*
* @param programId - the program that owns the accounts we are filtering
*/
static gpaBuilder(
programId: web3.PublicKey = new web3.PublicKey(
'BNsqbpyoGuh66NJh5tRw6DNqy6y6X9s6LgF6yunDGRKt'
)
) {
return beetSolana.GpaBuilder.fromStruct(programId, vaultBeet)
}
/**
* Deserializes the {@link Vault} from the provided data Buffer.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static deserialize(buf: Buffer, offset = 0): [Vault, number] {
return vaultBeet.deserialize(buf, offset)
}
/**
* Serializes the {@link Vault} into a Buffer.
* @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
*/
serialize(): [Buffer, number] {
return vaultBeet.serialize(this)
}
/**
* Returns the byteSize of a {@link Buffer} holding the serialized data of
* {@link Vault} for the provided args.
*
* @param args need to be provided since the byte size for this account
* depends on them
*/
static byteSize(args: VaultArgs) {
const instance = Vault.fromArgs(args)
return vaultBeet.toFixedFromValue(instance).byteSize
}
/**
* Fetches the minimum balance needed to exempt an account holding
* {@link Vault} data from rent
*
* @param args need to be provided since the byte size for this account
* depends on them
* @param connection used to retrieve the rent exemption information
*/
static async getMinimumBalanceForRentExemption(
args: VaultArgs,
connection: web3.Connection,
commitment?: web3.Commitment
): Promise<number> {
return connection.getMinimumBalanceForRentExemption(
Vault.byteSize(args),
commitment
)
}
/**
* Returns a readable version of {@link Vault} properties
* and can be used to convert to JSON and/or logging
*/
pretty() {
return {
name: this.name,
authority: this.authority.toBase58(),
vaultState: 'VaultState.' + VaultState[this.vaultState],
bump: this.bump,
}
}
}
/**
* @category Accounts
* @category generated
*/
export const vaultBeet = new beet.FixableBeetStruct<Vault, VaultArgs>(
[
['name', beet.utf8String],
['authority', beetSolana.publicKey],
['vaultState', vaultStateBeet],
['bump', beet.u8],
],
Vault.fromArgs,
'Vault'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/accounts/Participant.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as web3 from '@solana/web3.js'
import * as beet from '@metaplex-foundation/beet'
import * as beetSolana from '@metaplex-foundation/beet-solana'
import {
AcceptanceStatus,
acceptanceStatusBeet,
} from '../types/AcceptanceStatus'
/**
* Arguments used to create {@link Participant}
* @category Accounts
* @category generated
*/
export type ParticipantArgs = {
poolId: web3.PublicKey
vaultId: web3.PublicKey
timestamp: beet.bignum
tableIndex: number
status: AcceptanceStatus
bump: number
}
/**
* Holds the data for the {@link Participant} Account and provides de/serialization
* functionality for that data
*
* @category Accounts
* @category generated
*/
export class Participant implements ParticipantArgs {
private constructor(
readonly poolId: web3.PublicKey,
readonly vaultId: web3.PublicKey,
readonly timestamp: beet.bignum,
readonly tableIndex: number,
readonly status: AcceptanceStatus,
readonly bump: number
) {}
/**
* Creates a {@link Participant} instance from the provided args.
*/
static fromArgs(args: ParticipantArgs) {
return new Participant(
args.poolId,
args.vaultId,
args.timestamp,
args.tableIndex,
args.status,
args.bump
)
}
/**
* Deserializes the {@link Participant} from the data of the provided {@link web3.AccountInfo}.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static fromAccountInfo(
accountInfo: web3.AccountInfo<Buffer>,
offset = 0
): [Participant, number] {
return Participant.deserialize(accountInfo.data, offset)
}
/**
* Retrieves the account info from the provided address and deserializes
* the {@link Participant} from its data.
*
* @throws Error if no account info is found at the address or if deserialization fails
*/
static async fromAccountAddress(
connection: web3.Connection,
address: web3.PublicKey,
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<Participant> {
const accountInfo = await connection.getAccountInfo(
address,
commitmentOrConfig
)
if (accountInfo == null) {
throw new Error(`Unable to find Participant account at ${address}`)
}
return Participant.fromAccountInfo(accountInfo, 0)[0]
}
/**
* Provides a {@link web3.Connection.getProgramAccounts} config builder,
* to fetch accounts matching filters that can be specified via that builder.
*
* @param programId - the program that owns the accounts we are filtering
*/
static gpaBuilder(
programId: web3.PublicKey = new web3.PublicKey(
'BNsqbpyoGuh66NJh5tRw6DNqy6y6X9s6LgF6yunDGRKt'
)
) {
return beetSolana.GpaBuilder.fromStruct(programId, participantBeet)
}
/**
* Deserializes the {@link Participant} from the provided data Buffer.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static deserialize(buf: Buffer, offset = 0): [Participant, number] {
return participantBeet.deserialize(buf, offset)
}
/**
* Serializes the {@link Participant} into a Buffer.
* @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
*/
serialize(): [Buffer, number] {
return participantBeet.serialize(this)
}
/**
* Returns the byteSize of a {@link Buffer} holding the serialized data of
* {@link Participant}
*/
static get byteSize() {
return participantBeet.byteSize
}
/**
* Fetches the minimum balance needed to exempt an account holding
* {@link Participant} data from rent
*
* @param connection used to retrieve the rent exemption information
*/
static async getMinimumBalanceForRentExemption(
connection: web3.Connection,
commitment?: web3.Commitment
): Promise<number> {
return connection.getMinimumBalanceForRentExemption(
Participant.byteSize,
commitment
)
}
/**
* Determines if the provided {@link Buffer} has the correct byte size to
* hold {@link Participant} data.
*/
static hasCorrectByteSize(buf: Buffer, offset = 0) {
return buf.byteLength - offset === Participant.byteSize
}
/**
* Returns a readable version of {@link Participant} properties
* and can be used to convert to JSON and/or logging
*/
pretty() {
return {
poolId: this.poolId.toBase58(),
vaultId: this.vaultId.toBase58(),
timestamp: (() => {
const x = <{ toNumber: () => number }>this.timestamp
if (typeof x.toNumber === 'function') {
try {
return x.toNumber()
} catch (_) {
return x
}
}
return x
})(),
tableIndex: this.tableIndex,
status: 'AcceptanceStatus.' + AcceptanceStatus[this.status],
bump: this.bump,
}
}
}
/**
* @category Accounts
* @category generated
*/
export const participantBeet = new beet.BeetStruct<
Participant,
ParticipantArgs
>(
[
['poolId', beetSolana.publicKey],
['vaultId', beetSolana.publicKey],
['timestamp', beet.u64],
['tableIndex', beet.u8],
['status', acceptanceStatusBeet],
['bump', beet.u8],
],
Participant.fromArgs,
'Participant'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/accounts/VoteTable.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as web3 from '@solana/web3.js'
import * as beetSolana from '@metaplex-foundation/beet-solana'
import * as beet from '@metaplex-foundation/beet'
import { VoteTicket, voteTicketBeet } from '../types/VoteTicket'
/**
* Arguments used to create {@link VoteTable}
* @category Accounts
* @category generated
*/
export type VoteTableArgs = {
pool: web3.PublicKey
participant: web3.PublicKey
table: Map<number, VoteTicket>
index: number
bump: number
}
/**
* Holds the data for the {@link VoteTable} Account and provides de/serialization
* functionality for that data
*
* @category Accounts
* @category generated
*/
export class VoteTable implements VoteTableArgs {
private constructor(
readonly pool: web3.PublicKey,
readonly participant: web3.PublicKey,
readonly table: Map<number, VoteTicket>,
readonly index: number,
readonly bump: number
) {}
/**
* Creates a {@link VoteTable} instance from the provided args.
*/
static fromArgs(args: VoteTableArgs) {
return new VoteTable(
args.pool,
args.participant,
args.table,
args.index,
args.bump
)
}
/**
* Deserializes the {@link VoteTable} from the data of the provided {@link web3.AccountInfo}.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static fromAccountInfo(
accountInfo: web3.AccountInfo<Buffer>,
offset = 0
): [VoteTable, number] {
return VoteTable.deserialize(accountInfo.data, offset)
}
/**
* Retrieves the account info from the provided address and deserializes
* the {@link VoteTable} from its data.
*
* @throws Error if no account info is found at the address or if deserialization fails
*/
static async fromAccountAddress(
connection: web3.Connection,
address: web3.PublicKey,
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<VoteTable> {
const accountInfo = await connection.getAccountInfo(
address,
commitmentOrConfig
)
if (accountInfo == null) {
throw new Error(`Unable to find VoteTable account at ${address}`)
}
return VoteTable.fromAccountInfo(accountInfo, 0)[0]
}
/**
* Provides a {@link web3.Connection.getProgramAccounts} config builder,
* to fetch accounts matching filters that can be specified via that builder.
*
* @param programId - the program that owns the accounts we are filtering
*/
static gpaBuilder(
programId: web3.PublicKey = new web3.PublicKey(
'BNsqbpyoGuh66NJh5tRw6DNqy6y6X9s6LgF6yunDGRKt'
)
) {
return beetSolana.GpaBuilder.fromStruct(programId, voteTableBeet)
}
/**
* Deserializes the {@link VoteTable} from the provided data Buffer.
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
*/
static deserialize(buf: Buffer, offset = 0): [VoteTable, number] {
return voteTableBeet.deserialize(buf, offset)
}
/**
* Serializes the {@link VoteTable} into a Buffer.
* @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
*/
serialize(): [Buffer, number] {
return voteTableBeet.serialize(this)
}
/**
* Returns the byteSize of a {@link Buffer} holding the serialized data of
* {@link VoteTable} for the provided args.
*
* @param args need to be provided since the byte size for this account
* depends on them
*/
static byteSize(args: VoteTableArgs) {
const instance = VoteTable.fromArgs(args)
return voteTableBeet.toFixedFromValue(instance).byteSize
}
/**
* Fetches the minimum balance needed to exempt an account holding
* {@link VoteTable} data from rent
*
* @param args need to be provided since the byte size for this account
* depends on them
* @param connection used to retrieve the rent exemption information
*/
static async getMinimumBalanceForRentExemption(
args: VoteTableArgs,
connection: web3.Connection,
commitment?: web3.Commitment
): Promise<number> {
return connection.getMinimumBalanceForRentExemption(
VoteTable.byteSize(args),
commitment
)
}
/**
* Returns a readable version of {@link VoteTable} properties
* and can be used to convert to JSON and/or logging
*/
pretty() {
return {
pool: this.pool.toBase58(),
participant: this.participant.toBase58(),
table: this.table,
index: this.index,
bump: this.bump,
}
}
}
/**
* @category Accounts
* @category generated
*/
export const voteTableBeet = new beet.FixableBeetStruct<
VoteTable,
VoteTableArgs
>(
[
['pool', beetSolana.publicKey],
['participant', beetSolana.publicKey],
['table', beet.map(beet.u8, voteTicketBeet)],
['index', beet.u8],
['bump', beet.u8],
],
VoteTable.fromArgs,
'VoteTable'
)
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/accounts/index.ts
|
export * from './Participant'
export * from './Pool'
export * from './Vault'
export * from './VoteTable'
import { Participant } from './Participant'
import { Pool } from './Pool'
import { Vault } from './Vault'
import { VoteTable } from './VoteTable'
export const accountProviders = { Participant, Pool, Vault, VoteTable }
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated
|
solana_public_repos/StockpileLabs/stockpile-lite/sdk/src/generated/errors/index.ts
|
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
type ErrorWithCode = Error & { code: number }
type MaybeErrorWithCode = ErrorWithCode | null | undefined
const createErrorFromCodeLookup: Map<number, () => ErrorWithCode> = new Map()
const createErrorFromNameLookup: Map<string, () => ErrorWithCode> = new Map()
/**
* DefaultError: 'I'm too lazy to write errors'
*
* @category Errors
* @category generated
*/
export class DefaultErrorError extends Error {
readonly code: number = 0x0
readonly name: string = 'DefaultError'
constructor() {
super("I'm too lazy to write errors")
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, DefaultErrorError)
}
}
}
createErrorFromCodeLookup.set(0x0, () => new DefaultErrorError())
createErrorFromNameLookup.set('DefaultError', () => new DefaultErrorError())
/**
* PendingStart: 'Pool is pending start'
*
* @category Errors
* @category generated
*/
export class PendingStartError extends Error {
readonly code: number = 0x1
readonly name: string = 'PendingStart'
constructor() {
super('Pool is pending start')
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, PendingStartError)
}
}
}
createErrorFromCodeLookup.set(0x1, () => new PendingStartError())
createErrorFromNameLookup.set('PendingStart', () => new PendingStartError())
/**
* PoolDistributed: 'Pool funds have been distributed'
*
* @category Errors
* @category generated
*/
export class PoolDistributedError extends Error {
readonly code: number = 0x2
readonly name: string = 'PoolDistributed'
constructor() {
super('Pool funds have been distributed')
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, PoolDistributedError)
}
}
}
createErrorFromCodeLookup.set(0x2, () => new PoolDistributedError())
createErrorFromNameLookup.set(
'PoolDistributed',
() => new PoolDistributedError()
)
/**
* VaultClosed: 'This vault is closed'
*
* @category Errors
* @category generated
*/
export class VaultClosedError extends Error {
readonly code: number = 0x3
readonly name: string = 'VaultClosed'
constructor() {
super('This vault is closed')
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, VaultClosedError)
}
}
}
createErrorFromCodeLookup.set(0x3, () => new VaultClosedError())
createErrorFromNameLookup.set('VaultClosed', () => new VaultClosedError())
/**
* VaultDeactivated: 'This vault is deactivated'
*
* @category Errors
* @category generated
*/
export class VaultDeactivatedError extends Error {
readonly code: number = 0x4
readonly name: string = 'VaultDeactivated'
constructor() {
super('This vault is deactivated')
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, VaultDeactivatedError)
}
}
}
createErrorFromCodeLookup.set(0x4, () => new VaultDeactivatedError())
createErrorFromNameLookup.set(
'VaultDeactivated',
() => new VaultDeactivatedError()
)
/**
* Attempts to resolve a custom program error from the provided error code.
* @category Errors
* @category generated
*/
export function errorFromCode(code: number): MaybeErrorWithCode {
const createError = createErrorFromCodeLookup.get(code)
return createError != null ? createError() : null
}
/**
* Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'.
* @category Errors
* @category generated
*/
export function errorFromName(name: string): MaybeErrorWithCode {
const createError = createErrorFromNameLookup.get(name)
return createError != null ? createError() : null
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite
|
solana_public_repos/StockpileLabs/stockpile-lite/scripts/update-solana-dependencies.sh
|
#!/usr/bin/env bash
#
# Updates the solana version in all the SPL crates
#
here="$(dirname "$0")"
solana_ver=$1
if [[ -z $solana_ver ]]; then
echo "Usage: $0 <new-solana-version>"
exit 1
fi
if [[ $solana_ver =~ ^v ]]; then
# Drop `v` from v1.2.3...
solana_ver=${solana_ver:1}
fi
cd "$here"/..
echo "Updating Solana version to $solana_ver in $PWD"
if ! git diff --quiet && [[ -z $DIRTY_OK ]]; then
echo "Error: dirty tree"
exit 1
fi
declare tomls=()
while IFS='' read -r line; do tomls+=("$line"); done < <(find . -name Cargo.toml)
crates=(
solana-clap-utils
solana-cli-config
solana-client
solana-logger
solana-program
solana-program-test
solana-remote-wallet
solana-sdk
solana-validator
)
set -x
for crate in "${crates[@]}"; do
sed -i -e "s#\(${crate} = \"\).*\(\"\)#\1=$solana_ver\2#g" "${tomls[@]}"
done
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite
|
solana_public_repos/StockpileLabs/stockpile-lite/src/processor.rs
|
use crate::instructions::*;
use shank::ShankInstruction;
use borsh::{BorshDeserialize, BorshSerialize};
use solana_program::{account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey};
#[derive(BorshSerialize, BorshDeserialize, Debug, ShankInstruction)]
pub enum StockpileLite {
CreatePool(CreatePoolArgs),
CreateVault(CreateVaultArgs),
JoinPool(JoinPoolArgs),
Refresh(RefreshArgs),
ContributeWithVote(ContributeWithVoteArgs),
AcceptParticipant()
}
pub fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
input: &[u8]
) -> ProgramResult {
let instruction = StockpileLite::try_from_slice(input)?;
match instruction {
StockpileLite::CreatePool(data) => create_pool(program_id, accounts, CreatePoolArgs { pool: data.pool }),
StockpileLite::CreateVault(data) => create_vault(program_id, accounts, CreateVaultArgs { vault: data.vault }),
StockpileLite::JoinPool(data) => join_pool(program_id, accounts, JoinPoolArgs { participant: data.participant }),
StockpileLite::Refresh(data) => refresh(program_id, accounts, RefreshArgs { pool: data.pool, participants: data.participants }),
StockpileLite::ContributeWithVote(data) => contribute_with_vote(program_id, accounts, ContributeWithVoteArgs { amount: data.amount, next_bump: data.next_bump }),
StockpileLite::AcceptParticipant() => accept_participant(program_id, accounts)
}
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite
|
solana_public_repos/StockpileLabs/stockpile-lite/src/error.rs
|
use thiserror::Error;
#[derive(Error, Debug)]
pub enum StockpileError {
#[error("I'm too lazy to write errors")]
DefaultError,
#[error("Pool is pending start")]
PendingStart,
#[error("Pool funds have been distributed")]
PoolDistributed,
#[error("This vault is closed")]
VaultClosed,
#[error("This vault is deactivated")]
VaultDeactivated
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite
|
solana_public_repos/StockpileLabs/stockpile-lite/src/lib.rs
|
pub mod instructions;
pub mod processor;
pub mod utils;
pub mod state;
pub mod error;
use {
crate::processor::process_instruction,
solana_program::{entrypoint, declare_id}
};
declare_id!("BNsqbpyoGuh66NJh5tRw6DNqy6y6X9s6LgF6yunDGRKt");
entrypoint!(process_instruction);
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/join_pool_with_token.rs
|
use borsh::{BorshDeserialize, BorshSerialize};
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint::ProgramResult,
pubkey::Pubkey,
program::invoke_signed,
rent::Rent,
system_instruction,
sysvar::Sysvar,
program_error::ProgramError,
program_pack::Pack
};
use spl_token::state::Account;
use crate::{state::{
AcceptanceStatus,
Participant,
Pool,
PoolAccess
}, utils::{
validate_ata,
validate_is_signer,
validate_minimum_balance
}};
#[derive(BorshSerialize, BorshDeserialize, Debug)]
pub struct JoinPoolWithTokenArgs {
pub participant: Participant,
}
/*
** Joins a pool & creates a participant account **
Must be called if pool entry is token gated. Requires ownership of
a specific token, and minimum balance threshold to be met.
*/
pub fn join_pool_with_token(
program_id: &Pubkey,
accounts: &[AccountInfo],
args: JoinPoolWithTokenArgs
) -> ProgramResult {
let mut participant_info = Participant::new(
args.participant.pool_id,
args.participant.vault_id,
args.participant.bump
);
let accounts_iter = &mut accounts.iter();
let participant_account = next_account_info(accounts_iter)?;
let pool_account = next_account_info(accounts_iter)?;
// let token_mint = next_account_info(accounts_iter).unwrap();
let token_account = next_account_info(accounts_iter)?;
let payer = next_account_info(accounts_iter)?;
let system_program = next_account_info(accounts_iter)?;
validate_is_signer(payer)?;
let mut pool = Pool::try_from_slice(&pool_account.try_borrow_mut_data()?)?;
let rent_minimum = (Rent::get()?).minimum_balance(Participant::SPACE);
pool.is_active().unwrap();
match &mut pool.pool_access {
PoolAccess::Open => return Err(ProgramError::BorshIoError("Call join_pool to join.".to_string())),
PoolAccess::Manual => return Err(ProgramError::BorshIoError("Call join_pool to request access".to_string())),
PoolAccess::TokenGated(info) => {
// Unpack token account data
let token_account_info = token_account.data.borrow();
let ata = Account::unpack(&token_account_info)?;
// Validate token account owner & mint
validate_ata(
*payer.key,
info.mint,
ata
)?;
// Validate that the minimum balance is satisfied
validate_minimum_balance(
info,
ata
)?;
// Create participant account
invoke_signed(
&system_instruction::create_account(
payer.key,
participant_account.key,
rent_minimum,
Participant::SPACE as u64,
program_id,
),
&[
payer.clone(),
participant_account.clone(),
system_program.clone(),
],
&[&[
Participant::SEED_PREFIX.as_bytes(),
pool_account.key.as_ref(),
&pool.participant_index.to_le_bytes(),
payer.key.as_ref(),
&[participant_info.bump],
]],
)?;
// Set status to accepted
participant_info.status = AcceptanceStatus::Accepted;
participant_info.serialize(&mut &mut participant_account.data.borrow_mut()[..])?;
pool.participant_index += 1;
pool.serialize(&mut &mut pool_account.data.borrow_mut()[..])?
}
};
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/mod.rs
|
pub mod create_pool;
pub mod create_vault;
pub mod join_pool;
pub mod refresh;
pub mod join_pool_with_token;
pub mod contribute_with_vote;
pub mod accept_participant;
pub use create_pool::*;
pub use create_vault::*;
pub use join_pool::*;
pub use refresh::*;
pub use join_pool_with_token::*;
pub use contribute_with_vote::*;
pub use accept_participant::*;
use borsh::{BorshDeserialize, BorshSerialize};
use shank::ShankInstruction;
#[derive(BorshSerialize, BorshDeserialize, Debug, ShankInstruction)]
pub enum StockpileLite {
#[account(0, writable, name="pool_account", desc="Master account for a QF round")]
#[account(1, writable, signer, name="payer", desc = "Fee payer/Initializer")]
#[account(2, name="system_program", desc = "System Program")]
CreatePool(CreatePoolArgs),
#[account(0, writable, name="vault_account", desc="Master account for a vault. This is a proxy for a beneficiary")]
#[account(1, writable, signer, name="payer", desc = "Fee payer/Initializer")]
#[account(2, name="system_program", desc = "System Program")]
CreateVault(CreateVaultArgs),
#[account(0, writable, name="participant_account", desc="Account denoting a participant, tied to both a pool and a vault")]
#[account(1, writable, name="pool_account", desc="Master account for a QF round")]
#[account(2, writable, signer, name="payer", desc = "Fee payer/Initializer")]
#[account(3, name="system_program", desc = "System Program")]
JoinPool(JoinPoolArgs),
Refresh(RefreshArgs),
#[account(0, writable, name="participant_account", desc="Account denoting a participant, tied to both a pool and a vault")]
#[account(1, writable, name="pool_account", desc="Master account for a QF round")]
#[account(2, writable, name="vote_table_account", desc="Current vote table for the participant")]
#[account(3, name="mint", desc="Mint account for the pool")]
#[account(4, writable, name="target_vault", desc="Master account for the target vault")]
#[account(5, writable, name="vault_authority_token_account", desc="Token account for the vault's authority key")]
#[account(6, writable, signer, name="payer", desc="Fee payer")]
#[account(7, writable, name="payer_token_account", desc="Fee payer's token account")]
#[account(8, name="system_program", desc="System Program")]
#[account(9, name="token_program", desc="Token Program")]
#[account(10, writable, optional, name="next_vote_table_account", desc="Derived key for the next vote table, if the current one is full.")]
#[account(11, signer, optional, name="relayer_key", desc="Relayer key for 'Relayer' sybil strategy, if specified")]
ContributeWithVote(ContributeWithVoteArgs),
#[account(0, writable, name="participant_account", desc="Account denoting a participant that's being accepted")]
#[account(1, writable, name="pool_account", desc="Master account for a QF round")]
#[account(2, writable, name="vote_table_account", desc="Current vote table for the participant")]
#[account(3, writable, signer, name="payer", desc = "Fee payer/Initializer")]
#[account(4, name="system_program", desc = "System Program")]
AcceptParticipant()
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/create_vault.rs
|
use borsh::{BorshSerialize, BorshDeserialize};
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint::ProgramResult,
pubkey::Pubkey,
program::invoke_signed,
rent::Rent,
system_instruction,
sysvar::Sysvar,
};
use crate::{
state::Vault,
utils::validate_is_signer
};
#[derive(BorshSerialize, BorshDeserialize, Debug)]
pub struct CreateVaultArgs {
pub vault: Vault,
}
/*
** Initializes a vault as a proxy account **
Recommended to use a Squads multisig as the main "vault_account" field.
*/
pub fn create_vault(
program_id: &Pubkey,
accounts: &[AccountInfo],
args: CreateVaultArgs,
) -> ProgramResult {
let accounts_iter = &mut accounts.iter();
let vault_account = next_account_info(accounts_iter)?;
let payer = next_account_info(accounts_iter)?;
let system_program = next_account_info(accounts_iter)?;
validate_is_signer(payer)?;
let rent_minimum = (Rent::get()?).minimum_balance(Vault::SPACE);
invoke_signed(
&system_instruction::create_account(
payer.key,
vault_account.key,
rent_minimum,
Vault::SPACE as u64,
program_id,
),
&[
payer.clone(),
vault_account.clone(),
system_program.clone(),
],
&[&[
Vault::SEED_PREFIX.as_bytes(),
payer.key.as_ref(),
&[args.vault.bump],
]],
)?;
args.vault.serialize(&mut &mut vault_account.data.borrow_mut()[..])?;
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/accept_participant.rs
|
use borsh::{BorshSerialize, BorshDeserialize};
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint::ProgramResult,
program::invoke_signed,
pubkey::Pubkey,
program_error::ProgramError,
system_instruction,
rent::Rent,
sysvar::Sysvar
};
use crate::state::{
AcceptanceStatus,
Participant,
Pool,
PoolAccess,
VoteTable
};
/*
** Accepts a participant and creates a vote table for them **
*/
pub fn accept_participant(
program_id: &Pubkey,
accounts: &[AccountInfo],
) -> ProgramResult {
let accounts_iter = &mut accounts.iter();
let participant_account = next_account_info(accounts_iter).unwrap();
let pool_account = next_account_info(accounts_iter)?;
let vote_table_account = next_account_info(accounts_iter)?;
let payer = next_account_info(accounts_iter)?;
let system_program = next_account_info(accounts_iter)?;
assert!(
payer.is_signer,
"Payer must be the signer."
);
let mut pool = Pool::try_from_slice(&pool_account.try_borrow_mut_data()?)?;
let mut participant_info = Participant::try_from_slice(&participant_account.try_borrow_mut_data()?)?;
assert!(
pool.admins.contains(payer.key),
"Payer must be an admin on this pool to accept."
);
let rent_minimum = (Rent::get()?).minimum_balance(VoteTable::SPACE);
pool.is_active().unwrap();
match pool.pool_access {
PoolAccess::Open => return Err(ProgramError::BorshIoError("Pool is open. Call join_pool to participate.".to_string())),
PoolAccess::Manual => {
// Check that participant account is tied to current pool
assert_eq!(
participant_info.pool_id,
*pool_account.key,
"Participant account must be tied to current pool."
);
// Accept participant
participant_info.status = AcceptanceStatus::Accepted;
participant_info.serialize(&mut &mut participant_account.data.borrow_mut()[..])?;
// Derive vote table PDA
let (_table_pda, bump) = Pubkey::find_program_address(
&[
VoteTable::SEED_PREFIX.as_bytes(),
participant_account.key.as_ref(),
&participant_info.table_index.to_le_bytes()
],
program_id
);
// Initialize first vote table
invoke_signed(
&system_instruction::create_account(
payer.key,
vote_table_account.key,
rent_minimum,
VoteTable::SPACE as u64,
program_id,
),
&[
payer.clone(),
vote_table_account.clone(),
system_program.clone(),
],
&[&[
VoteTable::SEED_PREFIX.as_bytes(),
participant_account.key.as_ref(),
&participant_info.table_index.to_le_bytes(),
&[bump],
]],
)?;
// Create new instance of vote table, serialize to new account
let table = VoteTable::new(
*pool_account.key,
*participant_account.key,
participant_info.table_index,
bump
).unwrap();
table.serialize(&mut &mut vote_table_account.data.borrow_mut()[..])?;
},
PoolAccess::TokenGated(_info) => return Err(ProgramError::BorshIoError("Pool is open to holders of a specific token.".to_string()))
};
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/join_pool.rs
|
use borsh::{BorshDeserialize, BorshSerialize};
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint::ProgramResult,
pubkey::Pubkey,
program::invoke_signed,
rent::Rent,
system_instruction,
sysvar::Sysvar,
program_error::ProgramError
};
use solana_program::msg;
use crate::{state::{
AcceptanceStatus,
Participant,
Pool,
PoolAccess
}, utils::validate_is_signer};
#[derive(BorshSerialize, BorshDeserialize, Debug)]
pub struct JoinPoolArgs {
pub participant: Participant,
}
/*
** Joins a pool & creates a participant account **
Handles for "Open" and "Manual" approval options.
*/
pub fn join_pool(
program_id: &Pubkey,
accounts: &[AccountInfo],
args: JoinPoolArgs,
) -> ProgramResult {
let mut participant_info = Participant::new(
args.participant.pool_id,
args.participant.vault_id,
args.participant.bump
);
let accounts_iter = &mut accounts.iter();
let participant_account = next_account_info(accounts_iter)?;
let pool_account = next_account_info(accounts_iter)?;
let payer = next_account_info(accounts_iter)?;
let system_program = next_account_info(accounts_iter)?;
validate_is_signer(payer)?;
let mut pool = Pool::try_from_slice(&pool_account.try_borrow_mut_data()?)?;
let rent_minimum = (Rent::get()?).minimum_balance(Participant::SPACE);
pool.is_active().unwrap();
match pool.pool_access {
PoolAccess::Open => {
// Create participant account
invoke_signed(
&system_instruction::create_account(
payer.key,
participant_account.key,
rent_minimum,
Participant::SPACE as u64,
program_id,
),
&[
payer.clone(),
participant_account.clone(),
system_program.clone(),
],
&[&[
Participant::SEED_PREFIX.as_bytes(),
pool_account.key.as_ref(),
&pool.participant_index.to_le_bytes(),
&[participant_info.bump],
]],
)?;
// Set status to accepted
participant_info.status = AcceptanceStatus::Accepted;
participant_info.serialize(&mut &mut participant_account.data.borrow_mut()[..])?;
// Add participant
pool.participant_index += 1;
pool.serialize(&mut &mut pool_account.data.borrow_mut()[..])?
},
PoolAccess::Manual => {
// Create participant account
invoke_signed(
&system_instruction::create_account(
payer.key,
participant_account.key,
rent_minimum,
Participant::SPACE as u64,
program_id,
),
&[
payer.clone(),
participant_account.clone(),
system_program.clone(),
],
&[&[
Participant::SEED_PREFIX.as_bytes(),
pool_account.key.as_ref(),
&pool.participant_index.to_le_bytes(),
&[participant_info.bump],
]],
)?;
participant_info.serialize(&mut &mut participant_account.data.borrow_mut()[..])?;
// Notify of pending approval. Pool admin will need to call "accept_participant"
msg!("Approval pending to join this pool.");
},
PoolAccess::TokenGated(_info) => return Err(ProgramError::BorshIoError("Pool requires holding a specific token.".to_string()))
};
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/create_pool.rs
|
use borsh::{BorshSerialize, BorshDeserialize};
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint::ProgramResult,
pubkey::Pubkey,
program::invoke_signed,
rent::Rent,
system_instruction,
sysvar::Sysvar,
};
use crate::{
state::Pool,
utils::validate_is_signer
};
#[derive(BorshSerialize, BorshDeserialize, Debug)]
pub struct CreatePoolArgs {
pub pool: Pool,
}
/*
**Initializes a QF pool**
Created with zero balance, so "fund_pool" will need to be called.
*/
pub fn create_pool(
program_id: &Pubkey,
accounts: &[AccountInfo],
args: CreatePoolArgs,
) -> ProgramResult {
let accounts_iter = &mut accounts.iter();
let pool_account = next_account_info(accounts_iter)?;
let payer = next_account_info(accounts_iter)?;
let system_program = next_account_info(accounts_iter)?;
validate_is_signer(payer)?;
let rent_minimum = (Rent::get()?).minimum_balance(Pool::SPACE);
invoke_signed(
&system_instruction::create_account(
payer.key,
pool_account.key,
rent_minimum,
Pool::SPACE as u64,
program_id,
),
&[
payer.clone(),
pool_account.clone(),
system_program.clone(),
],
&[&[
Pool::SEED_PREFIX.as_bytes(),
payer.key.as_ref(),
&[args.pool.bump],
]],
)?;
args.pool.serialize(&mut &mut pool_account.data.borrow_mut()[..])?;
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/refresh.rs
|
use borsh::{BorshDeserialize, BorshSerialize};
use solana_program::{
account_info::AccountInfo,
entrypoint::ProgramResult,
pubkey::Pubkey,
};
use crate::state::{Participant, Pool};
#[derive(BorshSerialize, BorshDeserialize, Debug)]
pub struct RefreshArgs {
pub pool: Pool,
pub participants: Vec<Participant>,
}
/*
** Refreshes vote data for a given pool **
This is only recommended to be used with smaller pools, as compute bounds
will be hit given enough participation in a pool. If conducting a round with
a larger pool, consider deriving the necessary accounts and calculating pool
shares via the client. This will still be verifiable on-chain.
*/
pub fn refresh(
_program_id: &Pubkey,
_accounts: &[AccountInfo],
_args: RefreshArgs
) -> ProgramResult {
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/instructions/contribute_with_vote.rs
|
use borsh::{BorshDeserialize, BorshSerialize};
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint::ProgramResult,
program::{invoke, invoke_signed},
pubkey::Pubkey,
program_pack::Pack,
rent::Rent,
system_instruction,
sysvar::Sysvar,
program_error::ProgramError,
instruction::Instruction,
instruction::AccountMeta,
msg
};
use spl_token::{
state::Account,
instruction::transfer
};
use crate::{state::{
Participant,
Pool,
SybilStrategy,
Vault,
VoteTable,
VoteTicket
}, utils::{
validate_ata,
validate_indicies,
validate_is_signer,
validate_participant
}};
#[derive(BorshSerialize, BorshDeserialize, Debug)]
pub struct ContributeWithVoteArgs {
pub amount: u64,
pub next_bump: Option<u8>
}
/*
** Contributes to a vault and casts a vote **
This code fucking sucks and I'll probably be refactoring later
*/
pub fn contribute_with_vote(
program_id: &Pubkey,
accounts: &[AccountInfo],
args: ContributeWithVoteArgs,
) -> ProgramResult {
let accounts_iter = &mut accounts.iter();
let participant_account = next_account_info(accounts_iter)?;
let pool_account = next_account_info(accounts_iter)?;
let vote_table_account = next_account_info(accounts_iter)?;
let mint = next_account_info(accounts_iter)?;
// This account will not recieve the tokens directly, only its authority
let target_vault = next_account_info(accounts_iter)?;
let vault_authority_token_account = next_account_info(accounts_iter)?;
let payer = next_account_info(accounts_iter)?;
let payer_token_account = next_account_info(accounts_iter)?;
let system_program = next_account_info(accounts_iter)?;
let token_program = next_account_info(accounts_iter)?;
// Technically required even though we may not need it
let next_vote_table_account = next_account_info(accounts_iter)?;
// Optional
let relayer_key = next_account_info(accounts_iter)?;
validate_is_signer(payer)?;
// Create a vote ticket from args
let ticket = VoteTicket::new(
*payer.key,
args.amount,
).unwrap();
// Deserialize accounts
let mut pool = Pool::try_from_slice(&pool_account.try_borrow_mut_data()?)?;
let mut participant = Participant::try_from_slice(&participant_account.try_borrow_mut_data()?)?;
let mut vote_table = VoteTable::try_from_slice(&vote_table_account.try_borrow_mut_data()?)?;
// Deserialize payer ATA
let token_account_info = payer_token_account.data.borrow();
let ata = Account::unpack(&token_account_info)?;
// Validation checks
validate_participant(
&participant,
pool_account.key
)?;
validate_ata(
*payer.key,
pool.mint,
ata
)?;
pool.is_active().unwrap();
// Get rent minimum for a new vote table
let rent_minimum = (Rent::get()?).minimum_balance(VoteTable::SPACE);
// Check if full, respond accordingly
match vote_table.clone().is_full().unwrap() {
true => {
// Increment index
participant.table_index += 1;
// Unwrap bump passed in from client, default to 255 if none
let new_acc_bump = args.next_bump.unwrap_or(255);
// Initialize new vote table account
invoke_signed(
&system_instruction::create_account(
payer.key,
next_vote_table_account.key,
rent_minimum,
VoteTable::SPACE as u64,
program_id,
),
&[
payer.clone(),
next_vote_table_account.clone(),
system_program.clone(),
],
&[&[
VoteTable::SEED_PREFIX.as_bytes(),
participant_account.key.as_ref(),
&participant.table_index.to_le_bytes(),
&[new_acc_bump],
]],
)?;
// Create new instance of vote table
let new_table = VoteTable::new_with_voter(
*pool_account.key,
*participant_account.key,
ticket,
participant.table_index,
new_acc_bump
).unwrap();
new_table.serialize(&mut &mut next_vote_table_account.data.borrow_mut()[..])?;
}
false => {
// Validate table account uses the correct index
validate_indicies(
participant.table_index,
vote_table.index
)?;
// Add entry to table
vote_table.add_entry(ticket).unwrap();
}
}
vote_table.serialize(&mut &mut vote_table_account.data.borrow_mut()[..])?;
match pool.sybil_strategy {
SybilStrategy::None => msg!("No sybil strategy, skipping checks..."),
SybilStrategy::Relayer(signers) => {
if relayer_key.is_signer && signers.contains(relayer_key.key) {
// Mr. Gorbachev, tear down this wall.
} else {
return Err(ProgramError::BorshIoError("Relayer must sign if strategy is set to `relayer`".to_string()))
}
},
SybilStrategy::Custom(strategy) => {
// 11 accounts needed in base case if it hits this leg
let remaining_accounts = &accounts[11..];
let mut account_metas: Vec<AccountMeta> = remaining_accounts
.iter()
.map(|acc| AccountMeta::new(*acc.key, false))
.collect();
account_metas.extend([
AccountMeta::new(*payer.key, true),
AccountMeta::new(*system_program.key, false)
]);
// Deserialize instruction
let ix = Instruction::new_with_bytes(
strategy.program_id,
&strategy.data,
account_metas
);
// Invoke the instruction
invoke(
&ix,
// Concat the current payer and their token account
remaining_accounts
)?;
}
}
// Deserialize recipient ATA
let target_token_account_info = vault_authority_token_account.data.borrow();
let target_ata = Account::unpack(&target_token_account_info)?;
// Deserialize vault account
let target_vault_inner = Vault::try_from_slice(&target_vault.try_borrow_mut_data()?)?;
// Validate the ATA is owned by the address the vault is a proxy
// for, not the vault itself
validate_ata(
target_vault_inner.authority,
*mint.key,
target_ata
)?;
// Transfer corresponding tokens
invoke(
&transfer(
token_program.key,
payer_token_account.key,
vault_authority_token_account.key,
payer.key,
&[payer.key],
args.amount,
)?,
&[
mint.clone(),
payer_token_account.clone(),
vault_authority_token_account.clone(),
payer.clone(),
//recipient.clone(),
token_program.clone(),
],
)?;
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/mod.rs
|
pub mod validation;
pub mod math;
pub use validation::*;
pub use math::*;
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/math/calc_pool_result.rs
|
use std::collections::BTreeMap;
use solana_program::{
program_error::ProgramError,
pubkey::Pubkey
};
// Calculates proportions given all
pub fn calc_pool_result(
vault_key: Pubkey,
votes: BTreeMap<Pubkey, f64>,
s_sq_all: f64,
) -> Result<f64, ProgramError> {
let final_proportion = match votes.get(&vault_key) {
Some(vote_count) => vote_count / s_sq_all,
None => return Err(ProgramError::BorshIoError("Key was not found in vote data.".to_string()))
};
Ok(final_proportion)
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/math/mod.rs
|
// TODO: Benchmark compute usage
pub mod calc_sum_sqrt;
pub mod calc_pool_result;
pub mod calc_participant_result;
pub use calc_sum_sqrt::*;
pub use calc_pool_result::*;
pub use calc_participant_result::*;
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/math/calc_participant_result.rs
|
use solana_program::program_error::ProgramError;
// Calculates the final square, given chunks from each vote_table
pub fn calc_participant_result(
chunks: Vec<f64>
) -> Result<f64, ProgramError> {
let sum: f64 = chunks.iter().sum();
Ok(sum.powi(2))
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/math/calc_sum_sqrt.rs
|
use solana_program::program_error::ProgramError;
use crate::state::VoteTable;
// Calculates the sum of square roots for a single vote table account
pub fn calc_sum_sqrt(
vote_table: VoteTable
) -> Result<f64, ProgramError> {
let sum_of_square_roots: f64 = vote_table.table.values()
.map(|vote| (vote.amount as f64).sqrt())
.sum();
Ok(sum_of_square_roots)
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/validation/validate_indicies.rs
|
use solana_program::program_error::ProgramError;
// Validates two provided indicies match
pub fn validate_indicies(
index_one: u8,
index_two: u8,
) -> Result<(), ProgramError> {
assert_eq!(
index_one,
index_two,
"Provided indicies are mismatched"
);
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/validation/mod.rs
|
pub mod validate_ata;
pub mod validate_minimum_balance;
pub mod validate_is_signer;
pub mod validate_indicies;
pub mod validate_participant;
pub use validate_ata::*;
pub use validate_minimum_balance::*;
pub use validate_is_signer::*;
pub use validate_indicies::*;
pub use validate_participant::*;
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/validation/validate_ata.rs
|
use solana_program::{
pubkey::Pubkey,
program_error::ProgramError
};
use spl_token::state::Account;
// Validates a token account's owner and mint are as expected
pub fn validate_ata(
expected_owner: Pubkey,
expected_mint: Pubkey,
ata: Account
) -> Result<(), ProgramError> {
assert_eq!(
ata.owner,
expected_owner,
"Token Account must be owned by the expected account"
);
assert_eq!(
ata.mint,
expected_mint,
"Token account mint must match expected mint"
);
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/validation/validate_participant.rs
|
use solana_program::{
program_error::ProgramError,
pubkey::Pubkey
};
use crate::state::{AcceptanceStatus, Participant};
// Validates a participant is bound to a pool & accepted
pub fn validate_participant(
participant: &Participant,
pool_account: &Pubkey
) -> Result<(), ProgramError> {
assert_eq!(
participant.pool_id,
*pool_account,
"Participant must bound to current pool."
);
assert_eq!(
participant.status,
AcceptanceStatus::Accepted,
"Participant must have a valid acceptance."
);
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/validation/validate_minimum_balance.rs
|
use solana_program::program_error::ProgramError;
use spl_token::state::Account;
use crate::state::TokenGateInfo;
// Validates a token account holds minimum pool balance
pub fn validate_minimum_balance(
info: &mut TokenGateInfo,
ata: Account
) -> Result<(), ProgramError> {
assert!(
ata.amount >= info.minimum_balance,
"Must be holding minimum balance required by pool entry."
);
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils
|
solana_public_repos/StockpileLabs/stockpile-lite/src/utils/validation/validate_is_signer.rs
|
use solana_program::{
account_info::AccountInfo,
program_error::ProgramError
};
// Validates an account is a signer
pub fn validate_is_signer(
account: &AccountInfo
) -> Result<(), ProgramError> {
assert!(
account.is_signer,
"Selected account must be a signer."
);
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/state/vote_table.rs
|
use std::collections::BTreeMap;
use borsh::{BorshDeserialize, BorshSerialize};
use shank::ShankAccount;
use solana_program::{sysvar::Sysvar, clock::Clock};
use solana_program::pubkey::Pubkey;
use crate::error::StockpileError;
#[derive(BorshDeserialize, BorshSerialize, Debug, Clone, ShankAccount)]
pub struct VoteTable {
pub pool: Pubkey,
pub participant: Pubkey,
pub table: BTreeMap<u8, VoteTicket>,
pub index: u8,
pub bump: u8,
}
impl VoteTable {
pub const SEED_PREFIX: &'static str = "vote";
pub const MAX_TABLE_SIZE: usize = 128;
pub const SPACE: usize = 32 // Pubkey
+ 32 // Pubkey
+ 1 // u8
+ 1 // u8
+ ((32 + 8 + 8 + 1) * 128); // BTreeMap (max 255 entries)
pub fn new(
pool: Pubkey,
participant: Pubkey,
table_index: u8,
bump: u8
) -> Result<Self, StockpileError> {
Ok(Self {
pool,
participant,
table: BTreeMap::new(),
index: table_index,
bump
})
}
pub fn new_with_voter(
pool: Pubkey,
participant: Pubkey,
vote: VoteTicket,
table_index: u8,
bump: u8,
) -> Result<Self, StockpileError> {
let mut map = BTreeMap::new();
map.insert(0, vote);
Ok(Self {
pool,
participant,
table: map,
index: table_index,
bump
})
}
pub fn is_full(self) -> Result<bool, StockpileError> {
if self.table.len() == Self::MAX_TABLE_SIZE {
Ok(true)
} else {
Ok(false)
}
}
pub fn add_entry(&mut self, entry: VoteTicket) -> Result<(), StockpileError> {
let length = self.table.len() as u8;
let mut found_key = None;
for (key, value) in &mut self.table {
if value.voter == entry.voter {
found_key = Some(*key);
break;
}
}
match found_key {
Some(key) => {
if let Some(vt) = self.table.get_mut(&key) {
vt.amount += entry.amount;
}
Ok(())
},
None => {
self.table.insert(length + 1, entry);
Ok(())
}
}
}
}
#[derive(BorshSerialize, BorshDeserialize, Debug, Clone, PartialEq, Default)]
pub enum VoteStatus {
#[default]
Valid,
Invalid
}
#[derive(BorshDeserialize, BorshSerialize, Debug, Clone)]
pub struct VoteTicket {
pub voter: Pubkey,
pub amount: u64,
pub timestamp: u64,
pub vote_status: VoteStatus,
}
impl VoteTicket {
pub fn new(
voter: Pubkey,
amount: u64,
) -> Result<Self, StockpileError> {
let current = Clock::get().unwrap();
let time = current.unix_timestamp as u64;
Ok(Self {
voter,
amount,
timestamp: time,
vote_status: VoteStatus::Valid
})
}
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/state/mod.rs
|
pub mod pool;
pub mod vault;
pub mod participant;
pub mod vote_table;
pub mod pool_result;
pub use pool::*;
pub use vault::*;
pub use participant::*;
pub use vote_table::*;
pub use pool_result::*;
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/state/pool_result.rs
|
use std::collections::BTreeMap;
use borsh::{BorshDeserialize, BorshSerialize};
use shank::ShankAccount;
use solana_program::{
program_error::ProgramError,
pubkey::Pubkey
};
/// Stores pool result data. This account will continuously be written to in the process
/// of calculation results, which will likely happen over the course of multiple transactions.
/// These will not be happening atomically, so proper state handling is important.
#[derive(BorshDeserialize, BorshSerialize, Debug, Clone, ShankAccount)]
pub struct PoolResult {
pub pool_id: Pubkey, /// Pool in question
pub s_sq_all: f64, /// Total Sum of Square Roots
pub sq_sums: BTreeMap<Pubkey, f64>, /// Sum of Square Roots per participant
pub final_proportions: Option<BTreeMap<Pubkey, f64>>, /// Final calculated proportions
pub progress: ResultState, /// State of the result calculation process
pub bump: u8,
}
impl PoolResult {
pub const SEED_PREFIX: &'static str = "result";
pub fn new(
pool_id: Pubkey,
s_sq_all: f64,
bump: u8,
) -> Result<Self, ProgramError> {
Ok(Self {
pool_id,
s_sq_all,
sq_sums: BTreeMap::new(),
final_proportions: Some(BTreeMap::new()),
progress: ResultState::NotStarted,
bump
})
}
pub fn get_space(
participant_length: usize
) -> usize {
let size: usize = 32 // Name
+ 8 // f64
+ 8 // u64
+ ((32 * 8) * participant_length) // BTreeMap<Pubkey, f64>: Max 255
+ ((32 * 8) * participant_length) // Option<BTreeMap<Pubkey, f64>>: Max 255
+ 4 // Enum (Singleton)
+ 1 // u8
+ 128; // Padding
size
}
}
#[derive(BorshDeserialize, BorshSerialize, Clone, PartialEq, Debug, Default)]
pub enum ResultState {
#[default]
NotStarted, // Calculations have not begun yet
Pending, // Calculations are in progress, but not all participants & tables have been accounted
Confirmed, // Participant calculations are confirmed, final proportions are pending
Completed // All calculations completed
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/state/pool.rs
|
use borsh::{BorshDeserialize, BorshSerialize};
use shank::ShankAccount;
use solana_program::{sysvar::Sysvar, clock::Clock};
use solana_program::pubkey::Pubkey;
use crate::error::StockpileError;
#[derive(BorshDeserialize, BorshSerialize, Debug, Clone, ShankAccount)]
pub struct Pool {
pub name: String,
pub start: u64,
pub end: u64,
pub mint: Pubkey,
pub admins: Vec<Pubkey>,
pub pool_state: PoolState,
pub pool_access: PoolAccess,
pub sybil_strategy: SybilStrategy,
pub participant_index: u8,
pub bump: u8,
}
impl Pool {
pub const SEED_PREFIX: &'static str = "pool";
pub const MAX_NAME_LEN: usize = 64;
pub const MAX_ADMINS: usize = 5;
pub const MAX_PARTICIPANTS: usize = 255;
pub const SPACE: usize = Self::MAX_NAME_LEN // Name
+ 8 // u64
+ 8 // u64
+ (32 * Self::MAX_ADMINS) // Vec<Pubkey>: Max 5
+ 1 // Enum (Singleton)
+ 4 // Enum
+ 1 // Enum
+ 1 // u8
+ 1 // u8
+ 256; // Padding (Custom Sybil Impl)
pub fn new(
name: String,
start: u64,
end: u64,
mint: Pubkey,
admins: Vec<Pubkey>,
access: PoolAccess,
sybil: SybilStrategy,
bump: u8
) -> Result<Self, StockpileError> {
if name.as_bytes().len() > Self::MAX_NAME_LEN {
return Err(StockpileError::DefaultError);
}
let current = Clock::get().unwrap();
let timestamp = current.unix_timestamp as u64;
if timestamp > start {
return Err(StockpileError::DefaultError);
}
Ok(Self {
name,
start,
end,
mint,
admins,
pool_state: PoolState::PendingStart,
pool_access: access,
sybil_strategy: sybil,
participant_index: 0,
bump,
})
}
pub fn is_active(&mut self) -> Result<(), StockpileError> {
let current = Clock::get().unwrap();
let timestamp = current.unix_timestamp as u64;
if timestamp > self.end {
return Err(StockpileError::DefaultError);
}
if timestamp > self.start {
self.pool_state = PoolState::Active;
}
match self.pool_state {
PoolState::PendingStart => Err(StockpileError::DefaultError),
PoolState::Active => Ok(()),
PoolState::Distributed => Err(StockpileError::DefaultError),
}
}
}
#[derive(BorshDeserialize, BorshSerialize, Clone, Debug, Default)]
pub enum PoolState {
#[default]
PendingStart,
Active,
Distributed,
}
#[derive(BorshDeserialize, BorshSerialize, Clone, PartialEq, Debug, Default)]
pub enum PoolAccess {
Open,
#[default]
Manual,
TokenGated(TokenGateInfo),
}
#[derive(BorshDeserialize, BorshSerialize, Clone, PartialEq, Debug)]
pub struct TokenGateInfo {
pub mint: Pubkey,
pub minimum_balance: u64
}
// SYBIL STRATEGIES
// 1. None - Performs zero checks on a contributor, this is the default option
// 2. Civic - Runs a Civic Gateway check on the user & requires them to have a pass
// 3. Relayer - Requires signing by specified keys (usually via an API endpoint)
// 4. Custom - Add a serialized ix, and perform the check via your own on-chain program.
#[derive(BorshDeserialize, BorshSerialize, Clone, Debug, Default)]
pub enum SybilStrategy {
#[default]
None,
Relayer(Vec<Pubkey>),
Custom(CustomStrategy)
}
#[derive(BorshDeserialize, BorshSerialize, Clone, Debug)]
pub struct CustomStrategy {
pub program_id: Pubkey,
pub accounts: Vec<Pubkey>,
pub data: Vec<u8>
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/state/vault.rs
|
use borsh::{BorshDeserialize, BorshSerialize};
use shank::ShankAccount;
use solana_program::pubkey::Pubkey;
use crate::error::StockpileError;
#[derive(BorshDeserialize, BorshSerialize, Debug, ShankAccount)]
pub struct Vault {
pub name: String,
pub namespace: String,
pub authority: Pubkey,
pub vault_state: VaultState,
pub bump: u8,
}
impl Vault {
pub const SEED_PREFIX: &'static str = "vault";
pub const MAX_NAME_LEN: usize = 64;
pub const SPACE: usize = 64 // Name
+ 8 // u64
+ 4 // Enum (Singleton)
+ 1 // u8
+ 64; // Padding
pub fn new(
name: String,
namespace: String,
authority: Pubkey,
bump: u8
) -> Result<Self, StockpileError> {
if name.as_bytes().len() > Self::MAX_NAME_LEN {
return Err(StockpileError::DefaultError);
}
Ok(Self {
name,
namespace,
authority,
vault_state: VaultState::Active,
bump,
})
}
pub fn is_active(&mut self) -> Result<(), StockpileError> {
match self.vault_state {
VaultState::Closed => Err(StockpileError::DefaultError),
VaultState::Active => Ok(()),
VaultState::Deactivated => Err(StockpileError::DefaultError),
}
}
}
#[derive(BorshDeserialize, BorshSerialize, Clone, Debug, Default)]
pub enum VaultState {
#[default]
Active,
Deactivated,
Closed,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-lite/src
|
solana_public_repos/StockpileLabs/stockpile-lite/src/state/participant.rs
|
use borsh::{BorshDeserialize, BorshSerialize};
use shank::ShankAccount;
use solana_program::{sysvar::Sysvar, clock::Clock};
use solana_program::pubkey::Pubkey;
#[derive(BorshDeserialize, BorshSerialize, Debug, Default, ShankAccount)]
pub struct Participant {
pub pool_id: Pubkey,
pub vault_id: Pubkey,
pub timestamp: u64,
pub table_index: u8,
pub status: AcceptanceStatus,
pub bump: u8
}
impl Participant {
pub const SEED_PREFIX: &'static str = "participant";
pub const SPACE: usize = 64 // Name
+ 8 // u64
+ 8 // u64
+ 32 // Vec<Pubkey>: Max 5
+ 32 // Vec<Pubkey>
+ 8 // u64
+ 4 // u32
+ 4; // u32
pub fn new(pool_id: Pubkey, vault_id: Pubkey, bump: u8) -> Self {
// TODO: add validations if needed (should probably check pool acct infos)
let current = Clock::get().unwrap();
let time = current.unix_timestamp as u64;
Self {
pool_id,
vault_id,
timestamp: time,
table_index: 0,
status: AcceptanceStatus::Pending,
bump
}
}
}
#[derive(BorshDeserialize, BorshSerialize, Clone, PartialEq, Debug, Default)]
pub enum AcceptanceStatus {
Accepted,
#[default]
Pending,
Denied,
}
| 0
|
solana_public_repos/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/Cargo.toml
|
[workspace]
members = [
"programs/*"
]
[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/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/LICENSE
|
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
| 0
|
solana_public_repos/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/Cargo.lock
|
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "aead"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877"
dependencies = [
"generic-array",
]
[[package]]
name = "aes"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8"
dependencies = [
"cfg-if",
"cipher",
"cpufeatures",
"opaque-debug",
]
[[package]]
name = "aes-gcm-siv"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589c637f0e68c877bbd59a4599bbe849cac8e5f3e4b5a3ebae8f528cd218dcdc"
dependencies = [
"aead",
"aes",
"cipher",
"ctr",
"polyval",
"subtle",
"zeroize",
]
[[package]]
name = "ahash"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
dependencies = [
"getrandom 0.2.10",
"once_cell",
"version_check",
]
[[package]]
name = "ahash"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a"
dependencies = [
"cfg-if",
"getrandom 0.2.10",
"once_cell",
"version_check",
"zerocopy",
]
[[package]]
name = "aho-corasick"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41"
dependencies = [
"memchr",
]
[[package]]
name = "anchor-attribute-access-control"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "faa5be5b72abea167f87c868379ba3c2be356bfca9e6f474fd055fa0f7eeb4f2"
dependencies = [
"anchor-syn 0.28.0",
"anyhow",
"proc-macro2",
"quote",
"regex",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-account"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f468970344c7c9f9d03b4da854fd7c54f21305059f53789d0045c1dd803f0018"
dependencies = [
"anchor-syn 0.28.0",
"anyhow",
"bs58 0.5.0",
"proc-macro2",
"quote",
"rustversion",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-constant"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59948e7f9ef8144c2aefb3f32a40c5fce2798baeec765ba038389e82301017ef"
dependencies = [
"anchor-syn 0.28.0",
"proc-macro2",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-error"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc753c9d1c7981cb8948cf7e162fb0f64558999c0413058e2d43df1df5448086"
dependencies = [
"anchor-syn 0.28.0",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-event"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f38b4e172ba1b52078f53fdc9f11e3dc0668ad27997838a0aad2d148afac8c97"
dependencies = [
"anchor-syn 0.28.0",
"anyhow",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "anchor-attribute-program"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4eebd21543606ab61e2d83d9da37d24d3886a49f390f9c43a1964735e8c0f0d5"
dependencies = [
"anchor-syn 0.28.0",
"anyhow",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "anchor-derive-accounts"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec4720d899b3686396cced9508f23dab420f1308344456ec78ef76f98fda42af"
dependencies = [
"anchor-syn 0.28.0",
"anyhow",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "anchor-derive-space"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f495e85480bd96ddeb77b71d499247c7d4e8b501e75ecb234e9ef7ae7bd6552a"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "anchor-gen"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a3b9def91d1f0c23b99be210afea0990f931a1edae439ea30e0da50baeaea8f"
dependencies = [
"anchor-generate-cpi-crate",
"anchor-generate-cpi-interface",
]
[[package]]
name = "anchor-generate-cpi-crate"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03e8733d55b8492bde0d6f219c25769786758ff9e5e90a16e6a348f91284af50"
dependencies = [
"anchor-idl",
"syn 1.0.109",
]
[[package]]
name = "anchor-generate-cpi-interface"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7092a50cf959ebf53460162cb07e88d4cc8ea7fa8c45292e80503a3186033daf"
dependencies = [
"anchor-idl",
"darling 0.14.4",
"syn 1.0.109",
]
[[package]]
name = "anchor-idl"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3de2665dc06ee0bd3c7d08f47f136a3d5b1e34b7ac1bc632c86a812add04d68b"
dependencies = [
"anchor-syn 0.24.2",
"darling 0.14.4",
"heck 0.4.1",
"proc-macro2",
"quote",
"serde_json",
"syn 1.0.109",
]
[[package]]
name = "anchor-lang"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d2d4b20100f1310a774aba3471ef268e5c4ba4d5c28c0bbe663c2658acbc414"
dependencies = [
"anchor-attribute-access-control",
"anchor-attribute-account",
"anchor-attribute-constant",
"anchor-attribute-error",
"anchor-attribute-event",
"anchor-attribute-program",
"anchor-derive-accounts",
"anchor-derive-space",
"arrayref",
"base64 0.13.1",
"bincode",
"borsh 0.10.3",
"bytemuck",
"getrandom 0.2.10",
"solana-program",
"thiserror",
]
[[package]]
name = "anchor-spl"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78f860599da1c2354e7234c768783049eb42e2f54509ecfc942d2e0076a2da7b"
dependencies = [
"anchor-lang",
"solana-program",
"spl-associated-token-account",
"spl-token",
"spl-token-2022",
]
[[package]]
name = "anchor-syn"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03549dc2eae0b20beba6333b14520e511822a6321cdb1760f841064a69347316"
dependencies = [
"anyhow",
"bs58 0.3.1",
"heck 0.3.3",
"proc-macro2",
"proc-macro2-diagnostics",
"quote",
"serde",
"serde_json",
"sha2 0.9.9",
"syn 1.0.109",
"thiserror",
]
[[package]]
name = "anchor-syn"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a125e4b0cc046cfec58f5aa25038e34cf440151d58f0db3afc55308251fe936d"
dependencies = [
"anyhow",
"bs58 0.5.0",
"heck 0.3.3",
"proc-macro2",
"quote",
"serde",
"serde_json",
"sha2 0.10.7",
"syn 1.0.109",
"thiserror",
]
[[package]]
name = "android-tzdata"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "anyhow"
version = "1.0.71"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8"
[[package]]
name = "ark-bn254"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f"
dependencies = [
"ark-ec",
"ark-ff",
"ark-std",
]
[[package]]
name = "ark-ec"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba"
dependencies = [
"ark-ff",
"ark-poly",
"ark-serialize",
"ark-std",
"derivative",
"hashbrown 0.13.2",
"itertools",
"num-traits",
"zeroize",
]
[[package]]
name = "ark-ff"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba"
dependencies = [
"ark-ff-asm",
"ark-ff-macros",
"ark-serialize",
"ark-std",
"derivative",
"digest 0.10.7",
"itertools",
"num-bigint",
"num-traits",
"paste",
"rustc_version",
"zeroize",
]
[[package]]
name = "ark-ff-asm"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348"
dependencies = [
"quote",
"syn 1.0.109",
]
[[package]]
name = "ark-ff-macros"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565"
dependencies = [
"num-bigint",
"num-traits",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "ark-poly"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf"
dependencies = [
"ark-ff",
"ark-serialize",
"ark-std",
"derivative",
"hashbrown 0.13.2",
]
[[package]]
name = "ark-serialize"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5"
dependencies = [
"ark-serialize-derive",
"ark-std",
"digest 0.10.7",
"num-bigint",
]
[[package]]
name = "ark-serialize-derive"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "ark-std"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185"
dependencies = [
"num-traits",
"rand 0.8.5",
]
[[package]]
name = "array-bytes"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ad284aeb45c13f2fb4f084de4a420ebf447423bdf9386c0540ce33cb3ef4b8c"
[[package]]
name = "arrayref"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545"
[[package]]
name = "arrayvec"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
[[package]]
name = "assert_matches"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9"
[[package]]
name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
dependencies = [
"hermit-abi 0.1.19",
"libc",
"winapi",
]
[[package]]
name = "autocfg"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "base64"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff"
[[package]]
name = "base64"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
[[package]]
name = "base64"
version = "0.21.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9"
[[package]]
name = "bincode"
version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
dependencies = [
"serde",
]
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitmaps"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2"
dependencies = [
"typenum",
]
[[package]]
name = "blake3"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0231f06152bf547e9c2b5194f247cd97aacf6dcd8b15d8e5ec0663f64580da87"
dependencies = [
"arrayref",
"arrayvec",
"cc",
"cfg-if",
"constant_time_eq",
"digest 0.10.7",
]
[[package]]
name = "block-buffer"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
dependencies = [
"block-padding",
"generic-array",
]
[[package]]
name = "block-buffer"
version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
dependencies = [
"generic-array",
]
[[package]]
name = "block-padding"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae"
[[package]]
name = "borsh"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15bf3650200d8bffa99015595e10f1fbd17de07abbc25bb067da79e769939bfa"
dependencies = [
"borsh-derive 0.9.3",
"hashbrown 0.11.2",
]
[[package]]
name = "borsh"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b"
dependencies = [
"borsh-derive 0.10.3",
"hashbrown 0.13.2",
]
[[package]]
name = "borsh-derive"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775"
dependencies = [
"borsh-derive-internal 0.9.3",
"borsh-schema-derive-internal 0.9.3",
"proc-macro-crate 0.1.5",
"proc-macro2",
"syn 1.0.109",
]
[[package]]
name = "borsh-derive"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0754613691538d51f329cce9af41d7b7ca150bc973056f1156611489475f54f7"
dependencies = [
"borsh-derive-internal 0.10.3",
"borsh-schema-derive-internal 0.10.3",
"proc-macro-crate 0.1.5",
"proc-macro2",
"syn 1.0.109",
]
[[package]]
name = "borsh-derive-internal"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5449c28a7b352f2d1e592a8a28bf139bc71afb0764a14f3c02500935d8c44065"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "borsh-derive-internal"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "afb438156919598d2c7bad7e1c0adf3d26ed3840dbc010db1a882a65583ca2fb"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "borsh-schema-derive-internal"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdbd5696d8bfa21d53d9fe39a714a18538bad11492a42d066dbbc395fb1951c0"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "borsh-schema-derive-internal"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "634205cc43f74a1b9046ef87c4540ebda95696ec0f315024860cad7c5b0f5ccd"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "bs58"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "476e9cd489f9e121e02ffa6014a8ef220ecb15c05ed23fc34cca13925dc283fb"
[[package]]
name = "bs58"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3"
[[package]]
name = "bs58"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f5353f36341f7451062466f0b755b96ac3a9547e4d7f6b70d603fc721a7d7896"
dependencies = [
"tinyvec",
]
[[package]]
name = "bumpalo"
version = "3.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1"
[[package]]
name = "bv"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340"
dependencies = [
"feature-probe",
"serde",
]
[[package]]
name = "bytemuck"
version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdde5c9cd29ebd706ce1b35600920a33550e402fc998a2e53ad3b42c3c47a192"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.39",
]
[[package]]
name = "byteorder"
version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "cc"
version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"
dependencies = [
"jobserver",
]
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5"
dependencies = [
"android-tzdata",
"num-traits",
]
[[package]]
name = "cipher"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7"
dependencies = [
"generic-array",
]
[[package]]
name = "console_error_panic_hook"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc"
dependencies = [
"cfg-if",
"wasm-bindgen",
]
[[package]]
name = "console_log"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f"
dependencies = [
"log",
"web-sys",
]
[[package]]
name = "constant_time_eq"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2"
[[package]]
name = "cpufeatures"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03e69e28e9f7f77debdedbaafa2866e1de9ba56df55a8bd7cfc724c25a09987c"
dependencies = [
"libc",
]
[[package]]
name = "crossbeam-channel"
version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200"
dependencies = [
"cfg-if",
"crossbeam-utils",
]
[[package]]
name = "crossbeam-deque"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
dependencies = [
"cfg-if",
"crossbeam-epoch",
"crossbeam-utils",
]
[[package]]
name = "crossbeam-epoch"
version = "0.9.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
dependencies = [
"autocfg",
"cfg-if",
"crossbeam-utils",
"memoffset",
"scopeguard",
]
[[package]]
name = "crossbeam-utils"
version = "0.8.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
dependencies = [
"cfg-if",
]
[[package]]
name = "crunchy"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
[[package]]
name = "crypto-common"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
dependencies = [
"generic-array",
"typenum",
]
[[package]]
name = "crypto-mac"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab"
dependencies = [
"generic-array",
"subtle",
]
[[package]]
name = "ctr"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea"
dependencies = [
"cipher",
]
[[package]]
name = "curve25519-dalek"
version = "3.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0"
dependencies = [
"byteorder",
"digest 0.9.0",
"rand_core 0.5.1",
"serde",
"subtle",
"zeroize",
]
[[package]]
name = "darling"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850"
dependencies = [
"darling_core 0.14.4",
"darling_macro 0.14.4",
]
[[package]]
name = "darling"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0209d94da627ab5605dcccf08bb18afa5009cfbef48d8a8b7d7bdbc79be25c5e"
dependencies = [
"darling_core 0.20.3",
"darling_macro 0.20.3",
]
[[package]]
name = "darling_core"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim",
"syn 1.0.109",
]
[[package]]
name = "darling_core"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "177e3443818124b357d8e76f53be906d60937f0d3a90773a664fa63fa253e621"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim",
"syn 2.0.39",
]
[[package]]
name = "darling_macro"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e"
dependencies = [
"darling_core 0.14.4",
"quote",
"syn 1.0.109",
]
[[package]]
name = "darling_macro"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5"
dependencies = [
"darling_core 0.20.3",
"quote",
"syn 2.0.39",
]
[[package]]
name = "derivation-path"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0"
[[package]]
name = "derivative"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "digest"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
dependencies = [
"generic-array",
]
[[package]]
name = "digest"
version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer 0.10.4",
"crypto-common",
"subtle",
]
[[package]]
name = "dyn-clone"
version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30"
[[package]]
name = "ed25519"
version = "1.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7"
dependencies = [
"signature",
]
[[package]]
name = "ed25519-dalek"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d"
dependencies = [
"curve25519-dalek",
"ed25519",
"rand 0.7.3",
"serde",
"sha2 0.9.9",
"zeroize",
]
[[package]]
name = "ed25519-dalek-bip32"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908"
dependencies = [
"derivation-path",
"ed25519-dalek",
"hmac 0.12.1",
"sha2 0.10.7",
]
[[package]]
name = "either"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
[[package]]
name = "env_logger"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7"
dependencies = [
"atty",
"humantime",
"log",
"regex",
"termcolor",
]
[[package]]
name = "feature-probe"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da"
[[package]]
name = "fnv"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "generic-array"
version = "0.14.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
dependencies = [
"serde",
"typenum",
"version_check",
]
[[package]]
name = "getrandom"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
dependencies = [
"cfg-if",
"js-sys",
"libc",
"wasi 0.9.0+wasi-snapshot-preview1",
"wasm-bindgen",
]
[[package]]
name = "getrandom"
version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
dependencies = [
"cfg-if",
"js-sys",
"libc",
"wasi 0.11.0+wasi-snapshot-preview1",
"wasm-bindgen",
]
[[package]]
name = "hashbrown"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
dependencies = [
"ahash 0.7.6",
]
[[package]]
name = "hashbrown"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
[[package]]
name = "hashbrown"
version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
dependencies = [
"ahash 0.8.6",
]
[[package]]
name = "heck"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
dependencies = [
"unicode-segmentation",
]
[[package]]
name = "heck"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]]
name = "hermit-abi"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
[[package]]
name = "hermit-abi"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7"
dependencies = [
"libc",
]
[[package]]
name = "hex"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
dependencies = [
"serde",
]
[[package]]
name = "hmac"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840"
dependencies = [
"crypto-mac",
"digest 0.9.0",
]
[[package]]
name = "hmac"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
dependencies = [
"digest 0.10.7",
]
[[package]]
name = "hmac-drbg"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1"
dependencies = [
"digest 0.9.0",
"generic-array",
"hmac 0.8.1",
]
[[package]]
name = "humantime"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "ident_case"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "im"
version = "15.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9"
dependencies = [
"bitmaps",
"rand_core 0.6.4",
"rand_xoshiro",
"rayon",
"serde",
"sized-chunks",
"typenum",
"version_check",
]
[[package]]
name = "indexmap"
version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
dependencies = [
"autocfg",
"hashbrown 0.12.3",
]
[[package]]
name = "itertools"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6"
[[package]]
name = "jobserver"
version = "0.1.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2"
dependencies = [
"libc",
]
[[package]]
name = "js-sys"
version = "0.3.64"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "keccak"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940"
dependencies = [
"cpufeatures",
]
[[package]]
name = "klend"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbcd2e9d9ca85813cc23a7a29c2417351a426636e48e7e4082d2e8724292de56"
dependencies = [
"anchor-gen",
"anchor-lang",
]
[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "libc"
version = "0.2.146"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b"
[[package]]
name = "libsecp256k1"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73"
dependencies = [
"arrayref",
"base64 0.12.3",
"digest 0.9.0",
"hmac-drbg",
"libsecp256k1-core",
"libsecp256k1-gen-ecmult",
"libsecp256k1-gen-genmult",
"rand 0.7.3",
"serde",
"sha2 0.9.9",
"typenum",
]
[[package]]
name = "libsecp256k1-core"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80"
dependencies = [
"crunchy",
"digest 0.9.0",
"subtle",
]
[[package]]
name = "libsecp256k1-gen-ecmult"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3"
dependencies = [
"libsecp256k1-core",
]
[[package]]
name = "libsecp256k1-gen-genmult"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d"
dependencies = [
"libsecp256k1-core",
]
[[package]]
name = "lock_api"
version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16"
dependencies = [
"autocfg",
"scopeguard",
]
[[package]]
name = "log"
version = "0.4.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"
[[package]]
name = "memchr"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
[[package]]
name = "memmap2"
version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
dependencies = [
"libc",
]
[[package]]
name = "memoffset"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
dependencies = [
"autocfg",
]
[[package]]
name = "merlin"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d"
dependencies = [
"byteorder",
"keccak",
"rand_core 0.6.4",
"zeroize",
]
[[package]]
name = "num-bigint"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0"
dependencies = [
"autocfg",
"num-integer",
"num-traits",
]
[[package]]
name = "num-derive"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "num-derive"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfb77679af88f8b125209d354a202862602672222e7f2313fdd6dc349bad4712"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.39",
]
[[package]]
name = "num-integer"
version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
dependencies = [
"autocfg",
"num-traits",
]
[[package]]
name = "num-traits"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c"
dependencies = [
"autocfg",
]
[[package]]
name = "num_cpus"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b"
dependencies = [
"hermit-abi 0.2.6",
"libc",
]
[[package]]
name = "num_enum"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9"
dependencies = [
"num_enum_derive 0.5.11",
]
[[package]]
name = "num_enum"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1"
dependencies = [
"num_enum_derive 0.6.1",
]
[[package]]
name = "num_enum_derive"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "num_enum_derive"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro2",
"quote",
"syn 2.0.39",
]
[[package]]
name = "once_cell"
version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]]
name = "opaque-debug"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "parking_lot"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
dependencies = [
"lock_api",
"parking_lot_core",
]
[[package]]
name = "parking_lot_core"
version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
dependencies = [
"cfg-if",
"libc",
"redox_syscall",
"smallvec",
"windows-targets",
]
[[package]]
name = "paste"
version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
[[package]]
name = "pbkdf2"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd"
dependencies = [
"crypto-mac",
]
[[package]]
name = "pbkdf2"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917"
dependencies = [
"digest 0.10.7",
]
[[package]]
name = "percent-encoding"
version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94"
[[package]]
name = "polyval"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1"
dependencies = [
"cfg-if",
"cpufeatures",
"opaque-debug",
"universal-hash",
]
[[package]]
name = "ppv-lite86"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "proc-macro-crate"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785"
dependencies = [
"toml",
]
[[package]]
name = "proc-macro-crate"
version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
dependencies = [
"once_cell",
"toml_edit",
]
[[package]]
name = "proc-macro2"
version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
dependencies = [
"unicode-ident",
]
[[package]]
name = "proc-macro2-diagnostics"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4bf29726d67464d49fa6224a1d07936a8c08bb3fba727c7493f6cf1616fdaada"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
"version_check",
"yansi",
]
[[package]]
name = "pyth-sdk"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e7aeef4d5f0a9c98ff5af2ddd84a8b89919c512188305b497a9eb9afa97a949"
dependencies = [
"borsh 0.10.3",
"borsh-derive 0.10.3",
"getrandom 0.2.10",
"hex",
"schemars",
"serde",
]
[[package]]
name = "pyth-sdk-solana"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "afa571ea6ea51102b8fc03303d0e6fea4f788f77bb4e0d65ae2d3c5e384e3187"
dependencies = [
"borsh 0.10.3",
"borsh-derive 0.10.3",
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"pyth-sdk",
"serde",
"solana-program",
"thiserror",
]
[[package]]
name = "qstring"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e"
dependencies = [
"percent-encoding",
]
[[package]]
name = "quote"
version = "1.0.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
dependencies = [
"proc-macro2",
]
[[package]]
name = "rand"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
dependencies = [
"getrandom 0.1.16",
"libc",
"rand_chacha 0.2.2",
"rand_core 0.5.1",
"rand_hc",
]
[[package]]
name = "rand"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"rand_chacha 0.3.1",
"rand_core 0.6.4",
]
[[package]]
name = "rand_chacha"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
dependencies = [
"ppv-lite86",
"rand_core 0.5.1",
]
[[package]]
name = "rand_chacha"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
"rand_core 0.6.4",
]
[[package]]
name = "rand_core"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
dependencies = [
"getrandom 0.1.16",
]
[[package]]
name = "rand_core"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
"getrandom 0.2.10",
]
[[package]]
name = "rand_hc"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
dependencies = [
"rand_core 0.5.1",
]
[[package]]
name = "rand_xoshiro"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa"
dependencies = [
"rand_core 0.6.4",
]
[[package]]
name = "rayon"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b"
dependencies = [
"either",
"rayon-core",
]
[[package]]
name = "rayon-core"
version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d"
dependencies = [
"crossbeam-channel",
"crossbeam-deque",
"crossbeam-utils",
"num_cpus",
]
[[package]]
name = "redox_syscall"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
dependencies = [
"bitflags",
]
[[package]]
name = "regex"
version = "1.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78"
[[package]]
name = "rustc-hash"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
[[package]]
name = "rustc_version"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
dependencies = [
"semver",
]
[[package]]
name = "rustversion"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06"
[[package]]
name = "ryu"
version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041"
[[package]]
name = "schemars"
version = "0.8.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02c613288622e5f0c3fdc5dbd4db1c5fbe752746b1d1a56a0630b78fd00de44f"
dependencies = [
"dyn-clone",
"schemars_derive",
"serde",
"serde_json",
]
[[package]]
name = "schemars_derive"
version = "0.8.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "109da1e6b197438deb6db99952990c7f959572794b80ff93707d55a232545e7c"
dependencies = [
"proc-macro2",
"quote",
"serde_derive_internals",
"syn 1.0.109",
]
[[package]]
name = "scopeguard"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
[[package]]
name = "semver"
version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed"
[[package]]
name = "serde"
version = "1.0.164"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_bytes"
version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "416bda436f9aab92e02c8e10d49a15ddd339cea90b6e340fe51ed97abb548294"
dependencies = [
"serde",
]
[[package]]
name = "serde_derive"
version = "1.0.164"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.39",
]
[[package]]
name = "serde_derive_internals"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "serde_json"
version = "1.0.97"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bdf3bf93142acad5821c99197022e170842cdbc1c30482b98750c688c640842a"
dependencies = [
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_with"
version = "2.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe"
dependencies = [
"serde",
"serde_with_macros",
]
[[package]]
name = "serde_with_macros"
version = "2.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f"
dependencies = [
"darling 0.20.3",
"proc-macro2",
"quote",
"syn 2.0.39",
]
[[package]]
name = "sha2"
version = "0.9.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800"
dependencies = [
"block-buffer 0.9.0",
"cfg-if",
"cpufeatures",
"digest 0.9.0",
"opaque-debug",
]
[[package]]
name = "sha2"
version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8"
dependencies = [
"cfg-if",
"cpufeatures",
"digest 0.10.7",
]
[[package]]
name = "sha3"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809"
dependencies = [
"block-buffer 0.9.0",
"digest 0.9.0",
"keccak",
"opaque-debug",
]
[[package]]
name = "sha3"
version = "0.10.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60"
dependencies = [
"digest 0.10.7",
"keccak",
]
[[package]]
name = "signature"
version = "1.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c"
[[package]]
name = "sized-chunks"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e"
dependencies = [
"bitmaps",
"typenum",
]
[[package]]
name = "smallvec"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
[[package]]
name = "solana-frozen-abi"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d266bf0311bb403d31206aa2904b8741f57c7f5e27580b6810ad5e22fc7c3282"
dependencies = [
"ahash 0.8.6",
"blake3",
"block-buffer 0.10.4",
"bs58 0.4.0",
"bv",
"byteorder",
"cc",
"either",
"generic-array",
"getrandom 0.1.16",
"im",
"lazy_static",
"log",
"memmap2",
"once_cell",
"rand_core 0.6.4",
"rustc_version",
"serde",
"serde_bytes",
"serde_derive",
"serde_json",
"sha2 0.10.7",
"solana-frozen-abi-macro",
"subtle",
"thiserror",
]
[[package]]
name = "solana-frozen-abi-macro"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dfe18c5155015dcb494c6de84a03b725fcf90ec2006a047769018b94c2cf0de"
dependencies = [
"proc-macro2",
"quote",
"rustc_version",
"syn 2.0.39",
]
[[package]]
name = "solana-gateway"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d148eb75d0799f6825dc2a840b85c065e3d6d12212845add3e059163f98770e"
dependencies = [
"borsh 0.10.3",
"num-derive 0.4.1",
"num-traits",
"solana-program",
"thiserror",
]
[[package]]
name = "solana-logger"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f76fe25c2d06dcf621befd1e8d5655143e8a059c7e20fcb71736bc80ed779d6"
dependencies = [
"env_logger",
"lazy_static",
"log",
]
[[package]]
name = "solana-program"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bb16998986492de307eef503ce47e84503d35baa92dc60832b22476948b1c16"
dependencies = [
"ark-bn254",
"ark-ec",
"ark-ff",
"ark-serialize",
"array-bytes",
"base64 0.21.5",
"bincode",
"bitflags",
"blake3",
"borsh 0.10.3",
"borsh 0.9.3",
"bs58 0.4.0",
"bv",
"bytemuck",
"cc",
"console_error_panic_hook",
"console_log",
"curve25519-dalek",
"getrandom 0.2.10",
"itertools",
"js-sys",
"lazy_static",
"libc",
"libsecp256k1",
"log",
"memoffset",
"num-bigint",
"num-derive 0.3.3",
"num-traits",
"parking_lot",
"rand 0.7.3",
"rand_chacha 0.2.2",
"rustc_version",
"rustversion",
"serde",
"serde_bytes",
"serde_derive",
"serde_json",
"sha2 0.10.7",
"sha3 0.10.8",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-sdk-macro",
"thiserror",
"tiny-bip39",
"wasm-bindgen",
"zeroize",
]
[[package]]
name = "solana-sdk"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4106cda3d10833ba957dbd25fb841b50aeca7480ccf8f54859294716f54bcd4b"
dependencies = [
"assert_matches",
"base64 0.21.5",
"bincode",
"bitflags",
"borsh 0.10.3",
"bs58 0.4.0",
"bytemuck",
"byteorder",
"chrono",
"derivation-path",
"digest 0.10.7",
"ed25519-dalek",
"ed25519-dalek-bip32",
"generic-array",
"hmac 0.12.1",
"itertools",
"js-sys",
"lazy_static",
"libsecp256k1",
"log",
"memmap2",
"num-derive 0.3.3",
"num-traits",
"num_enum 0.6.1",
"pbkdf2 0.11.0",
"qstring",
"rand 0.7.3",
"rand_chacha 0.2.2",
"rustc_version",
"rustversion",
"serde",
"serde_bytes",
"serde_derive",
"serde_json",
"serde_with",
"sha2 0.10.7",
"sha3 0.10.8",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-logger",
"solana-program",
"solana-sdk-macro",
"thiserror",
"uriparse",
"wasm-bindgen",
]
[[package]]
name = "solana-sdk-macro"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e560806a3859717eb2220b26e2cd68bb757b63affa3e79c3f1d8d853b5ee78f"
dependencies = [
"bs58 0.4.0",
"proc-macro2",
"quote",
"rustversion",
"syn 2.0.39",
]
[[package]]
name = "solana-security-txt"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183"
[[package]]
name = "solana-zk-token-sdk"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "278c08e13bc04b6940997602909052524a375154b00cf0bfa934359a3bb7e6f0"
dependencies = [
"aes-gcm-siv",
"base64 0.21.5",
"bincode",
"bytemuck",
"byteorder",
"curve25519-dalek",
"getrandom 0.1.16",
"itertools",
"lazy_static",
"merlin",
"num-derive 0.3.3",
"num-traits",
"rand 0.7.3",
"serde",
"serde_json",
"sha3 0.9.1",
"solana-program",
"solana-sdk",
"subtle",
"thiserror",
"zeroize",
]
[[package]]
name = "spl-associated-token-account"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "978dba3bcbe88d0c2c58366c254d9ea41c5f73357e72fc0bdee4d6b5fc99c8f4"
dependencies = [
"assert_matches",
"borsh 0.9.3",
"num-derive 0.3.3",
"num-traits",
"solana-program",
"spl-token",
"spl-token-2022",
"thiserror",
]
[[package]]
name = "spl-memo"
version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd0dc6f70db6bacea7ff25870b016a65ba1d1b6013536f08e4fd79a8f9005325"
dependencies = [
"solana-program",
]
[[package]]
name = "spl-token"
version = "3.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e85e168a785e82564160dcb87b2a8e04cee9bfd1f4d488c729d53d6a4bd300d"
dependencies = [
"arrayref",
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"num_enum 0.5.11",
"solana-program",
"thiserror",
]
[[package]]
name = "spl-token-2022"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0043b590232c400bad5ee9eb983ced003d15163c4c5d56b090ac6d9a57457b47"
dependencies = [
"arrayref",
"bytemuck",
"num-derive 0.3.3",
"num-traits",
"num_enum 0.5.11",
"solana-program",
"solana-zk-token-sdk",
"spl-memo",
"spl-token",
"thiserror",
]
[[package]]
name = "stockpile-trusts"
version = "0.1.0"
dependencies = [
"anchor-lang",
"anchor-spl",
"klend",
"stockpile-v2",
]
[[package]]
name = "stockpile-v2"
version = "0.1.0"
dependencies = [
"anchor-lang",
"anchor-spl",
"pyth-sdk-solana",
"solana-gateway",
"solana-program",
"solana-security-txt",
"toml_datetime",
"winnow",
]
[[package]]
name = "strsim"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "subtle"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601"
[[package]]
name = "syn"
version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "syn"
version = "2.0.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "termcolor"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6"
dependencies = [
"winapi-util",
]
[[package]]
name = "thiserror"
version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.39",
]
[[package]]
name = "tiny-bip39"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d"
dependencies = [
"anyhow",
"hmac 0.8.1",
"once_cell",
"pbkdf2 0.4.0",
"rand 0.7.3",
"rustc-hash",
"sha2 0.9.9",
"thiserror",
"unicode-normalization",
"wasm-bindgen",
"zeroize",
]
[[package]]
name = "tinyvec"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "toml"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
dependencies = [
"serde",
]
[[package]]
name = "toml_datetime"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622"
[[package]]
name = "toml_edit"
version = "0.19.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "239410c8609e8125456927e6707163a3b1fdb40561e4b803bc041f466ccfdc13"
dependencies = [
"indexmap",
"toml_datetime",
"winnow",
]
[[package]]
name = "typenum"
version = "1.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba"
[[package]]
name = "unicode-ident"
version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0"
[[package]]
name = "unicode-normalization"
version = "0.1.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
dependencies = [
"tinyvec",
]
[[package]]
name = "unicode-segmentation"
version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"
[[package]]
name = "universal-hash"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05"
dependencies = [
"generic-array",
"subtle",
]
[[package]]
name = "uriparse"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff"
dependencies = [
"fnv",
"lazy_static",
]
[[package]]
name = "version_check"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
version = "0.2.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn 2.0.39",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.39",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
[[package]]
name = "web-sys"
version = "0.3.64"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "winapi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
dependencies = [
"winapi",
]
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows-targets"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
"windows_i686_msvc",
"windows_x86_64_gnu",
"windows_x86_64_gnullvm",
"windows_x86_64_msvc",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
[[package]]
name = "windows_aarch64_msvc"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
[[package]]
name = "windows_i686_gnu"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
[[package]]
name = "windows_i686_msvc"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
[[package]]
name = "windows_x86_64_gnu"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
[[package]]
name = "windows_x86_64_msvc"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
[[package]]
name = "winnow"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae8970b36c66498d8ff1d66685dc86b91b29db0c7739899012f63a63814b4b28"
dependencies = [
"memchr",
]
[[package]]
name = "yansi"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec"
[[package]]
name = "zerocopy"
version = "0.7.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8cd369a67c0edfef15010f980c3cbe45d7f651deac2cd67ce097cd801de16557"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2f140bda219a26ccc0cdb03dba58af72590c53b22642577d88a927bc5c87d6b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.39",
]
[[package]]
name = "zeroize"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd"
dependencies = [
"zeroize_derive",
]
[[package]]
name = "zeroize_derive"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.39",
]
| 0
|
solana_public_repos/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/.prettierignore
|
.anchor
.DS_Store
target
node_modules
dist
build
test-ledger
| 0
|
solana_public_repos/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/Anchor.toml
|
[features]
seeds = false
skip-lint = false
[programs.localnet]
stockpile_v2 = "STKUaKniasuqrfer3XNbmrrc578pkL1XACdK8H3YPu8"
[programs.devnet]
stockpile_v2 = "STKUaKniasuqrfer3XNbmrrc578pkL1XACdK8H3YPu8"
[programs.mainnet]
stockpile_v2 = "STKUaKniasuqrfer3XNbmrrc578pkL1XACdK8H3YPu8"
[registry]
url = "https://api.apr.dev"
[provider]
cluster = "devnet"
wallet = "/home/sav/.config/solana/id.json"
[scripts]
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
| 0
|
solana_public_repos/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/yarn.lock
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@babel/runtime@^7.12.5", "@babel/runtime@^7.17.2":
version "7.21.0"
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz"
integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==
dependencies:
regenerator-runtime "^0.13.11"
"@coral-xyz/borsh@^0.26.0":
version "0.26.0"
resolved "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.26.0.tgz"
integrity sha512-uCZ0xus0CszQPHYfWAqKS5swS1UxvePu83oOF+TWpUkedsNlg6p2p4azxZNSSqwXb9uXMFgxhuMBX9r3Xoi0vQ==
dependencies:
bn.js "^5.1.2"
buffer-layout "^1.2.0"
"@noble/ed25519@^1.7.0":
version "1.7.3"
resolved "https://registry.npmjs.org/@noble/ed25519/-/ed25519-1.7.3.tgz"
integrity sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ==
"@noble/hashes@^1.1.2":
version "1.3.0"
resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz"
integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==
"@noble/secp256k1@^1.6.3":
version "1.7.1"
resolved "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz"
integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==
"@project-serum/anchor@^0.26.0":
version "0.26.0"
resolved "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.26.0.tgz"
integrity sha512-Nq+COIjE1135T7qfnOHEn7E0q39bQTgXLFk837/rgFe6Hkew9WML7eHsS+lSYD2p3OJaTiUOHTAq1lHy36oIqQ==
dependencies:
"@coral-xyz/borsh" "^0.26.0"
"@solana/web3.js" "^1.68.0"
base64-js "^1.5.1"
bn.js "^5.1.2"
bs58 "^4.0.1"
buffer-layout "^1.2.2"
camelcase "^6.3.0"
cross-fetch "^3.1.5"
crypto-hash "^1.3.0"
eventemitter3 "^4.0.7"
js-sha256 "^0.9.0"
pako "^2.0.3"
snake-case "^3.0.4"
superstruct "^0.15.4"
toml "^3.0.0"
"@solana/buffer-layout@^4.0.0":
version "4.0.1"
resolved "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-4.0.1.tgz"
integrity sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==
dependencies:
buffer "~6.0.3"
"@solana/web3.js@^1.68.0":
version "1.74.0"
resolved "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.74.0.tgz"
integrity sha512-RKZyPqizPCxmpMGfpu4fuplNZEWCrhRBjjVstv5QnAJvgln1jgOfgui+rjl1ExnqDnWKg9uaZ5jtGROH/cwabg==
dependencies:
"@babel/runtime" "^7.12.5"
"@noble/ed25519" "^1.7.0"
"@noble/hashes" "^1.1.2"
"@noble/secp256k1" "^1.6.3"
"@solana/buffer-layout" "^4.0.0"
agentkeepalive "^4.2.1"
bigint-buffer "^1.1.5"
bn.js "^5.0.0"
borsh "^0.7.0"
bs58 "^4.0.1"
buffer "6.0.1"
fast-stable-stringify "^1.0.0"
jayson "^3.4.4"
node-fetch "^2.6.7"
rpc-websockets "^7.5.1"
superstruct "^0.14.2"
"@types/bn.js@^5.1.0":
version "5.1.1"
resolved "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz"
integrity sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==
dependencies:
"@types/node" "*"
"@types/chai@^4.3.0":
version "4.3.4"
resolved "https://registry.npmjs.org/@types/chai/-/chai-4.3.4.tgz"
integrity sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw==
"@types/connect@^3.4.33":
version "3.4.35"
resolved "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz"
integrity sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==
dependencies:
"@types/node" "*"
"@types/json5@^0.0.29":
version "0.0.29"
resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz"
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
"@types/mocha@^9.0.0":
version "9.1.1"
resolved "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.1.tgz"
integrity sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==
"@types/node@*":
version "18.15.10"
resolved "https://registry.npmjs.org/@types/node/-/node-18.15.10.tgz"
integrity sha512-9avDaQJczATcXgfmMAW3MIWArOO7A+m90vuCFLr8AotWf8igO/mRoYukrk2cqZVtv38tHs33retzHEilM7FpeQ==
"@types/node@^12.12.54":
version "12.20.55"
resolved "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz"
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
"@types/ws@^7.4.4":
version "7.4.7"
resolved "https://registry.npmjs.org/@types/ws/-/ws-7.4.7.tgz"
integrity sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==
dependencies:
"@types/node" "*"
"@ungap/promise-all-settled@1.1.2":
version "1.1.2"
resolved "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz"
integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==
agentkeepalive@^4.2.1:
version "4.3.0"
resolved "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz"
integrity sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==
dependencies:
debug "^4.1.0"
depd "^2.0.0"
humanize-ms "^1.2.1"
ansi-colors@4.1.1:
version "4.1.1"
resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz"
integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==
ansi-regex@^5.0.1:
version "5.0.1"
resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz"
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
ansi-styles@^4.0.0, ansi-styles@^4.1.0:
version "4.3.0"
resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
dependencies:
color-convert "^2.0.1"
anymatch@~3.1.2:
version "3.1.3"
resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz"
integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
dependencies:
normalize-path "^3.0.0"
picomatch "^2.0.4"
argparse@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
arrify@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz"
integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==
assertion-error@^1.1.0:
version "1.1.0"
resolved "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz"
integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==
balanced-match@^1.0.0:
version "1.0.2"
resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
base-x@^3.0.2:
version "3.0.9"
resolved "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz"
integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==
dependencies:
safe-buffer "^5.0.1"
base64-js@^1.3.1, base64-js@^1.5.1:
version "1.5.1"
resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz"
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
bigint-buffer@^1.1.5:
version "1.1.5"
resolved "https://registry.npmjs.org/bigint-buffer/-/bigint-buffer-1.1.5.tgz"
integrity sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==
dependencies:
bindings "^1.3.0"
binary-extensions@^2.0.0:
version "2.2.0"
resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz"
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
bindings@^1.3.0:
version "1.5.0"
resolved "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz"
integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==
dependencies:
file-uri-to-path "1.0.0"
bn.js@^5.0.0, bn.js@^5.1.2, bn.js@^5.2.0:
version "5.2.1"
resolved "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz"
integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==
borsh@^0.7.0:
version "0.7.0"
resolved "https://registry.npmjs.org/borsh/-/borsh-0.7.0.tgz"
integrity sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==
dependencies:
bn.js "^5.2.0"
bs58 "^4.0.0"
text-encoding-utf-8 "^1.0.2"
brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz"
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.npmjs.org/braces/-/braces-3.0.2.tgz"
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
dependencies:
fill-range "^7.0.1"
browser-stdout@1.3.1:
version "1.3.1"
resolved "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz"
integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==
bs58@^4.0.0, bs58@^4.0.1:
version "4.0.1"
resolved "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz"
integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==
dependencies:
base-x "^3.0.2"
buffer-from@^1.0.0, buffer-from@^1.1.0:
version "1.1.2"
resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz"
integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
buffer-layout@^1.2.0, buffer-layout@^1.2.2:
version "1.2.2"
resolved "https://registry.npmjs.org/buffer-layout/-/buffer-layout-1.2.2.tgz"
integrity sha512-kWSuLN694+KTk8SrYvCqwP2WcgQjoRCiF5b4QDvkkz8EmgD+aWAIceGFKMIAdmF/pH+vpgNV3d3kAKorcdAmWA==
buffer@~6.0.3:
version "6.0.3"
resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz"
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
dependencies:
base64-js "^1.3.1"
ieee754 "^1.2.1"
buffer@6.0.1:
version "6.0.1"
resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.1.tgz"
integrity sha512-rVAXBwEcEoYtxnHSO5iWyhzV/O1WMtkUYWlfdLS7FjU4PnSJJHEfHXi/uHPI5EwltmOA794gN3bm3/pzuctWjQ==
dependencies:
base64-js "^1.3.1"
ieee754 "^1.2.1"
bufferutil@^4.0.1:
version "4.0.7"
resolved "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz"
integrity sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==
dependencies:
node-gyp-build "^4.3.0"
camelcase@^6.0.0, camelcase@^6.3.0:
version "6.3.0"
resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
chai@^4.3.4:
version "4.3.7"
resolved "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz"
integrity sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==
dependencies:
assertion-error "^1.1.0"
check-error "^1.0.2"
deep-eql "^4.1.2"
get-func-name "^2.0.0"
loupe "^2.3.1"
pathval "^1.1.1"
type-detect "^4.0.5"
chalk@^4.1.0:
version "4.1.2"
resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"
check-error@^1.0.2:
version "1.0.2"
resolved "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz"
integrity sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==
chokidar@3.5.3:
version "3.5.3"
resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz"
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
dependencies:
anymatch "~3.1.2"
braces "~3.0.2"
glob-parent "~5.1.2"
is-binary-path "~2.1.0"
is-glob "~4.0.1"
normalize-path "~3.0.0"
readdirp "~3.6.0"
optionalDependencies:
fsevents "~2.3.2"
cliui@^7.0.2:
version "7.0.4"
resolved "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz"
integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==
dependencies:
string-width "^4.2.0"
strip-ansi "^6.0.0"
wrap-ansi "^7.0.0"
color-convert@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
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.npmjs.org/color-name/-/color-name-1.1.4.tgz"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
commander@^2.20.3:
version "2.20.3"
resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
cross-fetch@^3.1.5:
version "3.1.5"
resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz"
integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==
dependencies:
node-fetch "2.6.7"
crypto-hash@^1.3.0:
version "1.3.0"
resolved "https://registry.npmjs.org/crypto-hash/-/crypto-hash-1.3.0.tgz"
integrity sha512-lyAZ0EMyjDkVvz8WOeVnuCPvKVBXcMv1l5SVqO1yC7PzTwrD/pPje/BIRbWhMoPe436U+Y2nD7f5bFx0kt+Sbg==
debug@^4.1.0:
version "4.3.4"
resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
dependencies:
ms "2.1.2"
debug@4.3.3:
version "4.3.3"
resolved "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz"
integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==
dependencies:
ms "2.1.2"
decamelize@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz"
integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==
deep-eql@^4.1.2:
version "4.1.3"
resolved "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz"
integrity sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==
dependencies:
type-detect "^4.0.0"
delay@^5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz"
integrity sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==
depd@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz"
integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
diff@^3.1.0:
version "3.5.0"
resolved "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz"
integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==
diff@5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz"
integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==
dot-case@^3.0.4:
version "3.0.4"
resolved "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz"
integrity sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==
dependencies:
no-case "^3.0.4"
tslib "^2.0.3"
emoji-regex@^8.0.0:
version "8.0.0"
resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz"
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
es6-promise@^4.0.3:
version "4.2.8"
resolved "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz"
integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==
es6-promisify@^5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz"
integrity sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==
dependencies:
es6-promise "^4.0.3"
escalade@^3.1.1:
version "3.1.1"
resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz"
integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
escape-string-regexp@4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
eventemitter3@^4.0.7:
version "4.0.7"
resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz"
integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==
eyes@^0.1.8:
version "0.1.8"
resolved "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz"
integrity sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==
fast-stable-stringify@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/fast-stable-stringify/-/fast-stable-stringify-1.0.0.tgz"
integrity sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==
file-uri-to-path@1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz"
integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==
fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
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.npmjs.org/find-up/-/find-up-5.0.0.tgz"
integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==
dependencies:
locate-path "^6.0.0"
path-exists "^4.0.0"
flat@^5.0.2:
version "5.0.2"
resolved "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz"
integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==
fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
get-caller-file@^2.0.5:
version "2.0.5"
resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz"
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
get-func-name@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz"
integrity sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==
glob-parent@~5.1.2:
version "5.1.2"
resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
dependencies:
is-glob "^4.0.1"
glob@7.2.0:
version "7.2.0"
resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz"
integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^3.0.4"
once "^1.3.0"
path-is-absolute "^1.0.0"
growl@1.10.5:
version "1.10.5"
resolved "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz"
integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==
has-flag@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
he@1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
humanize-ms@^1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz"
integrity sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==
dependencies:
ms "^2.0.0"
ieee754@^1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz"
integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
dependencies:
once "^1.3.0"
wrappy "1"
inherits@2:
version "2.0.4"
resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
is-binary-path@~2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz"
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
dependencies:
binary-extensions "^2.0.0"
is-extglob@^2.1.1:
version "2.1.1"
resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz"
integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
is-fullwidth-code-point@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"
integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
is-glob@^4.0.1, is-glob@~4.0.1:
version "4.0.3"
resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz"
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
dependencies:
is-extglob "^2.1.1"
is-number@^7.0.0:
version "7.0.0"
resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
is-plain-obj@^2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz"
integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==
is-unicode-supported@^0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz"
integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==
isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
isomorphic-ws@^4.0.1:
version "4.0.1"
resolved "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz"
integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==
jayson@^3.4.4:
version "3.7.0"
resolved "https://registry.npmjs.org/jayson/-/jayson-3.7.0.tgz"
integrity sha512-tfy39KJMrrXJ+mFcMpxwBvFDetS8LAID93+rycFglIQM4kl3uNR3W4lBLE/FFhsoUCEox5Dt2adVpDm/XtebbQ==
dependencies:
"@types/connect" "^3.4.33"
"@types/node" "^12.12.54"
"@types/ws" "^7.4.4"
commander "^2.20.3"
delay "^5.0.0"
es6-promisify "^5.0.0"
eyes "^0.1.8"
isomorphic-ws "^4.0.1"
json-stringify-safe "^5.0.1"
JSONStream "^1.3.5"
lodash "^4.17.20"
uuid "^8.3.2"
ws "^7.4.5"
js-sha256@^0.9.0:
version "0.9.0"
resolved "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz"
integrity sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==
js-yaml@4.1.0:
version "4.1.0"
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
dependencies:
argparse "^2.0.1"
json-stringify-safe@^5.0.1:
version "5.0.1"
resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz"
integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==
json5@^1.0.2:
version "1.0.2"
resolved "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz"
integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==
dependencies:
minimist "^1.2.0"
jsonparse@^1.2.0:
version "1.3.1"
resolved "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz"
integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==
JSONStream@^1.3.5:
version "1.3.5"
resolved "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz"
integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==
dependencies:
jsonparse "^1.2.0"
through ">=2.2.7 <3"
locate-path@^6.0.0:
version "6.0.0"
resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz"
integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==
dependencies:
p-locate "^5.0.0"
lodash@^4.17.20:
version "4.17.21"
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
log-symbols@4.1.0:
version "4.1.0"
resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz"
integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==
dependencies:
chalk "^4.1.0"
is-unicode-supported "^0.1.0"
loupe@^2.3.1:
version "2.3.6"
resolved "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz"
integrity sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==
dependencies:
get-func-name "^2.0.0"
lower-case@^2.0.2:
version "2.0.2"
resolved "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz"
integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==
dependencies:
tslib "^2.0.3"
make-error@^1.1.1:
version "1.3.6"
resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz"
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
minimatch@^3.0.4:
version "3.1.2"
resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
dependencies:
brace-expansion "^1.1.7"
minimatch@4.2.1:
version "4.2.1"
resolved "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz"
integrity sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==
dependencies:
brace-expansion "^1.1.7"
minimist@^1.2.0, minimist@^1.2.6:
version "1.2.8"
resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz"
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
mkdirp@^0.5.1:
version "0.5.6"
resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz"
integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==
dependencies:
minimist "^1.2.6"
"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", mocha@^9.0.3:
version "9.2.2"
resolved "https://registry.npmjs.org/mocha/-/mocha-9.2.2.tgz"
integrity sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==
dependencies:
"@ungap/promise-all-settled" "1.1.2"
ansi-colors "4.1.1"
browser-stdout "1.3.1"
chokidar "3.5.3"
debug "4.3.3"
diff "5.0.0"
escape-string-regexp "4.0.0"
find-up "5.0.0"
glob "7.2.0"
growl "1.10.5"
he "1.2.0"
js-yaml "4.1.0"
log-symbols "4.1.0"
minimatch "4.2.1"
ms "2.1.3"
nanoid "3.3.1"
serialize-javascript "6.0.0"
strip-json-comments "3.1.1"
supports-color "8.1.1"
which "2.0.2"
workerpool "6.2.0"
yargs "16.2.0"
yargs-parser "20.2.4"
yargs-unparser "2.0.0"
ms@^2.0.0:
version "2.1.3"
resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
ms@2.1.2:
version "2.1.2"
resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
ms@2.1.3:
version "2.1.3"
resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
nanoid@3.3.1:
version "3.3.1"
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz"
integrity sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==
no-case@^3.0.4:
version "3.0.4"
resolved "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz"
integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==
dependencies:
lower-case "^2.0.2"
tslib "^2.0.3"
node-fetch@^2.6.7:
version "2.6.9"
resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz"
integrity sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==
dependencies:
whatwg-url "^5.0.0"
node-fetch@2.6.7:
version "2.6.7"
resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz"
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
dependencies:
whatwg-url "^5.0.0"
node-gyp-build@^4.3.0:
version "4.6.0"
resolved "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz"
integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==
normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
once@^1.3.0:
version "1.4.0"
resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
dependencies:
wrappy "1"
p-limit@^3.0.2:
version "3.1.0"
resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz"
integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==
dependencies:
yocto-queue "^0.1.0"
p-locate@^5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz"
integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==
dependencies:
p-limit "^3.0.2"
pako@^2.0.3:
version "2.1.0"
resolved "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz"
integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==
path-exists@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz"
integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
pathval@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz"
integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==
picomatch@^2.0.4, picomatch@^2.2.1:
version "2.3.1"
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
prettier@^2.6.2:
version "2.8.7"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz"
integrity sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==
randombytes@^2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz"
integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
dependencies:
safe-buffer "^5.1.0"
readdirp@~3.6.0:
version "3.6.0"
resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz"
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
dependencies:
picomatch "^2.2.1"
regenerator-runtime@^0.13.11:
version "0.13.11"
resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz"
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
require-directory@^2.1.1:
version "2.1.1"
resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz"
integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==
rpc-websockets@^7.5.1:
version "7.5.1"
resolved "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.5.1.tgz"
integrity sha512-kGFkeTsmd37pHPMaHIgN1LVKXMi0JD782v4Ds9ZKtLlwdTKjn+CxM9A9/gLT2LaOuEcEFGL98h1QWQtlOIdW0w==
dependencies:
"@babel/runtime" "^7.17.2"
eventemitter3 "^4.0.7"
uuid "^8.3.2"
ws "^8.5.0"
optionalDependencies:
bufferutil "^4.0.1"
utf-8-validate "^5.0.2"
safe-buffer@^5.0.1, safe-buffer@^5.1.0:
version "5.2.1"
resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz"
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
serialize-javascript@6.0.0:
version "6.0.0"
resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz"
integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==
dependencies:
randombytes "^2.1.0"
snake-case@^3.0.4:
version "3.0.4"
resolved "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz"
integrity sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==
dependencies:
dot-case "^3.0.4"
tslib "^2.0.3"
source-map-support@^0.5.6:
version "0.5.21"
resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz"
integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
dependencies:
buffer-from "^1.0.0"
source-map "^0.6.0"
source-map@^0.6.0:
version "0.6.1"
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
string-width@^4.1.0, string-width@^4.2.0:
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"
strip-bom@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz"
integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==
strip-json-comments@3.1.1:
version "3.1.1"
resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz"
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
superstruct@^0.14.2:
version "0.14.2"
resolved "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz"
integrity sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==
superstruct@^0.15.4:
version "0.15.5"
resolved "https://registry.npmjs.org/superstruct/-/superstruct-0.15.5.tgz"
integrity sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==
supports-color@^7.1.0:
version "7.2.0"
resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==
dependencies:
has-flag "^4.0.0"
supports-color@8.1.1:
version "8.1.1"
resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz"
integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
dependencies:
has-flag "^4.0.0"
text-encoding-utf-8@^1.0.2:
version "1.0.2"
resolved "https://registry.npmjs.org/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz"
integrity sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==
"through@>=2.2.7 <3":
version "2.3.8"
resolved "https://registry.npmjs.org/through/-/through-2.3.8.tgz"
integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==
to-regex-range@^5.0.1:
version "5.0.1"
resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"
integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
dependencies:
is-number "^7.0.0"
toml@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/toml/-/toml-3.0.0.tgz"
integrity sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==
tr46@~0.0.3:
version "0.0.3"
resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz"
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
ts-mocha@^10.0.0:
version "10.0.0"
resolved "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz"
integrity sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==
dependencies:
ts-node "7.0.1"
optionalDependencies:
tsconfig-paths "^3.5.0"
ts-node@7.0.1:
version "7.0.1"
resolved "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz"
integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==
dependencies:
arrify "^1.0.0"
buffer-from "^1.1.0"
diff "^3.1.0"
make-error "^1.1.1"
minimist "^1.2.0"
mkdirp "^0.5.1"
source-map-support "^0.5.6"
yn "^2.0.0"
tsconfig-paths@^3.5.0:
version "3.14.2"
resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz"
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@^2.0.3:
version "2.5.0"
resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz"
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
type-detect@^4.0.0, type-detect@^4.0.5:
version "4.0.8"
resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz"
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
typescript@^4.3.5:
version "4.9.5"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
utf-8-validate@^5.0.2, utf-8-validate@>=5.0.2:
version "5.0.10"
resolved "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz"
integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==
dependencies:
node-gyp-build "^4.3.0"
utf8@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz"
integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==
uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
webidl-conversions@^3.0.0:
version "3.0.1"
resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz"
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
whatwg-url@^5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz"
integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
dependencies:
tr46 "~0.0.3"
webidl-conversions "^3.0.0"
which@2.0.2:
version "2.0.2"
resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz"
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
dependencies:
isexe "^2.0.0"
workerpool@6.2.0:
version "6.2.0"
resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz"
integrity sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==
wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"
wrappy@1:
version "1.0.2"
resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
ws@*, ws@^7.4.5:
version "7.5.9"
resolved "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz"
integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==
ws@^8.5.0:
version "8.13.0"
resolved "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz"
integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==
y18n@^5.0.5:
version "5.0.8"
resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz"
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
yargs-parser@^20.2.2:
version "20.2.9"
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz"
integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==
yargs-parser@20.2.4:
version "20.2.4"
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz"
integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==
yargs-unparser@2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz"
integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==
dependencies:
camelcase "^6.0.0"
decamelize "^4.0.0"
flat "^5.0.2"
is-plain-obj "^2.1.0"
yargs@16.2.0:
version "16.2.0"
resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz"
integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==
dependencies:
cliui "^7.0.2"
escalade "^3.1.1"
get-caller-file "^2.0.5"
require-directory "^2.1.1"
string-width "^4.2.0"
y18n "^5.0.5"
yargs-parser "^20.2.2"
yn@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz"
integrity sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==
yocto-queue@^0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
| 0
|
solana_public_repos/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/package-lock.json
|
{
"name": "stockpile-v2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"dependencies": {
"@project-serum/anchor": "^0.26.0",
"utf8": "^3.0.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"
}
},
"node_modules/@babel/runtime": {
"version": "7.21.0",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz",
"integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==",
"license": "MIT",
"dependencies": {
"regenerator-runtime": "^0.13.11"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@coral-xyz/borsh": {
"version": "0.26.0",
"resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.26.0.tgz",
"integrity": "sha512-uCZ0xus0CszQPHYfWAqKS5swS1UxvePu83oOF+TWpUkedsNlg6p2p4azxZNSSqwXb9uXMFgxhuMBX9r3Xoi0vQ==",
"license": "Apache-2.0",
"dependencies": {
"bn.js": "^5.1.2",
"buffer-layout": "^1.2.0"
},
"engines": {
"node": ">=10"
},
"peerDependencies": {
"@solana/web3.js": "^1.68.0"
}
},
"node_modules/@noble/ed25519": {
"version": "1.7.3",
"resolved": "https://registry.npmjs.org/@noble/ed25519/-/ed25519-1.7.3.tgz",
"integrity": "sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
],
"license": "MIT"
},
"node_modules/@noble/hashes": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz",
"integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
],
"license": "MIT"
},
"node_modules/@noble/secp256k1": {
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz",
"integrity": "sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
],
"license": "MIT"
},
"node_modules/@project-serum/anchor": {
"version": "0.26.0",
"resolved": "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.26.0.tgz",
"integrity": "sha512-Nq+COIjE1135T7qfnOHEn7E0q39bQTgXLFk837/rgFe6Hkew9WML7eHsS+lSYD2p3OJaTiUOHTAq1lHy36oIqQ==",
"license": "(MIT OR Apache-2.0)",
"dependencies": {
"@coral-xyz/borsh": "^0.26.0",
"@solana/web3.js": "^1.68.0",
"base64-js": "^1.5.1",
"bn.js": "^5.1.2",
"bs58": "^4.0.1",
"buffer-layout": "^1.2.2",
"camelcase": "^6.3.0",
"cross-fetch": "^3.1.5",
"crypto-hash": "^1.3.0",
"eventemitter3": "^4.0.7",
"js-sha256": "^0.9.0",
"pako": "^2.0.3",
"snake-case": "^3.0.4",
"superstruct": "^0.15.4",
"toml": "^3.0.0"
},
"engines": {
"node": ">=11"
}
},
"node_modules/@solana/buffer-layout": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-4.0.1.tgz",
"integrity": "sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==",
"license": "MIT",
"dependencies": {
"buffer": "~6.0.3"
},
"engines": {
"node": ">=5.10"
}
},
"node_modules/@solana/buffer-layout/node_modules/buffer": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
"integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT",
"dependencies": {
"base64-js": "^1.3.1",
"ieee754": "^1.2.1"
}
},
"node_modules/@solana/web3.js": {
"version": "1.74.0",
"resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.74.0.tgz",
"integrity": "sha512-RKZyPqizPCxmpMGfpu4fuplNZEWCrhRBjjVstv5QnAJvgln1jgOfgui+rjl1ExnqDnWKg9uaZ5jtGROH/cwabg==",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@noble/ed25519": "^1.7.0",
"@noble/hashes": "^1.1.2",
"@noble/secp256k1": "^1.6.3",
"@solana/buffer-layout": "^4.0.0",
"agentkeepalive": "^4.2.1",
"bigint-buffer": "^1.1.5",
"bn.js": "^5.0.0",
"borsh": "^0.7.0",
"bs58": "^4.0.1",
"buffer": "6.0.1",
"fast-stable-stringify": "^1.0.0",
"jayson": "^3.4.4",
"node-fetch": "^2.6.7",
"rpc-websockets": "^7.5.1",
"superstruct": "^0.14.2"
}
},
"node_modules/@solana/web3.js/node_modules/node-fetch": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz",
"integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==",
"license": "MIT",
"dependencies": {
"whatwg-url": "^5.0.0"
},
"engines": {
"node": "4.x || >=6.0.0"
},
"peerDependencies": {
"encoding": "^0.1.0"
},
"peerDependenciesMeta": {
"encoding": {
"optional": true
}
}
},
"node_modules/@solana/web3.js/node_modules/superstruct": {
"version": "0.14.2",
"resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz",
"integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==",
"license": "MIT"
},
"node_modules/@types/bn.js": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz",
"integrity": "sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/chai": {
"version": "4.3.4",
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.4.tgz",
"integrity": "sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/connect": {
"version": "3.4.35",
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz",
"integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==",
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/json5": {
"version": "0.0.29",
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
"dev": true,
"license": "MIT",
"optional": true
},
"node_modules/@types/mocha": {
"version": "9.1.1",
"resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.1.tgz",
"integrity": "sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "18.15.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.10.tgz",
"integrity": "sha512-9avDaQJczATcXgfmMAW3MIWArOO7A+m90vuCFLr8AotWf8igO/mRoYukrk2cqZVtv38tHs33retzHEilM7FpeQ==",
"license": "MIT"
},
"node_modules/@types/ws": {
"version": "7.4.7",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.4.7.tgz",
"integrity": "sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==",
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@ungap/promise-all-settled": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz",
"integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==",
"dev": true,
"license": "ISC"
},
"node_modules/agentkeepalive": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz",
"integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==",
"license": "MIT",
"dependencies": {
"debug": "^4.1.0",
"depd": "^2.0.0",
"humanize-ms": "^1.2.1"
},
"engines": {
"node": ">= 8.0.0"
}
},
"node_modules/agentkeepalive/node_modules/debug": {
"version": "4.3.4",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
"license": "MIT",
"dependencies": {
"ms": "2.1.2"
},
"engines": {
"node": ">=6.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
}
},
"node_modules/ansi-colors": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
"integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/anymatch": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
"dev": true,
"license": "ISC",
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
"dev": true,
"license": "Python-2.0"
},
"node_modules/arrify": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
"integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/assertion-error": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
"dev": true,
"license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/balanced-match": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true,
"license": "MIT"
},
"node_modules/base-x": {
"version": "3.0.9",
"resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz",
"integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==",
"license": "MIT",
"dependencies": {
"safe-buffer": "^5.0.1"
}
},
"node_modules/base64-js": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT"
},
"node_modules/bigint-buffer": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/bigint-buffer/-/bigint-buffer-1.1.5.tgz",
"integrity": "sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"bindings": "^1.3.0"
},
"engines": {
"node": ">= 10.0.0"
}
},
"node_modules/binary-extensions": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/bindings": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
"integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
"license": "MIT",
"dependencies": {
"file-uri-to-path": "1.0.0"
}
},
"node_modules/bn.js": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz",
"integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==",
"license": "MIT"
},
"node_modules/borsh": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/borsh/-/borsh-0.7.0.tgz",
"integrity": "sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==",
"license": "Apache-2.0",
"dependencies": {
"bn.js": "^5.2.0",
"bs58": "^4.0.0",
"text-encoding-utf-8": "^1.0.2"
}
},
"node_modules/brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
}
},
"node_modules/braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
"license": "MIT",
"dependencies": {
"fill-range": "^7.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/browser-stdout": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
"integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
"dev": true,
"license": "ISC"
},
"node_modules/bs58": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz",
"integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==",
"license": "MIT",
"dependencies": {
"base-x": "^3.0.2"
}
},
"node_modules/buffer": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.1.tgz",
"integrity": "sha512-rVAXBwEcEoYtxnHSO5iWyhzV/O1WMtkUYWlfdLS7FjU4PnSJJHEfHXi/uHPI5EwltmOA794gN3bm3/pzuctWjQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT",
"dependencies": {
"base64-js": "^1.3.1",
"ieee754": "^1.2.1"
}
},
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
"dev": true,
"license": "MIT"
},
"node_modules/buffer-layout": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/buffer-layout/-/buffer-layout-1.2.2.tgz",
"integrity": "sha512-kWSuLN694+KTk8SrYvCqwP2WcgQjoRCiF5b4QDvkkz8EmgD+aWAIceGFKMIAdmF/pH+vpgNV3d3kAKorcdAmWA==",
"license": "MIT",
"engines": {
"node": ">=4.5"
}
},
"node_modules/bufferutil": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz",
"integrity": "sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==",
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"dependencies": {
"node-gyp-build": "^4.3.0"
},
"engines": {
"node": ">=6.14.2"
}
},
"node_modules/camelcase": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
"integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
"license": "MIT",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/chai": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz",
"integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==",
"dev": true,
"license": "MIT",
"dependencies": {
"assertion-error": "^1.1.0",
"check-error": "^1.0.2",
"deep-eql": "^4.1.2",
"get-func-name": "^2.0.0",
"loupe": "^2.3.1",
"pathval": "^1.1.1",
"type-detect": "^4.0.5"
},
"engines": {
"node": ">=4"
}
},
"node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/chalk/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/check-error": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz",
"integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==",
"dev": true,
"license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
"integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
"dev": true,
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
],
"license": "MIT",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
"glob-parent": "~5.1.2",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.6.0"
},
"engines": {
"node": ">= 8.10.0"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
}
},
"node_modules/cliui": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
"dev": true,
"license": "ISC",
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"wrap-ansi": "^7.0.0"
}
},
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
"engines": {
"node": ">=7.0.0"
}
},
"node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"license": "MIT"
},
"node_modules/commander": {
"version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"license": "MIT"
},
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
"dev": true,
"license": "MIT"
},
"node_modules/cross-fetch": {
"version": "3.1.5",
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",
"integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==",
"license": "MIT",
"dependencies": {
"node-fetch": "2.6.7"
}
},
"node_modules/crypto-hash": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/crypto-hash/-/crypto-hash-1.3.0.tgz",
"integrity": "sha512-lyAZ0EMyjDkVvz8WOeVnuCPvKVBXcMv1l5SVqO1yC7PzTwrD/pPje/BIRbWhMoPe436U+Y2nD7f5bFx0kt+Sbg==",
"license": "MIT",
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/debug": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"license": "MIT",
"dependencies": {
"ms": "2.1.2"
},
"engines": {
"node": ">=6.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
}
},
"node_modules/decamelize": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz",
"integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/deep-eql": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz",
"integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==",
"dev": true,
"license": "MIT",
"dependencies": {
"type-detect": "^4.0.0"
},
"engines": {
"node": ">=6"
}
},
"node_modules/delay": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz",
"integrity": "sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==",
"license": "MIT",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/depd": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/diff": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz",
"integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
}
},
"node_modules/dot-case": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz",
"integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==",
"license": "MIT",
"dependencies": {
"no-case": "^3.0.4",
"tslib": "^2.0.3"
}
},
"node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true,
"license": "MIT"
},
"node_modules/es6-promise": {
"version": "4.2.8",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
"integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==",
"license": "MIT"
},
"node_modules/es6-promisify": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz",
"integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==",
"license": "MIT",
"dependencies": {
"es6-promise": "^4.0.3"
}
},
"node_modules/escalade": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/escape-string-regexp": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/eventemitter3": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
"license": "MIT"
},
"node_modules/eyes": {
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz",
"integrity": "sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==",
"engines": {
"node": "> 0.1.90"
}
},
"node_modules/fast-stable-stringify": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fast-stable-stringify/-/fast-stable-stringify-1.0.0.tgz",
"integrity": "sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==",
"license": "MIT"
},
"node_modules/file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
"license": "MIT"
},
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"to-regex-range": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/find-up": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
"integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
"dev": true,
"license": "MIT",
"dependencies": {
"locate-path": "^6.0.0",
"path-exists": "^4.0.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/flat": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz",
"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==",
"dev": true,
"license": "BSD-3-Clause",
"bin": {
"flat": "cli.js"
}
},
"node_modules/fs.realpath": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
"dev": true,
"license": "ISC"
},
"node_modules/get-caller-file": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
"dev": true,
"license": "ISC",
"engines": {
"node": "6.* || 8.* || >= 10.*"
}
},
"node_modules/get-func-name": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
"integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==",
"dev": true,
"license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/glob": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
"integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
"dev": true,
"license": "ISC",
"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"
},
"engines": {
"node": "*"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"license": "ISC",
"dependencies": {
"is-glob": "^4.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/glob/node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true,
"license": "ISC",
"dependencies": {
"brace-expansion": "^1.1.7"
},
"engines": {
"node": "*"
}
},
"node_modules/growl": {
"version": "1.10.5",
"resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
"integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=4.x"
}
},
"node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/he": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
"dev": true,
"license": "MIT",
"bin": {
"he": "bin/he"
}
},
"node_modules/humanize-ms": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
"integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
"license": "MIT",
"dependencies": {
"ms": "^2.0.0"
}
},
"node_modules/humanize-ms/node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"license": "MIT"
},
"node_modules/ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "BSD-3-Clause"
},
"node_modules/inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
"dev": true,
"license": "ISC",
"dependencies": {
"once": "^1.3.0",
"wrappy": "1"
}
},
"node_modules/inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"dev": true,
"license": "ISC"
},
"node_modules/is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dev": true,
"license": "MIT",
"dependencies": {
"binary-extensions": "^2.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
"license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.12.0"
}
},
"node_modules/is-plain-obj": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
"integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/is-unicode-supported": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
"integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"dev": true,
"license": "ISC"
},
"node_modules/isomorphic-ws": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz",
"integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==",
"license": "MIT",
"peerDependencies": {
"ws": "*"
}
},
"node_modules/jayson": {
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/jayson/-/jayson-3.7.0.tgz",
"integrity": "sha512-tfy39KJMrrXJ+mFcMpxwBvFDetS8LAID93+rycFglIQM4kl3uNR3W4lBLE/FFhsoUCEox5Dt2adVpDm/XtebbQ==",
"license": "MIT",
"dependencies": {
"@types/connect": "^3.4.33",
"@types/node": "^12.12.54",
"@types/ws": "^7.4.4",
"commander": "^2.20.3",
"delay": "^5.0.0",
"es6-promisify": "^5.0.0",
"eyes": "^0.1.8",
"isomorphic-ws": "^4.0.1",
"json-stringify-safe": "^5.0.1",
"JSONStream": "^1.3.5",
"lodash": "^4.17.20",
"uuid": "^8.3.2",
"ws": "^7.4.5"
},
"bin": {
"jayson": "bin/jayson.js"
},
"engines": {
"node": ">=8"
}
},
"node_modules/jayson/node_modules/@types/node": {
"version": "12.20.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==",
"license": "MIT"
},
"node_modules/js-sha256": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz",
"integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==",
"license": "MIT"
},
"node_modules/js-yaml": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
"dev": true,
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
},
"bin": {
"js-yaml": "bin/js-yaml.js"
}
},
"node_modules/json-stringify-safe": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
"integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",
"license": "ISC"
},
"node_modules/json5": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"minimist": "^1.2.0"
},
"bin": {
"json5": "lib/cli.js"
}
},
"node_modules/jsonparse": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
"integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==",
"engines": [
"node >= 0.2.0"
],
"license": "MIT"
},
"node_modules/JSONStream": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",
"integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==",
"license": "(MIT OR Apache-2.0)",
"dependencies": {
"jsonparse": "^1.2.0",
"through": ">=2.2.7 <3"
},
"bin": {
"JSONStream": "bin.js"
},
"engines": {
"node": "*"
}
},
"node_modules/locate-path": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
"integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
"dev": true,
"license": "MIT",
"dependencies": {
"p-locate": "^5.0.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"license": "MIT"
},
"node_modules/log-symbols": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
"integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
"dev": true,
"license": "MIT",
"dependencies": {
"chalk": "^4.1.0",
"is-unicode-supported": "^0.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/loupe": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz",
"integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==",
"dev": true,
"license": "MIT",
"dependencies": {
"get-func-name": "^2.0.0"
}
},
"node_modules/lower-case": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
"integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",
"license": "MIT",
"dependencies": {
"tslib": "^2.0.3"
}
},
"node_modules/make-error": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
"dev": true,
"license": "ISC"
},
"node_modules/minimatch": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz",
"integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==",
"dev": true,
"license": "ISC",
"dependencies": {
"brace-expansion": "^1.1.7"
},
"engines": {
"node": ">=10"
}
},
"node_modules/minimist": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
"dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/mkdirp": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
"dev": true,
"license": "MIT",
"dependencies": {
"minimist": "^1.2.6"
},
"bin": {
"mkdirp": "bin/cmd.js"
}
},
"node_modules/mocha": {
"version": "9.2.2",
"resolved": "https://registry.npmjs.org/mocha/-/mocha-9.2.2.tgz",
"integrity": "sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==",
"dev": true,
"license": "MIT",
"dependencies": {
"@ungap/promise-all-settled": "1.1.2",
"ansi-colors": "4.1.1",
"browser-stdout": "1.3.1",
"chokidar": "3.5.3",
"debug": "4.3.3",
"diff": "5.0.0",
"escape-string-regexp": "4.0.0",
"find-up": "5.0.0",
"glob": "7.2.0",
"growl": "1.10.5",
"he": "1.2.0",
"js-yaml": "4.1.0",
"log-symbols": "4.1.0",
"minimatch": "4.2.1",
"ms": "2.1.3",
"nanoid": "3.3.1",
"serialize-javascript": "6.0.0",
"strip-json-comments": "3.1.1",
"supports-color": "8.1.1",
"which": "2.0.2",
"workerpool": "6.2.0",
"yargs": "16.2.0",
"yargs-parser": "20.2.4",
"yargs-unparser": "2.0.0"
},
"bin": {
"_mocha": "bin/_mocha",
"mocha": "bin/mocha"
},
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/mochajs"
}
},
"node_modules/mocha/node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"dev": true,
"license": "MIT"
},
"node_modules/ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"license": "MIT"
},
"node_modules/nanoid": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz",
"integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==",
"dev": true,
"license": "MIT",
"bin": {
"nanoid": "bin/nanoid.cjs"
},
"engines": {
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
"node_modules/no-case": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",
"integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",
"license": "MIT",
"dependencies": {
"lower-case": "^2.0.2",
"tslib": "^2.0.3"
}
},
"node_modules/node-fetch": {
"version": "2.6.7",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
"integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
"license": "MIT",
"dependencies": {
"whatwg-url": "^5.0.0"
},
"engines": {
"node": "4.x || >=6.0.0"
},
"peerDependencies": {
"encoding": "^0.1.0"
},
"peerDependenciesMeta": {
"encoding": {
"optional": true
}
}
},
"node_modules/node-gyp-build": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz",
"integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==",
"license": "MIT",
"optional": true,
"bin": {
"node-gyp-build": "bin.js",
"node-gyp-build-optional": "optional.js",
"node-gyp-build-test": "build-test.js"
}
},
"node_modules/normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"dev": true,
"license": "ISC",
"dependencies": {
"wrappy": "1"
}
},
"node_modules/p-limit": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"yocto-queue": "^0.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/p-locate": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
"integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
"dev": true,
"license": "MIT",
"dependencies": {
"p-limit": "^3.0.2"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/pako": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
"integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
"license": "(MIT AND Zlib)"
},
"node_modules/path-exists": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/path-is-absolute": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
"integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/pathval": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
"integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/picomatch": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8.6"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/prettier": {
"version": "2.8.7",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz",
"integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin-prettier.js"
},
"engines": {
"node": ">=10.13.0"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/randombytes": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
"integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"safe-buffer": "^5.1.0"
}
},
"node_modules/readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dev": true,
"license": "MIT",
"dependencies": {
"picomatch": "^2.2.1"
},
"engines": {
"node": ">=8.10.0"
}
},
"node_modules/regenerator-runtime": {
"version": "0.13.11",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
"integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
"license": "MIT"
},
"node_modules/require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/rpc-websockets": {
"version": "7.5.1",
"resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.5.1.tgz",
"integrity": "sha512-kGFkeTsmd37pHPMaHIgN1LVKXMi0JD782v4Ds9ZKtLlwdTKjn+CxM9A9/gLT2LaOuEcEFGL98h1QWQtlOIdW0w==",
"license": "LGPL-3.0-only",
"dependencies": {
"@babel/runtime": "^7.17.2",
"eventemitter3": "^4.0.7",
"uuid": "^8.3.2",
"ws": "^8.5.0"
},
"funding": {
"type": "paypal",
"url": "https://paypal.me/kozjak"
},
"optionalDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": "^5.0.2"
}
},
"node_modules/rpc-websockets/node_modules/ws": {
"version": "8.13.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
"license": "MIT",
"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
}
}
},
"node_modules/safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT"
},
"node_modules/serialize-javascript": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz",
"integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {
"randombytes": "^2.1.0"
}
},
"node_modules/snake-case": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz",
"integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==",
"license": "MIT",
"dependencies": {
"dot-case": "^3.0.4",
"tslib": "^2.0.3"
}
},
"node_modules/source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/source-map-support": {
"version": "0.5.21",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
"dev": true,
"license": "MIT",
"dependencies": {
"buffer-from": "^1.0.0",
"source-map": "^0.6.0"
}
},
"node_modules/string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"license": "MIT",
"dependencies": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^6.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/strip-bom": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
"integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",
"dev": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=4"
}
},
"node_modules/strip-json-comments": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/superstruct": {
"version": "0.15.5",
"resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.15.5.tgz",
"integrity": "sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==",
"license": "MIT"
},
"node_modules/supports-color": {
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
"integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
"dev": true,
"license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/supports-color?sponsor=1"
}
},
"node_modules/text-encoding-utf-8": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz",
"integrity": "sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg=="
},
"node_modules/through": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
"integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
"license": "MIT"
},
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"is-number": "^7.0.0"
},
"engines": {
"node": ">=8.0"
}
},
"node_modules/toml": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/toml/-/toml-3.0.0.tgz",
"integrity": "sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==",
"license": "MIT"
},
"node_modules/tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
"license": "MIT"
},
"node_modules/ts-mocha": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz",
"integrity": "sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==",
"dev": true,
"license": "MIT",
"dependencies": {
"ts-node": "7.0.1"
},
"bin": {
"ts-mocha": "bin/ts-mocha"
},
"engines": {
"node": ">= 6.X.X"
},
"optionalDependencies": {
"tsconfig-paths": "^3.5.0"
},
"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"
}
},
"node_modules/ts-node": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz",
"integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==",
"dev": true,
"license": "MIT",
"dependencies": {
"arrify": "^1.0.0",
"buffer-from": "^1.1.0",
"diff": "^3.1.0",
"make-error": "^1.1.1",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"source-map-support": "^0.5.6",
"yn": "^2.0.0"
},
"bin": {
"ts-node": "dist/bin.js"
},
"engines": {
"node": ">=4.2.0"
}
},
"node_modules/ts-node/node_modules/diff": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
"integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
}
},
"node_modules/tsconfig-paths": {
"version": "3.14.2",
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz",
"integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"@types/json5": "^0.0.29",
"json5": "^1.0.2",
"minimist": "^1.2.6",
"strip-bom": "^3.0.0"
}
},
"node_modules/tslib": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",
"integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==",
"license": "0BSD"
},
"node_modules/type-detect": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=4"
}
},
"node_modules/typescript": {
"version": "4.9.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=4.2.0"
}
},
"node_modules/utf-8-validate": {
"version": "5.0.10",
"resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
"integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"dependencies": {
"node-gyp-build": "^4.3.0"
},
"engines": {
"node": ">=6.14.2"
}
},
"node_modules/utf8": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz",
"integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ=="
},
"node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
"license": "BSD-2-Clause"
},
"node_modules/whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"license": "MIT",
"dependencies": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"license": "ISC",
"dependencies": {
"isexe": "^2.0.0"
},
"bin": {
"node-which": "bin/node-which"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/workerpool": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz",
"integrity": "sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==",
"dev": true,
"license": "Apache-2.0"
},
"node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
}
},
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
"dev": true,
"license": "ISC"
},
"node_modules/ws": {
"version": "7.5.9",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
"license": "MIT",
"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
}
}
},
"node_modules/y18n": {
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
"dev": true,
"license": "ISC",
"engines": {
"node": ">=10"
}
},
"node_modules/yargs": {
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
"dev": true,
"license": "MIT",
"dependencies": {
"cliui": "^7.0.2",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.0",
"y18n": "^5.0.5",
"yargs-parser": "^20.2.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/yargs-parser": {
"version": "20.2.4",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
"integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
"dev": true,
"license": "ISC",
"engines": {
"node": ">=10"
}
},
"node_modules/yargs-unparser": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz",
"integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==",
"dev": true,
"license": "MIT",
"dependencies": {
"camelcase": "^6.0.0",
"decamelize": "^4.0.0",
"flat": "^5.0.2",
"is-plain-obj": "^2.1.0"
},
"engines": {
"node": ">=10"
}
},
"node_modules/yargs/node_modules/yargs-parser": {
"version": "20.2.9",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
"dev": true,
"license": "ISC",
"engines": {
"node": ">=10"
}
},
"node_modules/yn": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz",
"integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=4"
}
},
"node_modules/yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
}
}
}
| 0
|
solana_public_repos/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/package.json
|
{
"scripts": {
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
},
"dependencies": {
"@project-serum/anchor": "^0.26.0",
"utf8": "^3.0.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/StockpileLabs
|
solana_public_repos/StockpileLabs/stockpile-v2/tsconfig.json
|
{
"compilerOptions": {
"types": ["mocha", "chai"],
"typeRoots": ["./node_modules/@types"],
"lib": ["es2015"],
"module": "commonjs",
"target": "es6",
"esModuleInterop": true
}
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2
|
solana_public_repos/StockpileLabs/stockpile-v2/migrations/deploy.ts
|
// Migrations are an early feature. Currently, they're nothing more than this
// single deploy script that's invoked from the CLI, injecting a provider
// configured from the workspace's Anchor.toml.
const anchor = require("@project-serum/anchor");
module.exports = async function (provider) {
// Configure client to use the provider.
anchor.setProvider(provider);
// Add your deploy script here.
};
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2
|
solana_public_repos/StockpileLabs/stockpile-v2/tests/stockpile-v2.ts
|
import * as anchor from "@project-serum/anchor";
import { Program } from "@project-serum/anchor";
import { StockpileV2 } from "../target/types/stockpile_v2";
import { utf8 } from "@project-serum/anchor/dist/cjs/utils/bytes";
/*
Localnet env works about half the time depending on version. These
tests are set to devnet so they'll run everytime, however this comes
with drawbacks. They're almost certain to never pass since they rely
on devnet airdrops, and you know how that goes. However we can deduce
whether they would've worked. I've skipped pre-flight on each instruction
so log will print to the console once the tests finish. 0x1 represents
"lack of funds from payer", and means the instruction would have worked
if we were on localnet, or staging with a real wallet. Additionally,
I haven't found a reliable devnet faucet for USDC, so there's another
constraint for ya.
Eventually I'll write a CI pipeline, which I anticipate will run the test
validator without fail, unlike my machine.
TLDR: These tests fail on devnet because Solana is a game of versioning
whack-a-mole. If your machine can run localnet, then do that.
*/
describe("stockpile-v2", () => {
anchor.setProvider(anchor.AnchorProvider.env());
const connection = new anchor.web3.Connection(anchor.web3.clusterApiUrl("devnet"));
const program = anchor.workspace.StockpileV2 as Program<StockpileV2>;
it("createProject", async () => {
// Generate keypairs for payer, and admins
const payer = anchor.web3.Keypair.generate();
let adminKp1 = anchor.web3.Keypair.generate();
let adminKp2 = anchor.web3.Keypair.generate();
// Fund payer account
await connection.requestAirdrop(payer.publicKey, 2);
// Generate a beneficiary keypair and random projectId
let beneficiary = anchor.web3.Keypair.generate().publicKey;
let projectId = Math.floor(10000 + Math.random() * 90000)
// Find PDA address
const [fundraiserPDA, bump] = await anchor.web3.PublicKey.findProgramAddressSync(
[utf8.encode("fundraiser"), new anchor.BN(projectId).toArrayLike(Buffer, "le", 8),],
program.programId
);
// Define dummy values
let name = "Nautilus";
let admins = [adminKp1.publicKey, adminKp2.publicKey];
let goal = 100;
// Let it fly
const tx = await program.methods.createProject(new anchor.BN(projectId), name, admins, beneficiary, new anchor.BN(goal))
.accounts({
payer: payer.publicKey,
project: fundraiserPDA,
systemProgram: anchor.web3.SystemProgram.programId
})
.signers([ payer ])
.rpc({
skipPreflight: true
});
// If it passes, we get a friendly message
console.log(`🚀 Project "${name}" Created! Transaction Hash:`, tx);
});
it("createPool", async () => {
// Generate payer keypair, and random poolId
const payer = anchor.web3.Keypair.generate();
const admin1 = anchor.web3.Keypair.generate();
const admin2 = anchor.web3.Keypair.generate();
const admin3 = anchor.web3.Keypair.generate();
let poolId = Math.floor(1 + Math.random() * 9)
// Fund payer account
await connection.requestAirdrop(payer.publicKey, 2);
// Find PDA address
const [poolPDA, bump] = await anchor.web3.PublicKey.findProgramAddressSync(
[utf8.encode("pool"), new anchor.BN(poolId).toArrayLike(Buffer, "le", 8)],
program.programId
);
// Define dummy values
let name = "Money Laundering Machine";
let start = new anchor.BN(Math.floor(Date.now() / 1000));
let end = new anchor.BN(Math.floor(Date.now() / 1000) + 30000);
let admins = [admin1.publicKey, admin2.publicKey, admin3.publicKey];
// Alea iacta est
const tx = await program.methods.createPool(
new anchor.BN(poolId),
name,
new anchor.BN(start),
new anchor.BN(end),
admins
)
.accounts({
payer: payer.publicKey,
systemProgram: anchor.web3.SystemProgram.programId,
pool: poolPDA,
})
.signers([ payer ])
.rpc({
skipPreflight: true
});
// If it passes, we get a friendly message
console.log(`👾 Funding Round "${name}" Initialized! Transaction Hash:`, tx);
});
it("createSource", async () => {
// Generate keypairs for payer, and admins
const payer = anchor.web3.Keypair.generate();
// Fund payer account
await connection.requestAirdrop(payer.publicKey, 2);
// Find PDA address
const [sourcePDA, bump] = await anchor.web3.PublicKey.findProgramAddressSync(
[utf8.encode("source"), payer.publicKey.toBuffer()],
program.programId
);
// Define dummy value
let name = "Buffalo Joe";
// Run it up
const tx = await program.methods.createSource(name)
.accounts({
payer: payer.publicKey,
source: sourcePDA,
systemProgram: anchor.web3.SystemProgram.programId
})
.signers([ payer ])
.rpc({
skipPreflight: true
});
// If it passes, we get a friendly message
console.log(`✨ Source "${name}" Created! Transaction Hash:`, tx);
});
it("joinPool", async () => {
// Generate keypairs for payer, and admins
const payer = anchor.web3.Keypair.generate();
let adminKp1 = anchor.web3.Keypair.generate();
let adminKp2 = anchor.web3.Keypair.generate();
// Fund payer account
await connection.requestAirdrop(payer.publicKey, 2);
let beneficiary = anchor.web3.Keypair.generate().publicKey;
let projectId = Math.floor(10000 + Math.random() * 90000)
// Find project PDA address
const [fundraiserPDA, fundraiserBump] = await anchor.web3.PublicKey.findProgramAddressSync(
[utf8.encode("fundraiser"), new anchor.BN(projectId).toArrayLike(Buffer, "le", 8),],
program.programId
);
// Define dummy values
let projectName = "Motherfuckin' Demons from the planet Jupiter";
let admins = [adminKp1.publicKey, adminKp2.publicKey];
let goal = 100;
// Create project
const projectTx = await program.methods.createProject(new anchor.BN(projectId), projectName, admins, beneficiary, new anchor.BN(goal))
.accounts({
payer: payer.publicKey,
project: fundraiserPDA,
systemProgram: anchor.web3.SystemProgram.programId
})
.signers([ payer ])
.rpc({
skipPreflight: true
});
let poolId = Math.floor(1 + Math.random() * 9);
// Find pool PDA address
const [poolPDA, poolBump] = await anchor.web3.PublicKey.findProgramAddressSync(
[utf8.encode("pool"), new anchor.BN(poolId).toArrayLike(Buffer, "le", 8)],
program.programId
);
// Define more dummy values
let poolName = "Dill Clyntin";
let start = new anchor.BN(Math.floor(Date.now() / 1000));
let end = new anchor.BN(Math.floor(Date.now() / 1000) + 30000);
// Create a pool
const poolTx = await program.methods.createPool(
new anchor.BN(poolId),
poolName,
new anchor.BN(start),
new anchor.BN(end),
admins
)
.accounts({
payer: payer.publicKey,
systemProgram: anchor.web3.SystemProgram.programId,
pool: poolPDA,
})
.signers([ payer ])
.rpc({
skipPreflight: true
});
// Fire when ready captain
const tx = await program.methods.joinPool(new anchor.BN(projectId), new anchor.BN(poolId))
.accounts({
payer: payer.publicKey,
pool: poolPDA,
project: fundraiserPDA,
systemProgram: anchor.web3.SystemProgram.programId
})
.signers([ payer ])
.rpc({
skipPreflight: true
});
// If it passes, we get a friendly message
console.log(`
✨ Pool "${poolName}" Joined w/ Project "${projectName}"!
Project Tx Hash: ${projectTx},
Pool Tx Hash: ${poolTx},
Join Tx Hash: ${tx}
`);
});
});
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/Cargo.toml
|
[package]
name = "stockpile-trusts"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "stockpile_trusts"
[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
[dependencies]
anchor-lang = { version = "0.28.0", features = ["init-if-needed"] }
anchor-spl = "0.28.0"
klend = "0.1.0"
stockpile-v2 = { path = "../stockpile-v2", features = ["cpi"]}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/util.rs
|
use anchor_lang::prelude::*;
use anchor_lang::system_program;
use std::str::FromStr;
use crate::error::VaultError;
pub const MAX_NAME_LEN: usize = 100;
pub const MAX_ADMIN_LEN: usize = 4;
pub const STOCKPILE_PROGRAM_ID: &str = "STKUaKniasuqrfer3XNbmrrc578pkL1XACdK8H3YPu8";
pub const KAMINO_PROGRAM_ID: &str = "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
pub const USDC_MINT: &str = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
pub const USDC_DEVNET_MINT: &str = "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
pub const SUPPORTED_SPL_MINTS: [&'static str; 2] = [USDC_MINT, USDC_DEVNET_MINT];
pub fn to_pubkey(string: &str) -> Pubkey {
Pubkey::from_str(&string).expect("Error parsing public key from string.")
}
pub fn mint_is_supported(mint_pubkey: &Pubkey) -> Result<()> {
for suppported_mint in SUPPORTED_SPL_MINTS {
if to_pubkey(suppported_mint).eq(mint_pubkey) {
return Ok(());
}
}
Err(VaultError::MintNotSupported.into())
}
pub fn set_and_maybe_realloc<'info, T>(
account: &mut Account<'info, T>,
new_data: &T,
payer: AccountInfo<'info>,
system_program: AccountInfo<'info>,
) -> Result<()>
where
T: AccountDeserialize
+ AccountSerialize
+ borsh::BorshDeserialize
+ borsh::BorshSerialize
+ Clone + anchor_lang::Owner,
{
let account_info = account.to_account_info();
// See if it needs to be reallocated
let new_account_size = (new_data.try_to_vec()?).len();
if new_account_size > account_info.data_len() {
// Determine additional rent required
let lamports_required = (Rent::get()?).minimum_balance(new_account_size);
let additional_rent_to_fund = lamports_required - account_info.lamports();
// Perform transfer of additional rent
system_program::transfer(
CpiContext::new(
system_program,
system_program::Transfer {
from: payer,
to: account_info.clone(),
},
),
additional_rent_to_fund,
)?;
// Serialize new data
account_info.realloc(new_account_size, false)?;
}
account.set_inner(new_data.clone());
Ok(())
}
#[derive(Clone)]
pub struct KLend;
impl anchor_lang::Id for KLend {
fn id() -> Pubkey {
Pubkey::from_str(KAMINO_PROGRAM_ID).unwrap()
}
}
#[derive(Clone)]
pub struct Stockpile;
impl anchor_lang::Id for Stockpile {
fn id() -> Pubkey {
Pubkey::from_str(STOCKPILE_PROGRAM_ID).unwrap()
}
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/error.rs
|
use anchor_lang::prelude::*;
#[error_code]
pub enum VaultError {
#[msg("Attempting to withdraw from vault with account that is not the authority")]
WrongVaultAuthority,
#[msg("The project account provided is invalid")]
ProjectAccountInvalid,
#[msg("This mint is not current supported")]
MintNotSupported,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/lib.rs
|
use anchor_lang::prelude::*;
pub mod instructions;
pub mod util;
pub mod state;
pub mod error;
pub use instructions::*;
use crate::state::vault::*;
declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
#[program]
pub mod stockpile_trusts {
use super::*;
pub fn initialize_vault(ctx: Context<InitializeVault>, vault_id: u64, protocol: Protocols, interval: Intervals, initial_amount: u64, projects: Vec<Pubkey>, mint: Pubkey) -> Result<()> {
instructions::init(ctx, vault_id, protocol, interval, initial_amount, projects, mint)
}
pub fn deposit(ctx: Context<Deposit>, project_id: u64, amount: u64) -> Result<()> {
instructions::deposit(ctx, project_id, amount)
}
pub fn withdraw_and_close(ctx: Context<Withdraw>, project_id: u64, amount: u64) -> Result<()> {
instructions::withdraw(ctx, project_id, amount)
}
}
#[derive(Accounts)]
pub struct Initialize {}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/instructions/withdraw.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use stockpile_v2::{cpi::*, state::project::Project};
use klend::*;
use crate::{error::VaultError, util::{KLend, Stockpile}, YieldVault};
pub fn withdraw(
ctx: Context<Withdraw>,
_project_id: u64,
amount: u64
) -> Result<()> {
let project_accounts = ctx.remaining_accounts;
// Create Kamino CPI context
let cpi_ctx: CpiContext<'_, '_, '_, '_, klend::cpi::accounts::RedeemReserveCollateral<'_>> = CpiContext::new(
ctx.accounts.kamino_program.to_account_info(),
cpi::accounts::RedeemReserveCollateral {
owner: ctx.accounts.payer.to_account_info(),
reserve: ctx.accounts.reserve.to_account_info(),
reserve_collateral_mint: ctx.accounts.mint.to_account_info(),
lending_market: ctx.accounts.lending_market.to_account_info(),
lending_market_authority: ctx.accounts.lending_market_authority.to_account_info(),
reserve_liquidity_supply: ctx.accounts.reserve_liquidity_supply.to_account_info(),
user_source_collateral: ctx.accounts.payer_token_account.to_account_info(),
user_destination_liquidity: ctx.accounts.payer_token_account.to_account_info(),
token_program: ctx.accounts.token_program.to_account_info()
},
);
// Redeem Kamino funds
cpi::redeem_reserve_collateral(cpi_ctx, amount)
.map_err(|_e| {
msg!("Kamino redemption failed.");
VaultError::WrongVaultAuthority
})?;
// TO-DO: Convert the below into a loop that runs through
// the "project_accounts", validates that they are indeed
// project accounts, creates CPI context, invokes, and maybe
// enforces a max account limit so it doesn't overrun the 1232 limit.
// Create Stockpile CPI context
let contribute_ctx: CpiContext<'_, '_, '_, '_, stockpile_v2::cpi::accounts::Contribute<'_>> = CpiContext::new(
ctx.accounts.stockpile_program.to_account_info(),
stockpile_v2::cpi::accounts::Contribute {
project: ctx.accounts.project.to_account_info(),
payer: ctx.accounts.payer.to_account_info(),
mint: ctx.accounts.mint.to_account_info(),
project_token_account: ctx.accounts.project_token_account.to_account_info(),
payer_token_account: ctx.accounts.payer_token_account.to_account_info(),
system_program: ctx.accounts.system_program.to_account_info(),
token_program: ctx.accounts.token_program.to_account_info(),
associated_token_program: ctx.accounts.associated_token_program.to_account_info()
}
);
// Contribute to Stockpile project
contribute(contribute_ctx, _project_id, amount)
.map_err(|_e| {
msg!("Kamino redemption failed.");
VaultError::ProjectAccountInvalid
})?;
Ok(())
}
#[derive(Accounts)]
#[instruction(
project_id: u64,
)]
pub struct Withdraw<'info> {
#[account(mut)]
pub vault: Account<'info, YieldVault>,
#[account(mut)]
pub project: Account<'info, Project>,
#[account(mut)]
pub project_token_account: Account<'info, token::TokenAccount>,
#[account(mut)]
pub lending_market: AccountInfo<'info>,
#[account(mut)]
pub lending_market_authority: AccountInfo<'info>,
pub mint: Account<'info, token::Mint>,
#[account(mut)]
pub reserve_liquidity_supply: AccountInfo<'info>,
#[account(mut)]
pub reserve: AccountInfo<'info>,
pub payer: Signer<'info>,
#[account(
mut,
constraint = payer_token_account.owner == payer.key()
)]
pub payer_token_account: Account<'info, token::TokenAccount>,
pub stockpile_program: Program<'info, Stockpile>,
pub kamino_program: Program<'info, KLend>,
pub clock: Sysvar<'info, Clock>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/instructions/deposit.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use klend::*;
use crate::{error::VaultError, util::KLend};
pub fn deposit(
ctx: Context<Deposit>,
_project_id: u64,
amount: u64
) -> Result<()> {
// Check to make sure the token is supported
let cpi_ctx: CpiContext<'_, '_, '_, '_, klend::cpi::accounts::DepositReserveLiquidity<'_>> = CpiContext::new(
ctx.accounts.kamino_program.to_account_info(),
cpi::accounts::DepositReserveLiquidity {
owner: ctx.accounts.payer.to_account_info(),
reserve: ctx.accounts.reserve.to_account_info(),
reserve_collateral_mint: ctx.accounts.mint.to_account_info(),
lending_market: ctx.accounts.lending_market.to_account_info(),
lending_market_authority: ctx.accounts.lending_market_authority.to_account_info(),
reserve_liquidity_supply: ctx.accounts.reserve_liquidity_supply.to_account_info(),
user_source_liquidity: ctx.accounts.payer_token_account.to_account_info(),
user_destination_collateral: ctx.accounts.payer_token_account.to_account_info(),
token_program: ctx.accounts.token_program.to_account_info()
},
);
cpi::deposit_reserve_liquidity(cpi_ctx, amount)
.map_err(|_e| {
msg!("Kamino deposit failed.");
VaultError::WrongVaultAuthority
})?;
Ok(())
}
#[derive(Accounts)]
#[instruction(
project_id: u64,
)]
pub struct Deposit<'info> {
pub lending_market: AccountInfo<'info>,
pub lending_market_authority: AccountInfo<'info>,
pub mint: Account<'info, token::Mint>,
pub reserve_liquidity_supply: AccountInfo<'info>,
pub reserve: AccountInfo<'info>,
#[account(mut)]
pub payer: Signer<'info>,
pub payer_token_account: Account<'info, token::TokenAccount>,
pub kamino_program: Program<'info, KLend>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/instructions/mod.rs
|
pub mod deposit;
pub mod withdraw;
pub mod init;
pub use deposit::*;
pub use withdraw::*;
pub use init::*;
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/instructions/init.rs
|
use anchor_lang::prelude::*;
use crate::{Protocols, Intervals, YieldVault};
pub fn init(
ctx: Context<InitializeVault>,
_vault_id: u64,
protocol: Protocols,
interval: Intervals,
initial_amount: u64,
projects: Vec<Pubkey>,
mint: Pubkey,
) -> Result<()> {
ctx.accounts.vault.set_inner(
YieldVault::new(
protocol,
interval,
initial_amount,
_vault_id,
projects,
mint,
*ctx.bumps
.get("project")
.expect("Failed to derive bump for `project`"),
)?
);
Ok(())
}
#[derive(Accounts)]
#[instruction(
vault_id: u64,
)]
pub struct InitializeVault<'info> {
#[account(
init,
payer = payer,
space = YieldVault::SPACE,
seeds = [
YieldVault::SEED_PREFIX.as_bytes(),
vault_id.to_le_bytes().as_ref(),
payer.key().as_ref()
],
bump,
)]
pub vault: Account<'info, YieldVault>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/state/mod.rs
|
pub mod vault;
pub use vault::*;
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-trusts/src/state/vault.rs
|
use anchor_lang::prelude::*;
#[account]
pub struct YieldVault {
pub protocol: Protocols,
pub interval: Intervals,
pub initial_amount: u64,
pub vault_id: u64,
pub projects: Vec<Pubkey>,
pub mint: Pubkey,
pub bump: u8,
}
impl YieldVault {
pub const SEED_PREFIX: &'static str = "yield_vault";
pub const SPACE: usize = 8
+ 4 // u64
+ 4 // String
+ 4 // u64
+ 4 // u64
+ 4 // u64
+ 1 // u8
+ 160 // Vec<Pubkey> (Max 5)
+ 32 // Pubkey
+ 1 // u8
+ 4 // Enum (Singleton)
+ 250; // Padding
pub fn new(protocol: Protocols, interval: Intervals, initial_amount: u64, vault_id: u64, projects: Vec<Pubkey>, mint: Pubkey, bump: u8) -> Result<Self> {
Ok(Self {
protocol,
interval,
initial_amount,
vault_id,
projects,
mint,
bump
})
}
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)]
pub enum Protocols {
Kamino,
}
impl Default for Protocols {
fn default() -> Self {
Protocols::Kamino
}
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)]
pub enum Intervals {
Weekly,
Monthly
}
impl Default for Intervals {
fn default() -> Self {
Intervals::Weekly
}
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/Cargo.toml
|
[package]
name = "stockpile-v2"
version = "0.1.0"
description = "Funding Without Barriers."
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "stockpile_v2"
[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
[dependencies]
anchor-lang = { version = "0.28.0", features = ["init-if-needed"] }
anchor-spl = "0.28.0"
pyth-sdk-solana = "0.8.0"
solana-program = "=1.16.17"
winnow = "=0.4.1"
toml_datetime="=0.6.1"
solana-gateway = { version = "0.4.0", features = ["no-entrypoint"] }
solana-security-txt = "1.1.1"
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/util.rs
|
use anchor_lang::prelude::*;
use anchor_lang::system_program;
use std::str::FromStr;
use crate::error::ProtocolError;
pub const MAX_NAME_LEN: usize = 100;
pub const MAX_ADMIN_LEN: usize = 4;
pub const USDC_MINT: &str = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
pub const USDC_DEVNET_MINT: &str = "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
pub const SOL_USD_PRICE_FEED_ID: &str = "ALP8SdU9oARYVLgLR7LrqMNCYBnhtnQz1cj6bwgwQmgj";
// THIS IS MAINNET
pub const USDC_USD_PRICE_FEED_ID: &str = "Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD";
//THIS IS DEVNET
//pub const USDC_USD_PRICE_FEED_ID: &str = "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7";
pub const SUPPORTED_SPL_MINTS: [&'static str; 2] = [USDC_MINT, USDC_DEVNET_MINT];
pub fn to_pubkey(string: &str) -> Pubkey {
Pubkey::from_str(&string).expect("Error parsing public key from string.")
}
pub fn mint_is_supported(mint_pubkey: &Pubkey) -> Result<()> {
for suppported_mint in SUPPORTED_SPL_MINTS {
if to_pubkey(suppported_mint).eq(mint_pubkey) {
return Ok(());
}
}
Err(ProtocolError::MintNotSupported.into())
}
pub fn set_and_maybe_realloc<'info, T>(
account: &mut Account<'info, T>,
new_data: &T,
payer: AccountInfo<'info>,
system_program: AccountInfo<'info>,
) -> Result<()>
where
T: AccountDeserialize
+ AccountSerialize
+ borsh::BorshDeserialize
+ borsh::BorshSerialize
+ Clone + anchor_lang::Owner,
{
let account_info = account.to_account_info();
// See if it needs to be reallocated
let new_account_size = (new_data.try_to_vec()?).len();
if new_account_size > account_info.data_len() {
// Determine additional rent required
let lamports_required = (Rent::get()?).minimum_balance(new_account_size);
let additional_rent_to_fund = lamports_required - account_info.lamports();
// Perform transfer of additional rent
system_program::transfer(
CpiContext::new(
system_program,
system_program::Transfer {
from: payer,
to: account_info.clone(),
},
),
additional_rent_to_fund,
)?;
// Serialize new data
account_info.realloc(new_account_size, false)?;
}
//account.set_inner(new_data);
Ok(())
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/error.rs
|
use anchor_lang::prelude::*;
#[error_code]
pub enum ProtocolError {
#[msg("The Pyth account provided is invalid")]
PythAccountInvalid,
#[msg("Failed to load price feed from Pyth account")]
PythPriceFeedLoadFailed,
#[msg("Failed to price from Pyth price feed. Perhaps price was too old")]
PythPriceFeedPriceFailed,
#[msg("Failed to load Civic Pass credentials.")]
CivicFailure,
#[msg("Provided SPL Mint not supported")]
MintNotSupported,
#[msg("The provided name string should be a maximum of 50 characters long")]
NameTooLong,
#[msg("This pool has already transferred the funds to the receiver")]
ReleasedFunds,
#[msg("This project is not currently apart of this pool.")]
NotInPool,
#[msg("This pool has already been cancelled")]
PoolClosed,
#[msg("This pool is still active")]
PoolStillActive,
#[msg("A pool can't be created with a start time that's passed")]
PoolInvalidStart,
#[msg("The pool has not begun its funding round yet")]
PoolNotStarted,
#[msg("Tried to add a fundraiser to pool when config is set to Open")]
MismatchedConfig,
#[msg("The end date has already passed")]
EndDatePassed,
#[msg("Extend date is less than the current configured end date")]
ExtendDateInvalid,
#[msg("An error occurred in the quadratic funding algorithm")]
AlgorithmFailure,
#[msg("This project is currently inactive.")]
DeactivatedProject,
#[msg("This milestone is currently closed.")]
ClosedMilestone,
#[msg("This milestone is still open.")]
OpenMilestone,
#[msg("This milestone is being reconciled.")]
MilestoneIsReconciling,
#[msg("This project has been closed by a registered admin.")]
ClosedProject,
#[msg("This key is not authorized to make changes to this account.")]
NotAuthorized,
#[msg("This fundraiser is already entered in the current funding round.")]
AlreadyEntered,
#[msg("This project has already claimed their grant.")]
AlreadyClaimed,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/lib.rs
|
/*
█████╗█████╗█████╗
╚════╝╚════╝╚════╝
███████╗████████╗ ██████╗ ██████╗██╗ ██╗██████╗ ██╗██╗ ███████╗
██╔════╝╚══██╔══╝██╔═══██╗██╔════╝██║ ██╔╝██╔══██╗██║██║ ██╔════╝
███████╗ ██║ ██║ ██║██║ █████╔╝ ██████╔╝██║██║ █████╗
╚════██║ ██║ ██║ ██║██║ ██╔═██╗ ██╔═══╝ ██║██║ ██╔══╝
███████║ ██║ ╚██████╔╝╚██████╗██║ ██╗██║ ██║███████╗███████╗
╚══════╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝
█████╗█████╗█████╗
╚════╝╚════╝╚════╝
Copyright 2023 Stockpile Labs,
www.stockpile.so
www.twitter.com/GoStockpile
DISCLAIMER:
This code is currently unaudited, while reusing
and duplication are allowed, please do so at your
own risk. Please consult the license for more information.
*/
use anchor_lang::prelude::*;
pub mod error;
pub mod instructions;
pub mod state;
pub mod util;
pub use instructions::*;
use crate::state::pool::*;
use crate::state::project::*;
use solana_security_txt::security_txt;
#[cfg(not(feature = "no-entrypoint"))]
security_txt! {
name: "Stockpile V2",
project_url: "http://stockpile.so",
contacts: "email:joey@stockpile.so,discord:0xsavant",
policy: "https://github.com/StockpileLabs/stockpile-v2/blob/master/SECURITY.md",
preferred_languages: "en",
source_code: "https://github.com/StockpileLabs/stockpile-v2"
}
declare_id!("STKUaKniasuqrfer3XNbmrrc578pkL1XACdK8H3YPu8");
#[program]
pub mod stockpile_v2 {
use super::*;
pub fn create_project(
ctx: Context<CreateProject>,
project_id: u64,
name: String,
admins: Vec<Pubkey>,
beneficiary: Pubkey,
goal: u64,
) -> Result<()> {
instructions::create_project(ctx, project_id, name, admins, beneficiary, goal)
}
pub fn create_pool(
ctx: Context<CreatePool>,
pool_id: u64,
name: String,
start: u64,
end: u64,
admins: Vec<Pubkey>,
access: PoolAccess
) -> Result<()> {
instructions::create_pool(ctx, pool_id, name, start, end, admins, access)
}
pub fn create_source(
ctx: Context<CreateSource>,
name: String,
pool_id: u64,
amount: u64,
) -> Result<()> {
instructions::create_source(ctx, name, pool_id, amount)
}
pub fn create_milestone(
ctx: Context<CreateMilestone>,
milestone_id: u64,
name: String,
percentage: f64,
) -> Result<()> {
instructions::create_milestone(ctx, milestone_id, name, percentage)
}
pub fn contribute(
ctx: Context<Contribute>,
_project_id: u64,
amount: u64,
) -> Result<()> {
instructions::contribute(ctx, _project_id, amount)
}
pub fn contribute_with_vote(
ctx: Context<ContributeWithVote>,
_pool_id: u64,
_project_id: u64,
amount: u64,
) -> Result<()> {
instructions::contribute_with_vote(ctx, _pool_id, _project_id, amount)
}
pub fn deactivate_project(
ctx: Context<DeactivateProject>,
) -> Result<()> {
instructions::deactivate_project(ctx)
}
pub fn add_project(
ctx: Context<AddProject>,
_project_id: u64,
_pool_id: u64,
) -> Result<()> {
instructions::add_project(ctx, _project_id, _pool_id)
}
pub fn join_pool(
ctx: Context<JoinPool>,
_project_id: u64,
_pool_id: u64,
) -> Result<()> {
instructions::join_pool(ctx, _project_id, _pool_id)
}
pub fn fund_pool(
ctx: Context<FundPool>,
_pool_id: u64,
amount: u64,
) -> Result<()> {
instructions::fund_pool(ctx, _pool_id, amount)
}
pub fn withdraw(
ctx: Context<Withdraw>,
amount: u64,
) -> Result<()> {
instructions::withdraw(ctx, amount)
}
pub fn withdraw_all(
ctx: Context<WithdrawAll>
) -> Result<()> {
instructions::withdraw_all(ctx)
}
pub fn close_project(
ctx: Context<CloseProject>
) -> Result<()> {
instructions::close_project(ctx)
}
pub fn close_milestone(
ctx: Context<CloseMilestone>
) -> Result<()> {
instructions::close_milestone(ctx)
}
pub fn claim_payout(
ctx: Context<ClaimPayout>,
_project_id: u64,
_pool_id: u64,
) -> Result<()> {
instructions::claim_payout(ctx, _project_id, _pool_id)
}
pub fn withdraw_funds_from_round(
ctx: Context<WithdrawFromRound>,
_pool_id: u64
) -> Result<()> {
instructions::withdraw_funds_from_round(ctx, _pool_id)
}
pub fn update_project(
ctx: Context<UpdateProject>,
_project_id: u64,
update: UpdateField,
) -> Result<()> {
instructions::update_project(ctx, _project_id, update)
}
pub fn update_pool(
ctx: Context<UpdatePool>,
_pool_id: u64,
update: UpdatePoolField,
) -> Result<()> {
instructions::update_pool(ctx, _pool_id, update)
}
pub fn extend_pool_duration(
ctx: Context<ExtendPool>,
_pool_id: u64,
new_end_date: u64,
) -> Result<()> {
instructions::extend_pool_duration(ctx, _pool_id, new_end_date)
}
pub fn extend_pool_start(
ctx: Context<ExtendPoolStart>,
_pool_id: u64,
new_start_date: u64,
) -> Result<()> {
instructions::extend_pool_start(ctx, _pool_id, new_start_date)
}
pub fn realloc_pool(
ctx: Context<ReallocPool>,
_pool_id: u64,
) -> Result<()> {
instructions::realloc_pool(ctx, _pool_id)
}
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/extend_pool_start.rs
|
use anchor_lang::prelude::*;
use crate::{state::pool::*, error::ProtocolError};
/// Extends the duration of the pool by
/// updating it's end field with a new timestamp.
/// This instruction can only extend a pool, not shorten.
pub fn extend_pool_start(
ctx: Context<ExtendPoolStart>,
_pool_id: u64,
new_start_date: u64,
) -> Result<()> {
let pool = &mut ctx.accounts.pool;
let payer = &ctx.accounts.payer;
require!(pool.admins.contains(&payer.key()), ProtocolError::NotAuthorized);
pool.start = new_start_date;
Ok(())
}
#[derive(Accounts)]
#[instruction(
pool_id: u64,
_new_start_date: u64,
)]
pub struct ExtendPoolStart<'info> {
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/resolve_milestone.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use crate::error::ProtocolError;
use crate::state::{
pool::*,
project::*,
};
/// Setup for milestone resolution. This sends the proportion of project funds
/// put up in the milestone to a Squads multisig for final resolution.
pub fn resolve_milestone(
ctx: Context<ResolveMilestone>,
_project_id: u64,
goal: u64,
percentage: f64,
) -> Result<()> {
let payer_key = &mut ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
let current_time = Clock::get()?.unix_timestamp as u64;
mint_is_supported(&ctx.accounts.mint.key())?;
project.is_active()?;
if project.admins.contains(&payer_key) {
token::transfer(
CpiContext::new(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.project_token_account.to_account_info(),
to: ctx.accounts.squad_token_account.to_account_info(),
authority: ctx.accounts.payer.to_account_info(),
},
),
goal * percentage,
)?;
} else {
return Err(ProtocolError::NotAuthorized.into());
};
Ok(())
}
#[derive(Accounts)]
#[instruction(
project_id: u64,
percentage: f64,
)]
pub struct ResolveMilestone<'info> {
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
/// CHECK: This is safe because we aren't writing to this account
pub squad: AccountInfo<'info>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = project,
)]
pub project_token_account: Account<'info, token::TokenAccount>,
#[account(
mut,
token::mint = mint,
token::authority = squad,
)]
pub squad_token_account: Account<'info, token::TokenAccount>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/extend_pool_duration.rs
|
use anchor_lang::prelude::*;
use crate::{state::pool::*, error::ProtocolError};
/// Extends the duration of the pool by
/// updating it's end field with a new timestamp.
/// This instruction can only extend a pool, not shorten.
pub fn extend_pool_duration(
ctx: Context<ExtendPool>,
_pool_id: u64,
new_end_date: u64,
) -> Result<()> {
let pool = &mut ctx.accounts.pool;
let payer = &ctx.accounts.payer;
require!(pool.admins.contains(&payer.key()), ProtocolError::NotAuthorized);
pool.extend_pool_duration(new_end_date)
.expect("Failed to update end date.");
Ok(())
}
#[derive(Accounts)]
#[instruction(
pool_id: u64,
_new_end_date: u64,
)]
pub struct ExtendPool<'info> {
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/close_milestone.rs
|
use anchor_lang::prelude::*;
use crate::{state::{
milestone::*,
project::*,
}, error::ProtocolError};
/// Closes a 'Milestone'
pub fn close_milestone(
ctx: Context<CloseMilestone>,
) -> Result<()> {
let payer_key = &mut ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
let milestone = &mut ctx.accounts.milestone;
milestone.is_active()?;
if project.admins.contains(&payer_key) {
milestone.status = MilestoneStatus::Closed;
} else {
return Err(ProtocolError::NotAuthorized.into());
}
Ok(())
}
#[derive(Accounts)]
pub struct CloseMilestone<'info> {
#[account(
seeds = [
Milestone::SEED_PREFIX.as_bytes(),
milestone.name.as_ref(),
milestone.milestone_id.to_le_bytes().as_ref(),
project.key().as_ref(),
],
bump = milestone.bump,
)]
pub milestone: Account<'info, Milestone>,
#[account(mut)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/withdraw.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use crate::error::ProtocolError;
use crate::state::project::*;
/// Withdraws a specified amount of USDC from the vault
/// and sends to the beneficiary. Requires that the payer
/// be a fundraiser admin.
pub fn withdraw(ctx: Context<Withdraw>, amount: u64) -> Result<()> {
let payer_key = ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
// Check to make sure caller is an admin
require!(project.admins.contains(&payer_key), ProtocolError::NotAuthorized);
let bump = project.bump.to_le_bytes();
let id_ref = project.project_id.to_le_bytes();
let seeds = vec![Project::SEED_PREFIX.as_bytes(), id_ref.as_ref(), &bump];
let signer_seeds = vec![seeds.as_slice()];
token::transfer(
CpiContext::new_with_signer(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.project_token_account.to_account_info(),
to: ctx.accounts.beneficiary_token_account.to_account_info(),
authority: project.to_account_info(),
},
&signer_seeds
),
amount,
)?;
//project.balance -= amount;
Ok(())
}
#[derive(Accounts)]
#[instruction(
_amount: u64,
)]
pub struct Withdraw<'info> {
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(mut, constraint = beneficiary.key() == project.beneficiary)]
/// CHECK: This account is safe because we don't write to it
pub beneficiary: AccountInfo<'info>,
#[account(
mut,
token::mint = mint,
token::authority = beneficiary,
)]
pub beneficiary_token_account: Account<'info, token::TokenAccount>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = project,
)]
pub project_token_account: Account<'info, token::TokenAccount>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/create_source.rs
|
use anchor_lang::prelude::*;
use crate::state::source::*;
pub fn create_source(
ctx: Context<CreateSource>,
name: String,
pool_id: u64,
amount: u64,
) -> Result<()> {
ctx.accounts.source.set_inner(
FundingSource::new(
name,
ctx.accounts.payer.key(),
pool_id,
amount,
*ctx.bumps
.get("source")
.expect("Failed to derive bump for `source`"),
)?
);
Ok(())
}
#[derive(Accounts)]
#[instruction(
name: String,
_pool_id: u64,
amount: u64,
)]
pub struct CreateSource<'info> {
#[account(
init,
space = FundingSource::SPACE,
payer = payer,
seeds = [
FundingSource::SEED_PREFIX.as_bytes(),
name.as_ref(),
_pool_id.to_le_bytes().as_ref(),
amount.to_le_bytes().as_ref(),
payer.key().as_ref(),
],
bump,
)]
pub source: Account<'info, FundingSource>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/claim_payout.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use crate::error::ProtocolError;
use crate::state::{
pool::*,
project::*,
};
/// Claim's a project's payout from a pool
/// that has completed.
pub fn claim_payout(
ctx: Context<ClaimPayout>,
_project_id: u64,
_pool_id: u64,
) -> Result<()> {
let payer_key = &mut ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
let pool = &mut ctx.accounts.pool;
let current_time = Clock::get()?.unix_timestamp as u64;
let mut pool_data = pool.clone().into_inner();
project.is_active()?;
require!(current_time > pool.end, ProtocolError::PoolStillActive);
require!(project.admins.contains(&payer_key), ProtocolError::NotAuthorized);
if let Some(participant) = pool_data.project_shares.iter_mut().find(|p| p.project_key == project.key()) {
require!(participant.claimed == false, ProtocolError::AlreadyClaimed);
let payout = participant.share_data.share * pool.total_funding as f64;
let mut adj_payout = payout as u64;
msg!("Payout for {:?} is {:?}", project.key(), payout);
let bump = pool.bump.to_le_bytes();
let id_ref = pool.pool_id.to_le_bytes();
let seeds = vec![Pool::SEED_PREFIX.as_bytes(), id_ref.as_ref(), &bump];
let signer_seeds = vec![seeds.as_slice()];
token::transfer(
CpiContext::new_with_signer(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.pool_token_account.to_account_info(),
to: ctx.accounts.project_token_account.to_account_info(),
authority: pool.to_account_info(),
},
&signer_seeds
),
adj_payout,
)?;
if let Some(original_participant) = pool.project_shares.iter_mut().find(|p| p.project_key == participant.project_key) {
original_participant.claimed = true;
};
adj_payout *= 10_u64.pow(6) as u64;
project.raised += adj_payout;
project.balance += adj_payout;
} else {
return Err(ProtocolError::NotInPool.into());
};
Ok(())
}
#[derive(Accounts)]
#[instruction(
pool_id: u64,
project_id: u64,
)]
pub struct ClaimPayout<'info> {
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
pool.pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = project,
)]
pub project_token_account: Account<'info, token::TokenAccount>,
#[account(
mut,
token::mint = mint,
token::authority = pool,
)]
pub pool_token_account: Account<'info, token::TokenAccount>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/add_project.rs
|
use anchor_lang::prelude::*;
use crate::error::ProtocolError;
use crate::state::{
pool::*,
project::*,
};
// Adds a fundraiser to a funding round
// This requires the instruction to be called
// by a registered admin of the pool
pub fn add_project(ctx: Context<AddProject>, _project_id: u64, _pool_id: u64) -> Result<()> {
let payer_key = ctx.accounts.payer.key();
let project_key = ctx.accounts.project.key();
let pool_data = ctx.accounts.pool.clone().into_inner();
// Pool access control check
require!(pool_data.admins.contains(&payer_key), ProtocolError::NotAuthorized);
// Check to make sure the pool is not closed
ctx.accounts.pool.can_fund()?;
// Check to make sure the fundraiser isnt already in the pool
if pool_data.project_shares.iter().any(|p| p.project_key == project_key) {
return Err(ProtocolError::AlreadyEntered.into());
}
if pool_data.pool_access == PoolAccess::Manual {
ctx.accounts.pool
.add_participant(project_key)
.expect("Failed to add project.");
msg!(
"Fundraiser successfully entered with data: {:?}",
project_key.to_string()
);
} else {
// Return an error if the PoolAccess is set to open
// The fundraiser can just join themselves if they'd like
return Err(ProtocolError::MismatchedConfig.into());
}
Ok(())
}
#[derive(Accounts)]
#[instruction(
_project_id: u64,
_pool_id: u64,
)]
pub struct AddProject<'info> {
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
_pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/update_pool.rs
|
use anchor_lang::prelude::*;
use crate::{state::pool::*, error::ProtocolError};
/// Updates a pool, given a specific field
pub fn update_pool(
ctx: Context<UpdatePool>,
_pool_id: u64,
update_field: UpdatePoolField,
) -> Result<()> {
let payer_key = &mut ctx.accounts.payer.key();
let pool = &mut ctx.accounts.pool;
require!(pool.admins.contains(&payer_key), ProtocolError::NotAuthorized);
match update_field {
UpdatePoolField::Name(new_name) => pool.name = new_name,
UpdatePoolField::AddAdmin(new_admin) => {
if !pool.admins.contains(&new_admin) {
pool.admins.push(new_admin);
}
},
UpdatePoolField::RemoveAdmin(admin_to_remove) => {
pool.admins.retain(|&admin| admin != admin_to_remove);
},
UpdatePoolField::Approval(new_approval) => pool.pool_access = new_approval,
UpdatePoolField::Status(new_status) => pool.pool_state = new_status,
};
Ok(())
}
#[derive(Accounts)]
#[instruction(
_pool_id: u64,
)]
pub struct UpdatePool<'info> {
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
_pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/mod.rs
|
pub mod add_project;
pub mod close_milestone;
pub mod close_project;
pub mod contribute;
pub mod contribute_with_vote;
pub mod create_milestone;
pub mod create_pool;
pub mod create_project;
pub mod create_source;
pub mod deactivate_project;
pub mod fund_pool;
pub mod join_pool;
pub mod withdraw;
pub mod withdraw_all;
pub mod claim_payout;
pub mod withdraw_funds_from_round;
pub mod update_project;
pub mod extend_pool_duration;
pub mod extend_pool_start;
pub mod update_pool;
pub mod realloc_pool;
pub use add_project::*;
pub use close_milestone::*;
pub use close_project::*;
pub use contribute::*;
pub use contribute_with_vote::*;
pub use create_milestone::*;
pub use create_pool::*;
pub use create_project::*;
pub use create_source::*;
pub use deactivate_project::*;
pub use fund_pool::*;
pub use join_pool::*;
pub use withdraw::*;
pub use withdraw_all::*;
pub use claim_payout::*;
pub use withdraw_funds_from_round::*;
pub use update_project::*;
pub use update_pool::*;
pub use extend_pool_duration::*;
pub use extend_pool_start::*;
pub use realloc_pool::*;
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/create_project.rs
|
use anchor_lang::prelude::*;
use crate::state::project::*;
/// Creates a `Project` for a project.
/// This project can be re-entered in funding rounds and
/// only needs to be created as a `Project` once.
pub fn create_project(
ctx: Context<CreateProject>,
project_id: u64,
name: String,
mut admins: Vec<Pubkey>,
beneficiary: Pubkey,
goal: u64,
) -> Result<()> {
if admins.len() == 0 {
//Add beneficiary to admin vec
admins.push(ctx.accounts.payer.key());
ctx.accounts.project.set_inner(
Project::new(
project_id,
name,
admins,
goal,
beneficiary,
*ctx.bumps
.get("project")
.expect("Failed to derive bump for `project`"),
)?
);
} else {
ctx.accounts.project.set_inner(
Project::new(
project_id,
name,
admins,
goal,
beneficiary,
*ctx.bumps
.get("project")
.expect("Failed to derive bump for `project`"),
)?
);
}
Ok(())
}
#[derive(Accounts)]
#[instruction(
project_id: u64,
_name: String, // Anchor barfs if you don't have all ix args
)]
pub struct CreateProject<'info> {
#[account(
init,
space = Project::SPACE,
payer = payer,
seeds = [
Project::SEED_PREFIX.as_bytes(),
project_id.to_le_bytes().as_ref(),
],
bump,
)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub rent: Sysvar<'info, Rent>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/join_pool.rs
|
use anchor_lang::prelude::*;
use crate::error::ProtocolError;
use crate::state::{
pool::*,
project::*,
};
// Adds a fundraiser into a funding round.
// This is subject to stipulations depending on the pool config.
// i.e: Some pools will require manual approval.
pub fn join_pool(ctx: Context<JoinPool>, _project_id: u64, _pool_id: u64) -> Result<()> {
let payer_key = ctx.accounts.payer.key();
let project = &ctx.accounts.project;
let project_key = ctx.accounts.project.key();
let pool = &mut ctx.accounts.pool;
let pool_data = pool.clone().into_inner();
// Fundraiser access control check
require!(project.admins.contains(&payer_key), ProtocolError::NotAuthorized);
pool.can_fund()?;
// Check to make sure the fundraiser isnt already in the pool
if pool_data.project_shares.iter().any(|p| p.project_key == project_key) {
return Err(ProtocolError::AlreadyEntered.into());
}
// Check PoolAccess config
if pool_data.pool_access == PoolAccess::Open {
pool.add_participant(project_key)
.expect("Failed to add project.");
msg!(
"Fundraiser successfully entered with data: {:?}",
project_key.to_string()
);
} else {
// If pool is set to "Manual", return error
// Pool closed due to AIDS
// https://i.imgur.com/LqFSv8w.jpeg
return Err(ProtocolError::PoolClosed.into());
}
Ok(())
}
#[derive(Accounts)]
#[instruction(
_project_id: u64,
_pool_id: u64,
)]
pub struct JoinPool<'info> {
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
_pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/fund_pool.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use crate::state::pool::*;
use crate::util::{mint_is_supported, set_and_maybe_realloc, to_pubkey, USDC_DEVNET_MINT};
/// Funds a pool from a `Source` with an SPL Token.
/// Pools can be funded at any time, they don't have to be active.
/// They just have to be not closed.
pub fn fund_pool(
ctx: Context<FundPool>,
_pool_id: u64,
amount: u64,
) -> Result<()> {
// Check to make sure the token is supported
mint_is_supported(&ctx.accounts.mint.key())?;
// Check to make sure the pool is not closed
ctx.accounts.pool.can_fund()?;
// Record the funder
// First create a ticket
let ticket = FundingTicket::new(
ctx.accounts.payer.key(),
Some(ctx.accounts.mint.key()),
amount,
);
// Determine new account size with new ticket
let mut pool_data: Pool = ctx.accounts.pool.clone().into_inner();
pool_data.funders.push(ticket);
set_and_maybe_realloc(
&mut ctx.accounts.pool,
&pool_data,
ctx.accounts.payer.to_account_info(),
ctx.accounts.system_program.to_account_info(),
)?;
// Perform transfer
token::transfer(
CpiContext::new(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.payer_token_account.to_account_info(),
to: ctx.accounts.pool_token_account.to_account_info(),
authority: ctx.accounts.payer.to_account_info(),
},
),
amount,
)?;
ctx.accounts.pool.funders.push(
FundingTicket::new(
ctx.accounts.payer.key(),
Some(to_pubkey(USDC_DEVNET_MINT)),
amount,
));
ctx.accounts.pool.total_funding += amount;
Ok(())
}
/// Fund pool context
#[derive(Accounts)]
#[instruction(
pool_id: u64,
_amount: u64, // Anchor barfs if you don't have all ix args
)]
pub struct FundPool<'info> {
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = pool,
)]
pub pool_token_account: Account<'info, token::TokenAccount>,
#[account(
mut,
token::mint = mint,
token::authority = payer,
)]
pub payer_token_account: Account<'info, token::TokenAccount>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/contribute.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use crate::state::project::*;
use crate::util::mint_is_supported;
pub fn contribute(
ctx: Context<Contribute>,
_project_id: u64,
amount: u64,
) -> Result<()> {
// Check to make sure the token is supported
mint_is_supported(&ctx.accounts.mint.key())?;
token::transfer(
CpiContext::new(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.payer_token_account.to_account_info(),
to: ctx.accounts.project_token_account.to_account_info(),
authority: ctx.accounts.payer.to_account_info(),
},
),
amount,
)?;
//Increment fields
ctx.accounts.project.raised += amount;
ctx.accounts.project.balance += amount;
ctx.accounts.project.contributors += 1;
Ok(())
}
#[derive(Accounts)]
#[instruction(
project_id: u64,
_amount: u64, // Anchor barfs if you don't have all ix args
)]
pub struct Contribute<'info> {
#[account(
mut,
seeds = [
Project::SEED_PREFIX.as_bytes(),
project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = project,
)]
pub project_token_account: Account<'info, token::TokenAccount>,
#[account(
mut,
token::mint = mint,
token::authority = payer,
)]
pub payer_token_account: Account<'info, token::TokenAccount>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/deactivate_project.rs
|
use anchor_lang::prelude::*;
use crate::error::ProtocolError;
use crate::state::project::*;
pub fn deactivate_project(ctx: Context<DeactivateProject>) -> Result<()> {
let project = &mut ctx.accounts.project;
let agent = ctx.accounts.payer.key();
if project.admins.contains(&agent) {
project.status = ProjectStatus::Deactivated;
Ok(())
} else {
msg!("Payer is not an admin of this project");
Err(ProtocolError::NotAuthorized.into())
}
}
#[derive(Accounts)]
pub struct DeactivateProject<'info> {
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/create_pool.rs
|
use anchor_lang::prelude::*;
use crate::state::pool::*;
pub fn create_pool(
ctx: Context<CreatePool>,
pool_id: u64,
name: String,
start: u64,
end: u64,
admins: Vec<Pubkey>,
access: PoolAccess,
) -> Result<()> {
ctx.accounts.pool.set_inner(
Pool::new(
pool_id,
name,
start,
end,
admins,
access,
*ctx.bumps
.get("pool")
.expect("Failed to derive bump for `pool`"),
)?
);
Ok(())
}
#[derive(Accounts)]
#[instruction(
pool_id: u64,
_name: String,
_start: u64,
_end: u64,
)]
pub struct CreatePool<'info> {
#[account(
init,
space = Pool::SPACE,
payer = payer,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
pool_id.to_le_bytes().as_ref(),
],
bump,
)]
pub pool: Account<'info, Pool>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/create_milestone.rs
|
use anchor_lang::prelude::*;
use crate::{state::{
milestone::*,
project::*,
}, error::ProtocolError};
/// Creates a `Milestone` for a project.
/// These can be added to accompany a fundraiser
pub fn create_milestone(
ctx: Context<CreateMilestone>,
milestone_id: u64,
name: String,
percentage: f64,
) -> Result<()> {
let payer_key = &mut ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
if project.admins.iter().any(|admin| admin == payer_key) {
ctx.accounts.milestone.set_inner(
Milestone::new(
milestone_id,
name,
percentage,
project.key(),
*ctx.bumps
.get("milestone")
.expect("Failed to derive bump for `project`"),
)?
);
} else {
return Err(ProtocolError::NotAuthorized.into());
}
Ok(())
}
#[derive(Accounts)]
#[instruction(
milestone_id: u64,
name: String, // Anchor barfs if you don't have all ix args
)]
pub struct CreateMilestone<'info> {
#[account(
init,
space = Milestone::SPACE,
payer = payer,
seeds = [
Milestone::SEED_PREFIX.as_bytes(),
name.as_ref(),
milestone_id.to_le_bytes().as_ref(),
project.key().as_ref(),
],
bump,
)]
pub milestone: Account<'info, Milestone>,
#[account(mut)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/update_project.rs
|
use anchor_lang::prelude::*;
use crate::{state::project::*, error::ProtocolError};
/// Updates a project, given a specific field
pub fn update_project(
ctx: Context<UpdateProject>,
_project_id: u64,
update_field: UpdateField,
) -> Result<()> {
let payer_key = &mut ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
require!(project.admins.contains(&payer_key), ProtocolError::NotAuthorized);
match update_field {
UpdateField::Name(new_name) => project.name = new_name,
UpdateField::Goal(new_goal) => project.goal = new_goal,
UpdateField::AddAdmin(new_admin) => {
if !project.admins.contains(&new_admin) {
project.admins.push(new_admin);
}
},
UpdateField::RemoveAdmin(admin_to_remove) => {
project.admins.retain(|&admin| admin != admin_to_remove);
},
UpdateField::Beneficiary(new_beneficiary) => project.beneficiary = new_beneficiary,
UpdateField::Status(new_status) => project.status = new_status,
};
Ok(())
}
#[derive(Accounts)]
#[instruction(
_project_id: u64,
)]
pub struct UpdateProject<'info> {
#[account(
mut,
seeds = [
Project::SEED_PREFIX.as_bytes(),
_project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/withdraw_funds_from_round.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use crate::error::ProtocolError;
use crate::state::pool::*;
/// Withdraws all of the USDC from the round
/// and sends it back to the payer. Requires that the payer
/// be a fundraiser admin. This can only be called before a round begins,
/// or after a round is closed (if there is no participants).
pub fn withdraw_funds_from_round(ctx: Context<WithdrawFromRound>, pool_id: u64) -> Result<()> {
let payer_key = ctx.accounts.payer.key();
let pool = &mut ctx.accounts.pool;
// Check to make sure caller is an admin
require!(pool.admins.contains(&payer_key), ProtocolError::NotAuthorized);
pool.can_withdraw()?;
let bump = pool.bump.to_le_bytes();
let id_ref = pool_id.to_le_bytes();
let seeds = vec![Pool::SEED_PREFIX.as_bytes(), id_ref.as_ref(), &bump];
let signer_seeds = vec![seeds.as_slice()];
token::transfer(
CpiContext::new_with_signer(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.pool_token_account.to_account_info(),
to: ctx.accounts.payer_token_account.to_account_info(),
authority: pool.to_account_info(),
},
signer_seeds.as_slice(),
),
pool.total_funding,
)?;
Ok(())
}
#[derive(Accounts)]
#[instruction(
_pool_id: u64
)]
pub struct WithdrawFromRound<'info> {
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
_pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Account<'info, Pool>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = pool,
)]
pub pool_token_account: Account<'info, token::TokenAccount>,
#[account(
mut,
token::mint = mint,
token::authority = payer,
)]
pub payer_token_account: Account<'info, token::TokenAccount>,
#[account(
mut,
constraint = pool.admins.contains(&payer.key())
)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/realloc_pool.rs
|
use anchor_lang::prelude::*;
use crate::state::pool::*;
pub fn realloc_pool(
ctx: Context<ReallocPool>,
_pool_id: u64,
) -> Result<()> {
ctx.accounts.pool.to_account_info().realloc((ctx.accounts.pool.try_to_vec()?).len() + 9000, false)?;
Ok(())
}
#[derive(Accounts)]
#[instruction(
pool_id: u64,
)]
pub struct ReallocPool<'info> {
#[account(
mut,
realloc = Pool::SPACE + 9000,
realloc::payer = payer,
realloc::zero = false,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Box<Account<'info, Pool>>,
pub gatekeeper_network: Option<AccountInfo<'info>>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/close_project.rs
|
use anchor_lang::prelude::*;
use crate::state::project::*;
use crate::error::ProtocolError;
/// Closes a 'Project'
pub fn close_project(
ctx: Context<CloseProject>,
) -> Result<()> {
let payer_key = &mut ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
project.is_active()?;
if project.admins.contains(&payer_key) {
project.status = ProjectStatus::Closed;
} else {
return Err(ProtocolError::NotAuthorized.into());
};
Ok(())
}
#[derive(Accounts)]
pub struct CloseProject<'info> {
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/contribute_with_vote.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use solana_gateway::Gateway;
use crate::error::ProtocolError;
use crate::state::{
pool::*,
project::*,
};
use crate::util::{
USDC_USD_PRICE_FEED_ID,
set_and_maybe_realloc,
mint_is_supported,
to_pubkey
};
// Makes a contribution to a fundraiser that is
// currently participating in a pool. Requires
// that the fundraiser has invoked the "join_pool"
// instruction, and is actively participating.
// ------- REQUIRES ONE OF TWO CRITERIA ---------
// 1. Caller holds a valid Civic Pass
// 2. Caller is verified via the relayer
pub fn contribute_with_vote(
ctx: Context<ContributeWithVote>,
_pool_id: u64,
_project_id: u64,
amount: u64,
) -> Result<()> {
// Define verification options
let payer = ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
// Check to make sure the token is supported
mint_is_supported(&ctx.accounts.mint.key())?;
// Check to make sure the pool is not closed
ctx.accounts.pool.is_active()?;
// Perform Civic pass verification if no optional account
if ctx.accounts.relayer.is_none() {
let gatekeeper_network = ctx.accounts.gatekeeper_network.clone().unwrap();
Gateway::verify_gateway_token_account_info(
&ctx.accounts.gateway_token_account.clone().unwrap(),
&ctx.accounts.payer.key(),
&gatekeeper_network.key(),
None,
).map_err(|_e| {
msg!("Gateway token verification failed.");
ProtocolError::CivicFailure
})?;
}
// Add the project to the shares, if it doesn't exist
let project_key = &project.key();
let mut pool_data = ctx.accounts.pool.clone().into_inner();
// Iterate through the Participants, and
// check if the project exists in the pool
// If not: break function and return error
if let Some(participant) = pool_data.project_shares.iter_mut().find(|p| p.project_key == *project_key) {
let vote_ticket = VoteTicket::new(
payer,
Some(ctx.accounts.mint.key()),
amount,
);
if let Some(payer_vote_ticket) = participant.share_data.votes.iter_mut().find(|t| t.payer == payer) {
payer_vote_ticket.amount += amount;
} else {
participant.share_data.votes.push(vote_ticket);
}
set_and_maybe_realloc(
&mut ctx.accounts.pool,
&pool_data,
ctx.accounts.payer.to_account_info(),
ctx.accounts.system_program.to_account_info()
)?;
ctx.accounts.pool.set_inner(pool_data);
} else {
return Err(ProtocolError::NotInPool.into());
}
// Transfer the vote to the project
token::transfer(
CpiContext::new(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.payer_token_account.to_account_info(),
to: ctx.accounts.project_token_account.to_account_info(),
authority: ctx.accounts.payer.to_account_info(),
},
),
amount,
)?;
// Update the QF algorithm
ctx.accounts.pool.update_shares(
ctx.accounts.pyth_usdc_usd.to_account_info(),
)?;
// Increment fields
project.raised += amount;
project.balance += amount;
project.contributors += 1;
Ok(())
}
#[derive(Accounts)]
#[instruction(
pool_id: u64,
project_id: u64,
_amount: u64, // Anchor barfs if you don't have all ix args
)]
pub struct ContributeWithVote<'info> {
/// CHECK: Pyth will check this
#[account(
address = to_pubkey(USDC_USD_PRICE_FEED_ID)
@ ProtocolError::PythAccountInvalid
)]
pub pyth_usdc_usd: UncheckedAccount<'info>,
#[account(
mut,
seeds = [
Pool::SEED_PREFIX.as_bytes(),
pool_id.to_le_bytes().as_ref(),
],
bump = pool.bump,
)]
pub pool: Box<Account<'info, Pool>>,
#[account(
mut,
seeds = [
Project::SEED_PREFIX.as_bytes(),
project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Box<Account<'info, Project>>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = project,
)]
pub project_token_account: Account<'info, token::TokenAccount>,
#[account(
mut,
token::mint = mint,
token::authority = payer,
)]
pub payer_token_account: Account<'info, token::TokenAccount>,
/// CHECK: This is not unsafe because this account isn't written to
pub gateway_token_account: Option<AccountInfo<'info>>,
/// CHECK: This is not unsafe because this account isn't written to
pub gatekeeper_network: Option<AccountInfo<'info>>,
#[account(mut)]
pub payer: Signer<'info>,
pub relayer: Option<Signer<'info>>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src
|
solana_public_repos/StockpileLabs/stockpile-v2/programs/stockpile-v2/src/instructions/withdraw_all.rs
|
use anchor_lang::prelude::*;
use anchor_spl::{token, associated_token};
use crate::error::ProtocolError;
use crate::state::project::*;
/// Withdraws all of the USDC from the vault
/// and sends to the beneficiary. Requires that the payer
/// be a fundraiser admin.
pub fn withdraw_all(ctx: Context<WithdrawAll>) -> Result<()> {
let payer_key = ctx.accounts.payer.key();
let project = &mut ctx.accounts.project;
// Check to make sure caller is an admin
require!(project.admins.contains(&payer_key), ProtocolError::NotAuthorized);
let bump = project.bump.to_le_bytes();
let id_ref = project.project_id.to_le_bytes();
let seeds = vec![Project::SEED_PREFIX.as_bytes(), id_ref.as_ref(), &bump];
let signer_seeds = vec![seeds.as_slice()];
token::transfer(
CpiContext::new_with_signer(
ctx.accounts.token_program.to_account_info(),
token::Transfer {
from: ctx.accounts.project_token_account.to_account_info(),
to: ctx.accounts.beneficiary_token_account.to_account_info(),
authority: project.to_account_info(),
},
&signer_seeds,
),
project.balance.into(),
)?;
project.balance -= project.balance;
Ok(())
}
#[derive(Accounts)]
pub struct WithdrawAll<'info> {
#[account(
seeds = [
Project::SEED_PREFIX.as_bytes(),
project.project_id.to_le_bytes().as_ref(),
],
bump = project.bump,
)]
pub project: Account<'info, Project>,
#[account(mut, constraint = beneficiary.key() == project.beneficiary)]
/// CHECK: This account is safe because we don't write to it
pub beneficiary: AccountInfo<'info>,
#[account(
mut,
token::mint = mint,
token::authority = beneficiary,
)]
pub beneficiary_token_account: Account<'info, token::TokenAccount>,
pub mint: Account<'info, token::Mint>,
#[account(
mut,
token::mint = mint,
token::authority = project,
)]
pub project_token_account: Account<'info, token::TokenAccount>,
#[account(mut)]
pub payer: Signer<'info>,
pub system_program: Program<'info, System>,
pub token_program: Program<'info, token::Token>,
pub associated_token_program: Program<'info, associated_token::AssociatedToken>,
}
| 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.