Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .changeset/young-gifts-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@macalinao/codama-instruction-accounts-dedupe-visitor": patch
"@macalinao/codama-nodes-from-anchor-x": patch
"@macalinao/codama-renderers-markdown": patch
"@macalinao/codama-rename-visitor": patch
"@macalinao/clients-orca-whirlpools": patch
"@macalinao/clients-kamino-lending": patch
"@macalinao/clients-token-metadata": patch
"@macalinao/create-coda": patch
"@macalinao/clients-quarry": patch
"@macalinao/coda": patch
"coda-docs": patch
---

Dependency updates
9 changes: 5 additions & 4 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
"fumadocs-ui": "15.7.0",
"next": "15.5.0",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"react-dom": "^19.1.1",
"yaml": "^2.8.1"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.12",
"@types/mdx": "^2.0.13",
"@types/node": "24.3.0",
"@types/react": "^19.1.11",
"@types/react-dom": "^19.1.7",
"eslint": "^8.57.1",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"eslint": "^9.34.0",
"eslint-config-next": "15.5.0",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.12",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { Metadata } from "next";
import { createRelativeLink } from "fumadocs-ui/mdx";
import {
DocsBody,
DocsDescription,
DocsPage,
DocsTitle,
} from "fumadocs-ui/page";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { source } from "@/lib/source";
import { getMDXComponents } from "@/mdx-components";
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "@/app/global.css";
import { RootProvider } from "fumadocs-ui/provider";
import type { Metadata } from "next";
import { RootProvider } from "fumadocs-ui/provider";
import { Geist, Geist_Mono } from "next/font/google";

