Skip to content

Commit

Permalink
prisma v6
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Jan 9, 2025
1 parent f6610d0 commit 57318ac
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1,137 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-plants-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

prisma v6
Binary file modified bun.lockb
Binary file not shown.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"build": "tsc -p tsconfig.build.json",
"cleanup-console": "find dist -type f -name \"*.js\" -exec sed -i '/console\\.time(\\(.*\\))\\;/d;/console\\.timeEnd(\\(.*\\))\\;/d' {} \\;",
"generate": "graphql-codegen --config codegen.ts",
"prisma-merge": "bun run prisma/prisma-merge.ts",
"test": "vitest",
"vitest": "vitest",
"task": "bun run tasks/index.ts",
Expand All @@ -28,7 +27,7 @@
"@ethersproject/bignumber": "^5.6.0",
"@ethersproject/constants": "^5.6.0",
"@googleapis/sheets": "^9.0.0",
"@prisma/client": "4.10.0",
"@prisma/client": "^6.2.1",
"@sanity/client": "^2.23.1",
"@sentry/integrations": "^7.0.0",
"@sentry/node": "^8.0.0",
Expand All @@ -49,7 +48,7 @@
"lodash": "^4.17.15",
"memory-cache": "^0.2.0",
"moment-timezone": "^0.5.34",
"prisma": "4.10.0",
"prisma": "^6.2.1",
"stellate": "2.7.1",
"ts-dotenv": "^0.8.1",
"viem": "^2.21.55"
Expand All @@ -67,7 +66,6 @@
"@graphql-codegen/typescript-operations": "^2.2.0",
"@graphql-codegen/typescript-resolvers": "2.4.1",
"@graphql-tools/schema": "^8.3.1",
"@types/glob": "^8.1.0",
"@types/lodash": "^4.14.177",
"@types/memory-cache": "^0.2.1",
"@types/node": "^18.0.0",
Expand Down
38 changes: 0 additions & 38 deletions prisma/prisma-merge.ts

This file was deleted.

20 changes: 10 additions & 10 deletions prisma/prisma-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ export type JoinExitEvent = PrismaPoolEvent & {
};
};

export const poolWithTokens = Prisma.validator<Prisma.PrismaPoolArgs>()({
export const poolWithTokens = Prisma.validator<Prisma.PrismaPoolDefaultArgs>()({
include: { tokens: true },
});

export type PrismaPoolWithTokens = Prisma.PrismaPoolGetPayload<typeof poolWithTokens>;

const poolTokenWithDynamicData = Prisma.validator<Prisma.PrismaPoolTokenArgs>()({
const poolTokenWithDynamicData = Prisma.validator<Prisma.PrismaPool$tokensArgs>()({
include: { token: true },
});

export type PrismaPoolTokenWithDynamicData = Prisma.PrismaPoolTokenGetPayload<typeof poolTokenWithDynamicData>;

export const prismaPoolWithExpandedNesting = Prisma.validator<Prisma.PrismaPoolArgs>()({
export const prismaPoolWithExpandedNesting = Prisma.validator<Prisma.PrismaPoolDefaultArgs>()({
include: {
dynamicData: true,
staking: {
Expand Down Expand Up @@ -150,7 +150,7 @@ export const prismaPoolWithExpandedNesting = Prisma.validator<Prisma.PrismaPoolA

export type PrismaPoolWithExpandedNesting = Prisma.PrismaPoolGetPayload<typeof prismaPoolWithExpandedNesting>;

export const nestedPoolWithSingleLayerNesting = Prisma.validator<Prisma.PrismaPoolArgs>()({
export const nestedPoolWithSingleLayerNesting = Prisma.validator<Prisma.PrismaPoolDefaultArgs>()({
include: {
dynamicData: true,
tokens: {
Expand Down Expand Up @@ -179,7 +179,7 @@ export type PrismaNestedPoolWithSingleLayerNesting = Prisma.PrismaPoolGetPayload
typeof nestedPoolWithSingleLayerNesting
>;

const nestedPoolWithNoNesting = Prisma.validator<Prisma.PrismaPoolArgs>()({
const nestedPoolWithNoNesting = Prisma.validator<Prisma.PrismaPoolDefaultArgs>()({
include: {
dynamicData: true,
tokens: {
Expand All @@ -193,7 +193,7 @@ const nestedPoolWithNoNesting = Prisma.validator<Prisma.PrismaPoolArgs>()({

export type PrismaNestedPoolWithNoNesting = Prisma.PrismaPoolGetPayload<typeof nestedPoolWithNoNesting>;

const prismaPoolTokenWithExpandedNesting = Prisma.validator<Prisma.PrismaPoolTokenArgs>()({
const prismaPoolTokenWithExpandedNesting = Prisma.validator<Prisma.PrismaPool$tokensArgs>()({
include: {
token: {
include: {
Expand Down Expand Up @@ -233,7 +233,7 @@ export type PrismaPoolTokenWithExpandedNesting = Prisma.PrismaPoolTokenGetPayloa
typeof prismaPoolTokenWithExpandedNesting
>;

const prismaPoolTokenWithSingleLayerNesting = Prisma.validator<Prisma.PrismaPoolTokenArgs>()({
const prismaPoolTokenWithSingleLayerNesting = Prisma.validator<Prisma.PrismaPool$tokensArgs>()({
include: {
token: true,
nestedPool: {
Expand All @@ -258,7 +258,7 @@ export type PrismaTokenWithTypes = PrismaToken & {
types: PrismaTokenTypeOption[];
};

export const prismaPoolMinimal = Prisma.validator<Prisma.PrismaPoolArgs>()({
export const prismaPoolMinimal = Prisma.validator<Prisma.PrismaPoolDefaultArgs>()({
include: {
dynamicData: true,
allTokens: {
Expand Down Expand Up @@ -348,7 +348,7 @@ export const prismaPoolMinimal = Prisma.validator<Prisma.PrismaPoolArgs>()({

export type PrismaPoolMinimal = Prisma.PrismaPoolGetPayload<typeof prismaPoolMinimal>;

export const prismaPoolBatchSwapWithSwaps = Prisma.validator<Prisma.PrismaPoolBatchSwapArgs>()({
export const prismaPoolBatchSwapWithSwaps = Prisma.validator<Prisma.PrismaPoolSwap$batchSwapArgs>()({
include: {
swaps: {
include: {
Expand All @@ -368,7 +368,7 @@ export const prismaPoolBatchSwapWithSwaps = Prisma.validator<Prisma.PrismaPoolBa

export type PrismaPoolBatchSwapWithSwaps = Prisma.PrismaPoolBatchSwapGetPayload<typeof prismaPoolBatchSwapWithSwaps>;

export const prismaPoolAndHookWithDynamic = Prisma.validator<Prisma.PrismaPoolArgs>()({
export const prismaPoolAndHookWithDynamic = Prisma.validator<Prisma.PrismaPoolDefaultArgs>()({
include: {
dynamicData: true,
tokens: {
Expand Down
Loading

0 comments on commit 57318ac

Please sign in to comment.