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
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .changeset/tame-phones-shine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@macalinao/codama-renderers-markdown": minor
"@macalinao/codama-renderers-js-esm": minor
"@macalinao/clients-orca-whirlpools": minor
"@macalinao/clients-kamino-lending": minor
"@macalinao/clients-token-metadata": minor
"@macalinao/clients-quarry": minor
"@macalinao/coda": minor
---

Update Codama to latest
138 changes: 113 additions & 25 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/farmState.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/globalConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/obligation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/oraclePrices.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/reserve.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/shortUrl.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/userMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/accounts/userState.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/errors/farms.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/errors/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/errors/kaminoLending.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/kamino-lending/src/generated/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
12 changes: 5 additions & 7 deletions clients/kamino-lending/src/generated/instructions/addRewards.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -214,7 +214,7 @@ export function getAddRewardsInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.payer),
getAccountMeta(accounts.farmState),
Expand All @@ -225,10 +225,10 @@ export function getAddRewardsInstruction<
getAccountMeta(accounts.scopePrices),
getAccountMeta(accounts.tokenProgram),
],
programAddress,
data: getAddRewardsInstructionDataEncoder().encode(
args as AddRewardsInstructionDataArgs,
),
programAddress,
} as AddRewardsInstruction<
TProgramAddress,
TAccountPayer,
Expand All @@ -239,9 +239,7 @@ export function getAddRewardsInstruction<
TAccountPayerRewardTokenAta,
TAccountScopePrices,
TAccountTokenProgram
>;

return instruction;
>);
}

export interface ParsedAddRewardsInstruction<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -279,7 +279,7 @@ export function getBorrowObligationLiquidityInstruction<
}

const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.owner),
getAccountMeta(accounts.obligation),
Expand All @@ -294,10 +294,10 @@ export function getBorrowObligationLiquidityInstruction<
getAccountMeta(accounts.tokenProgram),
getAccountMeta(accounts.instructionSysvarAccount),
],
programAddress,
data: getBorrowObligationLiquidityInstructionDataEncoder().encode(
args as BorrowObligationLiquidityInstructionDataArgs,
),
programAddress,
} as BorrowObligationLiquidityInstruction<
TProgramAddress,
TAccountOwner,
Expand All @@ -312,9 +312,7 @@ export function getBorrowObligationLiquidityInstruction<
TAccountReferrerTokenState,
TAccountTokenProgram,
TAccountInstructionSysvarAccount
>;

return instruction;
>);
}

export interface ParsedBorrowObligationLiquidityInstruction<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -315,7 +315,7 @@ export function getBorrowObligationLiquidityV2Instruction<
}

const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.owner),
getAccountMeta(accounts.obligation),
Expand All @@ -333,10 +333,10 @@ export function getBorrowObligationLiquidityV2Instruction<
getAccountMeta(accounts.reserveFarmState),
getAccountMeta(accounts.farmsProgram),
],
programAddress,
data: getBorrowObligationLiquidityV2InstructionDataEncoder().encode(
args as BorrowObligationLiquidityV2InstructionDataArgs,
),
programAddress,
} as BorrowObligationLiquidityV2Instruction<
TProgramAddress,
TAccountOwner,
Expand All @@ -354,9 +354,7 @@ export function getBorrowObligationLiquidityV2Instruction<
TAccountObligationFarmUserState,
TAccountReserveFarmState,
TAccountFarmsProgram
>;

return instruction;
>);
}

export interface ParsedBorrowObligationLiquidityV2Instruction<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -165,26 +165,24 @@ export function getDeleteReferrerStateAndShortUrlInstruction<
>;

const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.referrer),
getAccountMeta(accounts.referrerState),
getAccountMeta(accounts.shortUrl),
getAccountMeta(accounts.rent),
getAccountMeta(accounts.systemProgram),
],
programAddress,
data: getDeleteReferrerStateAndShortUrlInstructionDataEncoder().encode({}),
programAddress,
} as DeleteReferrerStateAndShortUrlInstruction<
TProgramAddress,
TAccountReferrer,
TAccountReferrerState,
TAccountShortUrl,
TAccountRent,
TAccountSystemProgram
>;

return instruction;
>);
}

export interface ParsedDeleteReferrerStateAndShortUrlInstruction<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -621,7 +621,7 @@ export function getDepositAndWithdrawInstruction<
}

const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.depositAccountsOwner),
getAccountMeta(accounts.depositAccountsObligation),
Expand Down Expand Up @@ -663,10 +663,10 @@ export function getDepositAndWithdrawInstruction<
getAccountMeta(accounts.withdrawFarmsAccountsReserveFarmState),
getAccountMeta(accounts.farmsProgram),
],
programAddress,
data: getDepositAndWithdrawInstructionDataEncoder().encode(
args as DepositAndWithdrawInstructionDataArgs,
),
programAddress,
} as DepositAndWithdrawInstruction<
TProgramAddress,
TAccountDepositAccountsOwner,
Expand Down Expand Up @@ -702,9 +702,7 @@ export function getDepositAndWithdrawInstruction<
TAccountWithdrawFarmsAccountsObligationFarmUserState,
TAccountWithdrawFarmsAccountsReserveFarmState,
TAccountFarmsProgram
>;

return instruction;
>);
}

export interface ParsedDepositAndWithdrawInstruction<
Expand Down
Loading