export const metadata: Metadata = {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import defaultMdxComponents from "fumadocs-ui/mdx";
import type { MDXComponents } from "mdx/types";
import defaultMdxComponents from "fumadocs-ui/mdx";

// use this function to get MDX components, you will need it for rendering MDX
export function getMDXComponents(components?: MDXComponents): MDXComponents {
Expand Down
42 changes: 32 additions & 10 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
},
"linter": {
"enabled": true,
// "domains": {
// "project": "recommended"
// },
"domains": {
"project": "recommended"
},
"rules": {
"recommended": true,
// this thing lags super hard
// "nursery": {
// "noFloatingPromises": "error"
// },
"nursery": {
"useConsistentTypeDefinitions": "error",
"noFloatingPromises": "error",
"noUnnecessaryConditions": "error"
},
"complexity": {
"useSimplifiedLogicExpression": "error"
},
Expand All @@ -40,7 +41,12 @@
"noDoubleEquals": "error"
},
"style": {
"useImportType": "error",
"useImportType": {
"level": "error",
"options": {
"style": "separatedType"
}
},
"noNonNullAssertion": "off",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
Expand All @@ -64,14 +70,27 @@
},
"correctness": {
"noUnusedVariables": "warn",
"noUnusedImports": "error"
"noUnusedImports": "error",
"noUndeclaredDependencies": "error",
"useImportExtensions": {
"level": "error",
"options": {
"forceJsExtensions": true
}
}
}
}
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
// Organizes imports and splits out type imports into a separate line
"organizeImports": {
"level": "on",
"options": {
"groups": [{ "type": true }]
}
}
}
}
},
Expand All @@ -92,6 +111,9 @@
"includes": ["clients/*/src/generated/**"],
"linter": {
"rules": {
"nursery": {
"noUnnecessaryConditions": "off"
},
"suspicious": {
"noEmptyInterface": "off"
},
Expand Down
299 changes: 193 additions & 106 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/kamino-lending/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@macalinao/coda": "workspace:*",
"@macalinao/eslint-config": "catalog:",
"@macalinao/tsconfig": "catalog:",
"@solana/kit": "*",
"@solana/kit": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:"
}
Expand Down
12 changes: 6 additions & 6 deletions clients/kamino-lending/src/generated/accounts/farmState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import type {
MaybeEncodedAccount,
ReadonlyUint8Array,
} from "@solana/kit";
import type {
RewardInfo,
RewardInfoArgs,
TokenInfo,
TokenInfoArgs,
} from "../types/index.js";
import {
assertAccountExists,
assertAccountsExist,
Expand Down Expand Up @@ -46,12 +52,6 @@ import {
getU128Encoder,
transformEncoder,
} from "@solana/kit";
import type {
RewardInfo,
RewardInfoArgs,
TokenInfo,
TokenInfoArgs,
} from "../types/index.js";
import {
getRewardInfoDecoder,
getRewardInfoEncoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ import type {
MaybeEncodedAccount,
ReadonlyUint8Array,
} from "@solana/kit";
import type {
ElevationGroupLendingMarket,
ElevationGroupLendingMarketArgs,
} from "../types/index.js";
import {
assertAccountExists,
assertAccountsExist,
Expand Down Expand Up @@ -46,10 +50,6 @@ import {
getU128Encoder,
transformEncoder,
} from "@solana/kit";
import type {
ElevationGroupLendingMarket,
ElevationGroupLendingMarketArgs,
} from "../types/index.js";
import {
getElevationGroupLendingMarketDecoder,
getElevationGroupLendingMarketEncoder,
Expand Down
16 changes: 8 additions & 8 deletions clients/kamino-lending/src/generated/accounts/obligation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ import type {
MaybeEncodedAccount,
ReadonlyUint8Array,
} from "@solana/kit";
import type {
LastUpdate,
LastUpdateArgs,
ObligationCollateral,
ObligationCollateralArgs,
ObligationLiquidity,
ObligationLiquidityArgs,
} from "../types/index.js";
import {
assertAccountExists,
assertAccountsExist,
Expand All @@ -44,14 +52,6 @@ import {
getU128Encoder,
transformEncoder,
} from "@solana/kit";
import type {
LastUpdate,
LastUpdateArgs,
ObligationCollateral,
ObligationCollateralArgs,
ObligationLiquidity,
ObligationLiquidityArgs,
} from "../types/index.js";
import {
getLastUpdateDecoder,
getLastUpdateEncoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import type {
MaybeEncodedAccount,
ReadonlyUint8Array,
} from "@solana/kit";
import type { DatedPrice, DatedPriceArgs } from "../types/index.js";
import {
assertAccountExists,
assertAccountsExist,
Expand All @@ -38,7 +39,6 @@ import {
getStructEncoder,
transformEncoder,
} from "@solana/kit";
import type { DatedPrice, DatedPriceArgs } from "../types/index.js";
import { getDatedPriceDecoder, getDatedPriceEncoder } from "../types/index.js";

export const ORACLE_PRICES_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([
Expand Down
20 changes: 10 additions & 10 deletions clients/kamino-lending/src/generated/accounts/reserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ import type {
MaybeEncodedAccount,
ReadonlyUint8Array,
} from "@solana/kit";
import type {
LastUpdate,
LastUpdateArgs,
ReserveCollateral,
ReserveCollateralArgs,
ReserveConfig,
ReserveConfigArgs,
ReserveLiquidity,
ReserveLiquidityArgs,
} from "../types/index.js";
import {
assertAccountExists,
assertAccountsExist,
Expand All @@ -40,16 +50,6 @@ import {
getU64Encoder,
transformEncoder,
} from "@solana/kit";
import type {
LastUpdate,
LastUpdateArgs,
ReserveCollateral,
ReserveCollateralArgs,
ReserveConfig,
ReserveConfigArgs,
ReserveLiquidity,
ReserveLiquidityArgs,
} from "../types/index.js";
import {
getLastUpdateDecoder,
getLastUpdateEncoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
WritableAccount,
WritableSignerAccount,
} from "@solana/kit";
import type { ResolvedAccount } from "../shared/index.js";
import {
combineCodec,
fixDecoderSize,
Expand All @@ -35,7 +36,6 @@ import {
transformEncoder,
} from "@solana/kit";
import { FARMS_PROGRAM_ADDRESS } from "../programs/index.js";
import type { ResolvedAccount } from "../shared/index.js";
import { getAccountMetaFactory } from "../shared/index.js";

export const ADD_REWARDS_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
TransactionSigner,
WritableAccount,
} from "@solana/kit";
import type { ResolvedAccount } from "../shared/index.js";
import {
combineCodec,
fixDecoderSize,
Expand All @@ -35,7 +36,6 @@ import {
transformEncoder,
} from "@solana/kit";
import { KAMINO_LENDING_PROGRAM_ADDRESS } from "../programs/index.js";
import type { ResolvedAccount } from "../shared/index.js";
import { getAccountMetaFactory } from "../shared/index.js";

export const BORROW_OBLIGATION_LIQUIDITY_DISCRIMINATOR: ReadonlyUint8Array =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
TransactionSigner,
WritableAccount,
} from "@solana/kit";
import type { ResolvedAccount } from "../shared/index.js";
import {
combineCodec,
fixDecoderSize,
Expand All @@ -35,7 +36,6 @@ import {
transformEncoder,
} from "@solana/kit";
import { KAMINO_LENDING_PROGRAM_ADDRESS } from "../programs/index.js";
import type { ResolvedAccount } from "../shared/index.js";
import { getAccountMetaFactory } from "../shared/index.js";

export const BORROW_OBLIGATION_LIQUIDITY_V2_DISCRIMINATOR: ReadonlyUint8Array =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
WritableAccount,
WritableSignerAccount,
} from "@solana/kit";
import type { ResolvedAccount } from "../shared/index.js";
import {
combineCodec,
fixDecoderSize,
Expand All @@ -33,7 +34,6 @@ import {
transformEncoder,
} from "@solana/kit";
import { KAMINO_LENDING_PROGRAM_ADDRESS } from "../programs/index.js";
import type { ResolvedAccount } from "../shared/index.js";
import { getAccountMetaFactory } from "../shared/index.js";

export const DELETE_REFERRER_STATE_AND_SHORT_URL_DISCRIMINATOR: ReadonlyUint8Array =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
WritableAccount,
WritableSignerAccount,
} from "@solana/kit";
import type { ResolvedAccount } from "../shared/index.js";
import {
combineCodec,
fixDecoderSize,
Expand All @@ -35,7 +36,6 @@ import {
transformEncoder,
} from "@solana/kit";
import { KAMINO_LENDING_PROGRAM_ADDRESS } from "../programs/index.js";
import type { ResolvedAccount } from "../shared/index.js";
import { getAccountMetaFactory } from "../shared/index.js";

export const DEPOSIT_AND_WITHDRAW_DISCRIMINATOR: ReadonlyUint8Array =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
TransactionSigner,
WritableAccount,
} from "@solana/kit";
import type { ResolvedAccount } from "../shared/index.js";
import {
combineCodec,
fixDecoderSize,
Expand All @@ -35,7 +36,6 @@ import {
transformEncoder,
} from "@solana/kit";
import { KAMINO_LENDING_PROGRAM_ADDRESS } from "../programs/index.js";
import type { ResolvedAccount } from "../shared/index.js";
import { getAccountMetaFactory } from "../shared/index.js";

export const DEPOSIT_OBLIGATION_COLLATERAL_DISCRIMINATOR: ReadonlyUint8Array =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
TransactionSigner,
WritableAccount,
} from "@solana/kit";
import type { ResolvedAccount } from "../shared/index.js";
import {
combineCodec,
fixDecoderSize,
Expand All @@ -35,7 +36,6 @@ import {
transformEncoder,
} from "@solana/kit";
import { KAMINO_LENDING_PROGRAM_ADDRESS } from "../programs/index.js";
import type { ResolvedAccount } from "../shared/index.js";
import { getAccountMetaFactory } from "../shared/index.js";

export const DEPOSIT_OBLIGATION_COLLATERAL_V2_DISCRIMINATOR: ReadonlyUint8Array =
Expand Down
Loading