small fixes

This commit is contained in:
thesn10
2026-06-25 11:30:13 +02:00
parent e5229d2138
commit 0f6fdc5f97
8 changed files with 3113 additions and 609 deletions

5
app/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
.next/
node_modules/
public/tamagui.generated.css
.env*.local
tsconfig.tsbuildinfo

6
app/next-env.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@@ -1,7 +1,11 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2022", "target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"], "lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
@@ -11,11 +15,27 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [{ "name": "next" }], "plugins": [
"paths": { "@/*": ["./src/*"] } {
"name": "next"
}
],
"paths": {
"@/*": [
"./src/*"
]
}
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"exclude": ["node_modules"] "next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
} }

View File

@@ -10,14 +10,14 @@
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@solana/kit": "^6.0.0", "@solana/kit": "^6.10.0",
"@solana/program-client-core": "^6.4.0" "@solana/program-client-core": "^6.10.0"
}, },
"devDependencies": { "devDependencies": {
"@codama/nodes-from-anchor": "^1.4.1", "@codama/nodes-from-anchor": "^1.5.1",
"@codama/renderers-js": "^2.2.0", "@codama/renderers-js": "^2.2.0",
"codama": "^1.6.0", "codama": "^1.6.0",
"typescript": "^6.0.3", "typescript": "^6.0.3",
"vitest": "^3.0.0" "vitest": "^4.1.9"
} }
} }

View File

@@ -24,7 +24,9 @@ export async function findListingAccountPda(
seeds: ListingAccountSeeds, seeds: ListingAccountSeeds,
config: { programAddress?: Address | undefined } = {}, config: { programAddress?: Address | undefined } = {},
): Promise<ProgramDerivedAddress> { ): Promise<ProgramDerivedAddress> {
const { programAddress = "" as Address<""> } = config; const {
programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">,
} = config;
return await getProgramDerivedAddress({ return await getProgramDerivedAddress({
programAddress, programAddress,
seeds: [ seeds: [

View File

@@ -25,7 +25,9 @@ export async function findOrderAccountPda(
seeds: OrderAccountSeeds, seeds: OrderAccountSeeds,
config: { programAddress?: Address | undefined } = {}, config: { programAddress?: Address | undefined } = {},
): Promise<ProgramDerivedAddress> { ): Promise<ProgramDerivedAddress> {
const { programAddress = "" as Address<""> } = config; const {
programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">,
} = config;
return await getProgramDerivedAddress({ return await getProgramDerivedAddress({
programAddress, programAddress,
seeds: [ seeds: [

View File

@@ -81,7 +81,8 @@ import {
} from "../instructions"; } from "../instructions";
import { findListingAccountPda, findOrderAccountPda } from "../pdas"; import { findListingAccountPda, findOrderAccountPda } from "../pdas";
export const SOLISTING_PROGRAM_ADDRESS = "" as Address<"">; export const SOLISTING_PROGRAM_ADDRESS =
"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">;
export enum SolistingAccount { export enum SolistingAccount {
SolistingStateListingAccount, SolistingStateListingAccount,
@@ -241,7 +242,9 @@ export function identifySolistingInstruction(
); );
} }
export type ParsedSolistingInstruction<TProgram extends string = ""> = export type ParsedSolistingInstruction<
TProgram extends string = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU",
> =
| ({ | ({
instructionType: SolistingInstruction.Initialize; instructionType: SolistingInstruction.Initialize;
} & ParsedInitializeInstruction<TProgram>) } & ParsedInitializeInstruction<TProgram>)

3656
yarn.lock

File diff suppressed because it is too large Load Diff