diff --git a/Cargo.lock b/Cargo.lock index c99cbaca..bce056e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3161,6 +3161,7 @@ dependencies = [ "anchor-lang 0.30.1", "borsh 0.10.4", "bytemuck", + "clap 4.5.23", "num-derive 0.4.2", "num-traits", "serde", diff --git a/clients/js/jito_tip_router/accounts/ballotBox.ts b/clients/js/jito_tip_router/accounts/ballotBox.ts index 1ec4ec16..5ec499a4 100644 --- a/clients/js/jito_tip_router/accounts/ballotBox.ts +++ b/clients/js/jito_tip_router/accounts/ballotBox.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,14 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, @@ -33,6 +37,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getBallotDecoder, @@ -56,7 +61,7 @@ export type BallotBox = { bump: number; slotCreated: bigint; slotConsensusReached: bigint; - reserved: Array; + reserved: ReadonlyUint8Array; operatorsVoted: bigint; uniqueBallots: bigint; winningBallot: Ballot; @@ -71,7 +76,7 @@ export type BallotBoxArgs = { bump: number; slotCreated: number | bigint; slotConsensusReached: number | bigint; - reserved: Array; + reserved: ReadonlyUint8Array; operatorsVoted: number | bigint; uniqueBallots: number | bigint; winningBallot: BallotArgs; @@ -87,7 +92,7 @@ export function getBallotBoxEncoder(): Encoder { ['bump', getU8Encoder()], ['slotCreated', getU64Encoder()], ['slotConsensusReached', getU64Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ['operatorsVoted', getU64Encoder()], ['uniqueBallots', getU64Encoder()], ['winningBallot', getBallotEncoder()], @@ -104,7 +109,7 @@ export function getBallotBoxDecoder(): Decoder { ['bump', getU8Decoder()], ['slotCreated', getU64Decoder()], ['slotConsensusReached', getU64Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ['operatorsVoted', getU64Decoder()], ['uniqueBallots', getU64Decoder()], ['winningBallot', getBallotDecoder()], diff --git a/clients/js/jito_tip_router/accounts/baseRewardRouter.ts b/clients/js/jito_tip_router/accounts/baseRewardRouter.ts index 7b0d881d..c2092ed1 100644 --- a/clients/js/jito_tip_router/accounts/baseRewardRouter.ts +++ b/clients/js/jito_tip_router/accounts/baseRewardRouter.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,14 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU16Decoder, @@ -35,6 +39,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getBaseRewardRouterRewardsDecoder, @@ -56,7 +61,7 @@ export type BaseRewardRouter = { totalRewards: bigint; rewardPool: bigint; rewardsProcessed: bigint; - reserved: Array; + reserved: ReadonlyUint8Array; lastNcnGroupIndex: number; lastVoteIndex: number; lastRewardsToProcess: bigint; @@ -74,7 +79,7 @@ export type BaseRewardRouterArgs = { totalRewards: number | bigint; rewardPool: number | bigint; rewardsProcessed: number | bigint; - reserved: Array; + reserved: ReadonlyUint8Array; lastNcnGroupIndex: number; lastVoteIndex: number; lastRewardsToProcess: number | bigint; @@ -93,7 +98,7 @@ export function getBaseRewardRouterEncoder(): Encoder { ['totalRewards', getU64Encoder()], ['rewardPool', getU64Encoder()], ['rewardsProcessed', getU64Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ['lastNcnGroupIndex', getU8Encoder()], ['lastVoteIndex', getU16Encoder()], ['lastRewardsToProcess', getU64Encoder()], @@ -122,7 +127,7 @@ export function getBaseRewardRouterDecoder(): Decoder { ['totalRewards', getU64Decoder()], ['rewardPool', getU64Decoder()], ['rewardsProcessed', getU64Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ['lastNcnGroupIndex', getU8Decoder()], ['lastVoteIndex', getU16Decoder()], ['lastRewardsToProcess', getU64Decoder()], diff --git a/clients/js/jito_tip_router/accounts/config.ts b/clients/js/jito_tip_router/accounts/config.ts index a6f594bc..2af7833b 100644 --- a/clients/js/jito_tip_router/accounts/config.ts +++ b/clients/js/jito_tip_router/accounts/config.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,12 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, - getArrayDecoder, - getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, @@ -33,6 +35,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getFeeConfigDecoder, @@ -50,7 +53,7 @@ export type Config = { epochsBeforeStall: bigint; feeConfig: FeeConfig; bump: number; - reserved: Array; + reserved: ReadonlyUint8Array; }; export type ConfigArgs = { @@ -62,7 +65,7 @@ export type ConfigArgs = { epochsBeforeStall: number | bigint; feeConfig: FeeConfigArgs; bump: number; - reserved: Array; + reserved: ReadonlyUint8Array; }; export function getConfigEncoder(): Encoder { @@ -75,7 +78,7 @@ export function getConfigEncoder(): Encoder { ['epochsBeforeStall', getU64Encoder()], ['feeConfig', getFeeConfigEncoder()], ['bump', getU8Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 127 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 127)], ]); } @@ -89,7 +92,7 @@ export function getConfigDecoder(): Decoder { ['epochsBeforeStall', getU64Decoder()], ['feeConfig', getFeeConfigDecoder()], ['bump', getU8Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 127 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 127)], ]); } diff --git a/clients/js/jito_tip_router/accounts/epochSnapshot.ts b/clients/js/jito_tip_router/accounts/epochSnapshot.ts index 7b7d8785..64f9a6e9 100644 --- a/clients/js/jito_tip_router/accounts/epochSnapshot.ts +++ b/clients/js/jito_tip_router/accounts/epochSnapshot.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,12 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, - getArrayDecoder, - getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, @@ -33,6 +35,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getFeesDecoder, @@ -58,7 +61,7 @@ export type EpochSnapshot = { operatorsRegistered: bigint; validOperatorVaultDelegations: bigint; stakeWeights: StakeWeights; - reserved: Array; + reserved: ReadonlyUint8Array; }; export type EpochSnapshotArgs = { @@ -74,7 +77,7 @@ export type EpochSnapshotArgs = { operatorsRegistered: number | bigint; validOperatorVaultDelegations: number | bigint; stakeWeights: StakeWeightsArgs; - reserved: Array; + reserved: ReadonlyUint8Array; }; export function getEpochSnapshotEncoder(): Encoder { @@ -91,7 +94,7 @@ export function getEpochSnapshotEncoder(): Encoder { ['operatorsRegistered', getU64Encoder()], ['validOperatorVaultDelegations', getU64Encoder()], ['stakeWeights', getStakeWeightsEncoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ]); } @@ -109,7 +112,7 @@ export function getEpochSnapshotDecoder(): Decoder { ['operatorsRegistered', getU64Decoder()], ['validOperatorVaultDelegations', getU64Decoder()], ['stakeWeights', getStakeWeightsDecoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ]); } diff --git a/clients/js/jito_tip_router/accounts/epochState.ts b/clients/js/jito_tip_router/accounts/epochState.ts index 2537d30f..16397735 100644 --- a/clients/js/jito_tip_router/accounts/epochState.ts +++ b/clients/js/jito_tip_router/accounts/epochState.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,14 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, @@ -33,6 +37,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getEpochAccountStatusDecoder, @@ -63,7 +68,7 @@ export type EpochState = { totalDistributionProgress: Progress; baseDistributionProgress: Progress; ncnDistributionProgress: Array; - reserved: Array; + reserved: ReadonlyUint8Array; }; export type EpochStateArgs = { @@ -84,7 +89,7 @@ export type EpochStateArgs = { totalDistributionProgress: ProgressArgs; baseDistributionProgress: ProgressArgs; ncnDistributionProgress: Array; - reserved: Array; + reserved: ReadonlyUint8Array; }; export function getEpochStateEncoder(): Encoder { @@ -112,7 +117,7 @@ export function getEpochStateEncoder(): Encoder { 'ncnDistributionProgress', getArrayEncoder(getProgressEncoder(), { size: 2048 }), ], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 1024 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 1024)], ]); } @@ -141,7 +146,7 @@ export function getEpochStateDecoder(): Decoder { 'ncnDistributionProgress', getArrayDecoder(getProgressDecoder(), { size: 2048 }), ], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 1024 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 1024)], ]); } diff --git a/clients/js/jito_tip_router/accounts/index.ts b/clients/js/jito_tip_router/accounts/index.ts index 603a2953..6118e1df 100644 --- a/clients/js/jito_tip_router/accounts/index.ts +++ b/clients/js/jito_tip_router/accounts/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ export * from './ballotBox'; diff --git a/clients/js/jito_tip_router/accounts/ncnRewardRouter.ts b/clients/js/jito_tip_router/accounts/ncnRewardRouter.ts index 6acf1d8f..3241ce6c 100644 --- a/clients/js/jito_tip_router/accounts/ncnRewardRouter.ts +++ b/clients/js/jito_tip_router/accounts/ncnRewardRouter.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,14 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU16Decoder, @@ -35,6 +39,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getNcnFeeGroupDecoder, @@ -59,7 +64,7 @@ export type NcnRewardRouter = { rewardPool: bigint; rewardsProcessed: bigint; operatorRewards: bigint; - reserved: Array; + reserved: ReadonlyUint8Array; lastRewardsToProcess: bigint; lastVaultOperatorDelegationIndex: number; vaultRewardRoutes: Array; @@ -77,7 +82,7 @@ export type NcnRewardRouterArgs = { rewardPool: number | bigint; rewardsProcessed: number | bigint; operatorRewards: number | bigint; - reserved: Array; + reserved: ReadonlyUint8Array; lastRewardsToProcess: number | bigint; lastVaultOperatorDelegationIndex: number; vaultRewardRoutes: Array; @@ -96,7 +101,7 @@ export function getNcnRewardRouterEncoder(): Encoder { ['rewardPool', getU64Encoder()], ['rewardsProcessed', getU64Encoder()], ['operatorRewards', getU64Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ['lastRewardsToProcess', getU64Encoder()], ['lastVaultOperatorDelegationIndex', getU16Encoder()], [ @@ -119,7 +124,7 @@ export function getNcnRewardRouterDecoder(): Decoder { ['rewardPool', getU64Decoder()], ['rewardsProcessed', getU64Decoder()], ['operatorRewards', getU64Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ['lastRewardsToProcess', getU64Decoder()], ['lastVaultOperatorDelegationIndex', getU16Decoder()], [ diff --git a/clients/js/jito_tip_router/accounts/operatorSnapshot.ts b/clients/js/jito_tip_router/accounts/operatorSnapshot.ts index 1894d73e..18bcc2db 100644 --- a/clients/js/jito_tip_router/accounts/operatorSnapshot.ts +++ b/clients/js/jito_tip_router/accounts/operatorSnapshot.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,12 +13,16 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBoolDecoder, getBoolEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU16Decoder, @@ -37,6 +41,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getStakeWeightsDecoder, @@ -65,7 +70,7 @@ export type OperatorSnapshot = { vaultOperatorDelegationsRegistered: bigint; validOperatorVaultDelegations: bigint; stakeWeights: StakeWeights; - reserved: Array; + reserved: ReadonlyUint8Array; vaultOperatorStakeWeight: Array; }; @@ -85,7 +90,7 @@ export type OperatorSnapshotArgs = { vaultOperatorDelegationsRegistered: number | bigint; validOperatorVaultDelegations: number | bigint; stakeWeights: StakeWeightsArgs; - reserved: Array; + reserved: ReadonlyUint8Array; vaultOperatorStakeWeight: Array; }; @@ -106,7 +111,7 @@ export function getOperatorSnapshotEncoder(): Encoder { ['vaultOperatorDelegationsRegistered', getU64Encoder()], ['validOperatorVaultDelegations', getU64Encoder()], ['stakeWeights', getStakeWeightsEncoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 256 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 256)], [ 'vaultOperatorStakeWeight', getArrayEncoder(getVaultOperatorStakeWeightEncoder(), { size: 64 }), @@ -131,7 +136,7 @@ export function getOperatorSnapshotDecoder(): Decoder { ['vaultOperatorDelegationsRegistered', getU64Decoder()], ['validOperatorVaultDelegations', getU64Decoder()], ['stakeWeights', getStakeWeightsDecoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 256 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 256)], [ 'vaultOperatorStakeWeight', getArrayDecoder(getVaultOperatorStakeWeightDecoder(), { size: 64 }), diff --git a/clients/js/jito_tip_router/accounts/vaultRegistry.ts b/clients/js/jito_tip_router/accounts/vaultRegistry.ts index 691b395c..c8afb363 100644 --- a/clients/js/jito_tip_router/accounts/vaultRegistry.ts +++ b/clients/js/jito_tip_router/accounts/vaultRegistry.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,14 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, @@ -33,6 +37,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getStMintEntryDecoder, @@ -49,7 +54,7 @@ export type VaultRegistry = { discriminator: bigint; ncn: Address; bump: number; - reserved: Array; + reserved: ReadonlyUint8Array; stMintList: Array; vaultList: Array; }; @@ -58,7 +63,7 @@ export type VaultRegistryArgs = { discriminator: number | bigint; ncn: Address; bump: number; - reserved: Array; + reserved: ReadonlyUint8Array; stMintList: Array; vaultList: Array; }; @@ -68,7 +73,7 @@ export function getVaultRegistryEncoder(): Encoder { ['discriminator', getU64Encoder()], ['ncn', getAddressEncoder()], ['bump', getU8Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 127 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 127)], ['stMintList', getArrayEncoder(getStMintEntryEncoder(), { size: 64 })], ['vaultList', getArrayEncoder(getVaultEntryEncoder(), { size: 64 })], ]); @@ -79,7 +84,7 @@ export function getVaultRegistryDecoder(): Decoder { ['discriminator', getU64Decoder()], ['ncn', getAddressDecoder()], ['bump', getU8Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 127 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 127)], ['stMintList', getArrayDecoder(getStMintEntryDecoder(), { size: 64 })], ['vaultList', getArrayDecoder(getVaultEntryDecoder(), { size: 64 })], ]); diff --git a/clients/js/jito_tip_router/accounts/weightTable.ts b/clients/js/jito_tip_router/accounts/weightTable.ts index 3e690b6a..1c0f91e4 100644 --- a/clients/js/jito_tip_router/accounts/weightTable.ts +++ b/clients/js/jito_tip_router/accounts/weightTable.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { @@ -13,10 +13,14 @@ import { decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, @@ -33,6 +37,7 @@ import { type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getVaultEntryDecoder, @@ -52,7 +57,7 @@ export type WeightTable = { slotCreated: bigint; vaultCount: bigint; bump: number; - reserved: Array; + reserved: ReadonlyUint8Array; vaultRegistry: Array; table: Array; }; @@ -64,7 +69,7 @@ export type WeightTableArgs = { slotCreated: number | bigint; vaultCount: number | bigint; bump: number; - reserved: Array; + reserved: ReadonlyUint8Array; vaultRegistry: Array; table: Array; }; @@ -77,7 +82,7 @@ export function getWeightTableEncoder(): Encoder { ['slotCreated', getU64Encoder()], ['vaultCount', getU64Encoder()], ['bump', getU8Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ['vaultRegistry', getArrayEncoder(getVaultEntryEncoder(), { size: 64 })], ['table', getArrayEncoder(getWeightEntryEncoder(), { size: 64 })], ]); @@ -91,7 +96,7 @@ export function getWeightTableDecoder(): Decoder { ['slotCreated', getU64Decoder()], ['vaultCount', getU64Decoder()], ['bump', getU8Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ['vaultRegistry', getArrayDecoder(getVaultEntryDecoder(), { size: 64 })], ['table', getArrayDecoder(getWeightEntryDecoder(), { size: 64 })], ]); diff --git a/clients/js/jito_tip_router/errors/index.ts b/clients/js/jito_tip_router/errors/index.ts index 145469d0..1d91e8ac 100644 --- a/clients/js/jito_tip_router/errors/index.ts +++ b/clients/js/jito_tip_router/errors/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ export * from './jitoTipRouter'; diff --git a/clients/js/jito_tip_router/errors/jitoTipRouter.ts b/clients/js/jito_tip_router/errors/jitoTipRouter.ts index 9248b58c..6f0b8238 100644 --- a/clients/js/jito_tip_router/errors/jitoTipRouter.ts +++ b/clients/js/jito_tip_router/errors/jitoTipRouter.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/index.ts b/clients/js/jito_tip_router/index.ts index 4b1e4f3c..02964a6a 100644 --- a/clients/js/jito_tip_router/index.ts +++ b/clients/js/jito_tip_router/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ export * from './accounts'; diff --git a/clients/js/jito_tip_router/instructions/adminRegisterStMint.ts b/clients/js/jito_tip_router/instructions/adminRegisterStMint.ts index 9d3b4145..7d687d54 100644 --- a/clients/js/jito_tip_router/instructions/adminRegisterStMint.ts +++ b/clients/js/jito_tip_router/instructions/adminRegisterStMint.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/adminSetConfigFees.ts b/clients/js/jito_tip_router/instructions/adminSetConfigFees.ts index c16bfc37..bee88107 100644 --- a/clients/js/jito_tip_router/instructions/adminSetConfigFees.ts +++ b/clients/js/jito_tip_router/instructions/adminSetConfigFees.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/adminSetNewAdmin.ts b/clients/js/jito_tip_router/instructions/adminSetNewAdmin.ts index 65a668dc..93178665 100644 --- a/clients/js/jito_tip_router/instructions/adminSetNewAdmin.ts +++ b/clients/js/jito_tip_router/instructions/adminSetNewAdmin.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/adminSetParameters.ts b/clients/js/jito_tip_router/instructions/adminSetParameters.ts index e84c692c..58ef9e7d 100644 --- a/clients/js/jito_tip_router/instructions/adminSetParameters.ts +++ b/clients/js/jito_tip_router/instructions/adminSetParameters.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/adminSetStMint.ts b/clients/js/jito_tip_router/instructions/adminSetStMint.ts index cf4ab5da..f1db2031 100644 --- a/clients/js/jito_tip_router/instructions/adminSetStMint.ts +++ b/clients/js/jito_tip_router/instructions/adminSetStMint.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/adminSetTieBreaker.ts b/clients/js/jito_tip_router/instructions/adminSetTieBreaker.ts index f51594c5..9d08a44d 100644 --- a/clients/js/jito_tip_router/instructions/adminSetTieBreaker.ts +++ b/clients/js/jito_tip_router/instructions/adminSetTieBreaker.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/adminSetWeight.ts b/clients/js/jito_tip_router/instructions/adminSetWeight.ts index 2ca4d18f..9a20812e 100644 --- a/clients/js/jito_tip_router/instructions/adminSetWeight.ts +++ b/clients/js/jito_tip_router/instructions/adminSetWeight.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/castVote.ts b/clients/js/jito_tip_router/instructions/castVote.ts index 7fa407f1..027307fd 100644 --- a/clients/js/jito_tip_router/instructions/castVote.ts +++ b/clients/js/jito_tip_router/instructions/castVote.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/claimWithPayer.ts b/clients/js/jito_tip_router/instructions/claimWithPayer.ts index 8b8aee2c..55e95675 100644 --- a/clients/js/jito_tip_router/instructions/claimWithPayer.ts +++ b/clients/js/jito_tip_router/instructions/claimWithPayer.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/distributeBaseNcnRewardRoute.ts b/clients/js/jito_tip_router/instructions/distributeBaseNcnRewardRoute.ts index 1f14674e..4da22e72 100644 --- a/clients/js/jito_tip_router/instructions/distributeBaseNcnRewardRoute.ts +++ b/clients/js/jito_tip_router/instructions/distributeBaseNcnRewardRoute.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/distributeBaseRewards.ts b/clients/js/jito_tip_router/instructions/distributeBaseRewards.ts index d8f373a0..04ddbae1 100644 --- a/clients/js/jito_tip_router/instructions/distributeBaseRewards.ts +++ b/clients/js/jito_tip_router/instructions/distributeBaseRewards.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/distributeNcnOperatorRewards.ts b/clients/js/jito_tip_router/instructions/distributeNcnOperatorRewards.ts index bcfa6270..1ef9db31 100644 --- a/clients/js/jito_tip_router/instructions/distributeNcnOperatorRewards.ts +++ b/clients/js/jito_tip_router/instructions/distributeNcnOperatorRewards.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/distributeNcnVaultRewards.ts b/clients/js/jito_tip_router/instructions/distributeNcnVaultRewards.ts index 7425f285..8d3550a5 100644 --- a/clients/js/jito_tip_router/instructions/distributeNcnVaultRewards.ts +++ b/clients/js/jito_tip_router/instructions/distributeNcnVaultRewards.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/index.ts b/clients/js/jito_tip_router/instructions/index.ts index 258a5999..0f6af550 100644 --- a/clients/js/jito_tip_router/instructions/index.ts +++ b/clients/js/jito_tip_router/instructions/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ export * from './adminRegisterStMint'; diff --git a/clients/js/jito_tip_router/instructions/initializeBallotBox.ts b/clients/js/jito_tip_router/instructions/initializeBallotBox.ts index 101e39e4..995cd0a9 100644 --- a/clients/js/jito_tip_router/instructions/initializeBallotBox.ts +++ b/clients/js/jito_tip_router/instructions/initializeBallotBox.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeBaseRewardRouter.ts b/clients/js/jito_tip_router/instructions/initializeBaseRewardRouter.ts index 0cb27511..93d7ab6c 100644 --- a/clients/js/jito_tip_router/instructions/initializeBaseRewardRouter.ts +++ b/clients/js/jito_tip_router/instructions/initializeBaseRewardRouter.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeConfig.ts b/clients/js/jito_tip_router/instructions/initializeConfig.ts index 4a3bc14b..730a4c85 100644 --- a/clients/js/jito_tip_router/instructions/initializeConfig.ts +++ b/clients/js/jito_tip_router/instructions/initializeConfig.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeEpochSnapshot.ts b/clients/js/jito_tip_router/instructions/initializeEpochSnapshot.ts index 1426df69..0d0b94bd 100644 --- a/clients/js/jito_tip_router/instructions/initializeEpochSnapshot.ts +++ b/clients/js/jito_tip_router/instructions/initializeEpochSnapshot.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeEpochState.ts b/clients/js/jito_tip_router/instructions/initializeEpochState.ts index 347712b9..20715983 100644 --- a/clients/js/jito_tip_router/instructions/initializeEpochState.ts +++ b/clients/js/jito_tip_router/instructions/initializeEpochState.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeNcnRewardRouter.ts b/clients/js/jito_tip_router/instructions/initializeNcnRewardRouter.ts index a5ebbf90..1eeb5d1e 100644 --- a/clients/js/jito_tip_router/instructions/initializeNcnRewardRouter.ts +++ b/clients/js/jito_tip_router/instructions/initializeNcnRewardRouter.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeOperatorSnapshot.ts b/clients/js/jito_tip_router/instructions/initializeOperatorSnapshot.ts index ce66645f..e81f39fd 100644 --- a/clients/js/jito_tip_router/instructions/initializeOperatorSnapshot.ts +++ b/clients/js/jito_tip_router/instructions/initializeOperatorSnapshot.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeVaultRegistry.ts b/clients/js/jito_tip_router/instructions/initializeVaultRegistry.ts index 1bd07cd9..20c53ef6 100644 --- a/clients/js/jito_tip_router/instructions/initializeVaultRegistry.ts +++ b/clients/js/jito_tip_router/instructions/initializeVaultRegistry.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/initializeWeightTable.ts b/clients/js/jito_tip_router/instructions/initializeWeightTable.ts index 4993f3b7..aad8e10d 100644 --- a/clients/js/jito_tip_router/instructions/initializeWeightTable.ts +++ b/clients/js/jito_tip_router/instructions/initializeWeightTable.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/reallocBallotBox.ts b/clients/js/jito_tip_router/instructions/reallocBallotBox.ts index 5b5dfc46..1fb307fd 100644 --- a/clients/js/jito_tip_router/instructions/reallocBallotBox.ts +++ b/clients/js/jito_tip_router/instructions/reallocBallotBox.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/reallocBaseRewardRouter.ts b/clients/js/jito_tip_router/instructions/reallocBaseRewardRouter.ts index ce2c3dba..c4f65cc4 100644 --- a/clients/js/jito_tip_router/instructions/reallocBaseRewardRouter.ts +++ b/clients/js/jito_tip_router/instructions/reallocBaseRewardRouter.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/reallocEpochState.ts b/clients/js/jito_tip_router/instructions/reallocEpochState.ts index f46006b1..882647ed 100644 --- a/clients/js/jito_tip_router/instructions/reallocEpochState.ts +++ b/clients/js/jito_tip_router/instructions/reallocEpochState.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/reallocOperatorSnapshot.ts b/clients/js/jito_tip_router/instructions/reallocOperatorSnapshot.ts index d5149969..23a35939 100644 --- a/clients/js/jito_tip_router/instructions/reallocOperatorSnapshot.ts +++ b/clients/js/jito_tip_router/instructions/reallocOperatorSnapshot.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/reallocVaultRegistry.ts b/clients/js/jito_tip_router/instructions/reallocVaultRegistry.ts index 846c98a3..95a63a48 100644 --- a/clients/js/jito_tip_router/instructions/reallocVaultRegistry.ts +++ b/clients/js/jito_tip_router/instructions/reallocVaultRegistry.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/reallocWeightTable.ts b/clients/js/jito_tip_router/instructions/reallocWeightTable.ts index 3064e2b5..7aeeb61c 100644 --- a/clients/js/jito_tip_router/instructions/reallocWeightTable.ts +++ b/clients/js/jito_tip_router/instructions/reallocWeightTable.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/registerVault.ts b/clients/js/jito_tip_router/instructions/registerVault.ts index c1941f1f..a1256c50 100644 --- a/clients/js/jito_tip_router/instructions/registerVault.ts +++ b/clients/js/jito_tip_router/instructions/registerVault.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/routeBaseRewards.ts b/clients/js/jito_tip_router/instructions/routeBaseRewards.ts index 0a9a77d1..de083fb4 100644 --- a/clients/js/jito_tip_router/instructions/routeBaseRewards.ts +++ b/clients/js/jito_tip_router/instructions/routeBaseRewards.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/routeNcnRewards.ts b/clients/js/jito_tip_router/instructions/routeNcnRewards.ts index 1f22dc6a..5abede58 100644 --- a/clients/js/jito_tip_router/instructions/routeNcnRewards.ts +++ b/clients/js/jito_tip_router/instructions/routeNcnRewards.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/setMerkleRoot.ts b/clients/js/jito_tip_router/instructions/setMerkleRoot.ts index a31cb697..e548a624 100644 --- a/clients/js/jito_tip_router/instructions/setMerkleRoot.ts +++ b/clients/js/jito_tip_router/instructions/setMerkleRoot.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/snapshotVaultOperatorDelegation.ts b/clients/js/jito_tip_router/instructions/snapshotVaultOperatorDelegation.ts index 05f5b1f6..555038c1 100644 --- a/clients/js/jito_tip_router/instructions/snapshotVaultOperatorDelegation.ts +++ b/clients/js/jito_tip_router/instructions/snapshotVaultOperatorDelegation.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/instructions/switchboardSetWeight.ts b/clients/js/jito_tip_router/instructions/switchboardSetWeight.ts index 07675f00..34547912 100644 --- a/clients/js/jito_tip_router/instructions/switchboardSetWeight.ts +++ b/clients/js/jito_tip_router/instructions/switchboardSetWeight.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/programs/index.ts b/clients/js/jito_tip_router/programs/index.ts index 145469d0..1d91e8ac 100644 --- a/clients/js/jito_tip_router/programs/index.ts +++ b/clients/js/jito_tip_router/programs/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ export * from './jitoTipRouter'; diff --git a/clients/js/jito_tip_router/programs/jitoTipRouter.ts b/clients/js/jito_tip_router/programs/jitoTipRouter.ts index 5a9c5827..f2960abd 100644 --- a/clients/js/jito_tip_router/programs/jitoTipRouter.ts +++ b/clients/js/jito_tip_router/programs/jitoTipRouter.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/shared/index.ts b/clients/js/jito_tip_router/shared/index.ts index 278bf59f..01a7d938 100644 --- a/clients/js/jito_tip_router/shared/index.ts +++ b/clients/js/jito_tip_router/shared/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/ballot.ts b/clients/js/jito_tip_router/types/ballot.ts index cf5837e4..dcc7ee03 100644 --- a/clients/js/jito_tip_router/types/ballot.ts +++ b/clients/js/jito_tip_router/types/ballot.ts @@ -1,25 +1,21 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { combineCodec, fixDecoderSize, fixEncoderSize, - getArrayDecoder, - getArrayEncoder, getBoolDecoder, getBoolEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, - getU8Decoder, - getU8Encoder, type Codec, type Decoder, type Encoder, @@ -29,7 +25,7 @@ import { export type Ballot = { metaMerkleRoot: ReadonlyUint8Array; isInitialized: number; - reserved: Array; + reserved: ReadonlyUint8Array; }; export type BallotArgs = Ballot; @@ -38,7 +34,7 @@ export function getBallotEncoder(): Encoder { return getStructEncoder([ ['metaMerkleRoot', fixEncoderSize(getBytesEncoder(), 32)], ['isInitialized', getBoolEncoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 63 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 63)], ]); } @@ -46,7 +42,7 @@ export function getBallotDecoder(): Decoder { return getStructDecoder([ ['metaMerkleRoot', fixDecoderSize(getBytesDecoder(), 32)], ['isInitialized', getBoolDecoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 63 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 63)], ]); } diff --git a/clients/js/jito_tip_router/types/ballotTally.ts b/clients/js/jito_tip_router/types/ballotTally.ts index 0aa4581a..d16c878c 100644 --- a/clients/js/jito_tip_router/types/ballotTally.ts +++ b/clients/js/jito_tip_router/types/ballotTally.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/baseFeeGroup.ts b/clients/js/jito_tip_router/types/baseFeeGroup.ts index 494a1ed2..9af65671 100644 --- a/clients/js/jito_tip_router/types/baseFeeGroup.ts +++ b/clients/js/jito_tip_router/types/baseFeeGroup.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/baseRewardRouterRewards.ts b/clients/js/jito_tip_router/types/baseRewardRouterRewards.ts index 737fc626..d91d7d31 100644 --- a/clients/js/jito_tip_router/types/baseRewardRouterRewards.ts +++ b/clients/js/jito_tip_router/types/baseRewardRouterRewards.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/configAdminRole.ts b/clients/js/jito_tip_router/types/configAdminRole.ts index e00adbc2..d146d4e1 100644 --- a/clients/js/jito_tip_router/types/configAdminRole.ts +++ b/clients/js/jito_tip_router/types/configAdminRole.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/epochAccountStatus.ts b/clients/js/jito_tip_router/types/epochAccountStatus.ts index 602e5311..6f7a70d0 100644 --- a/clients/js/jito_tip_router/types/epochAccountStatus.ts +++ b/clients/js/jito_tip_router/types/epochAccountStatus.ts @@ -1,15 +1,17 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { combineCodec, - getArrayDecoder, - getArrayEncoder, + fixDecoderSize, + fixEncoderSize, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU8Decoder, @@ -17,16 +19,17 @@ import { type Codec, type Decoder, type Encoder, + type ReadonlyUint8Array, } from '@solana/web3.js'; export type EpochAccountStatus = { epochState: number; weightTable: number; epochSnapshot: number; - operatorSnapshot: Array; + operatorSnapshot: ReadonlyUint8Array; ballotBox: number; baseRewardRouter: number; - ncnRewardRouter: Array; + ncnRewardRouter: ReadonlyUint8Array; }; export type EpochAccountStatusArgs = EpochAccountStatus; @@ -36,10 +39,10 @@ export function getEpochAccountStatusEncoder(): Encoder ['epochState', getU8Encoder()], ['weightTable', getU8Encoder()], ['epochSnapshot', getU8Encoder()], - ['operatorSnapshot', getArrayEncoder(getU8Encoder(), { size: 256 })], + ['operatorSnapshot', fixEncoderSize(getBytesEncoder(), 256)], ['ballotBox', getU8Encoder()], ['baseRewardRouter', getU8Encoder()], - ['ncnRewardRouter', getArrayEncoder(getU8Encoder(), { size: 2048 })], + ['ncnRewardRouter', fixEncoderSize(getBytesEncoder(), 2048)], ]); } @@ -48,10 +51,10 @@ export function getEpochAccountStatusDecoder(): Decoder { ['epochState', getU8Decoder()], ['weightTable', getU8Decoder()], ['epochSnapshot', getU8Decoder()], - ['operatorSnapshot', getArrayDecoder(getU8Decoder(), { size: 256 })], + ['operatorSnapshot', fixDecoderSize(getBytesDecoder(), 256)], ['ballotBox', getU8Decoder()], ['baseRewardRouter', getU8Decoder()], - ['ncnRewardRouter', getArrayDecoder(getU8Decoder(), { size: 2048 })], + ['ncnRewardRouter', fixDecoderSize(getBytesDecoder(), 2048)], ]); } diff --git a/clients/js/jito_tip_router/types/fee.ts b/clients/js/jito_tip_router/types/fee.ts index 2595798b..f2554e20 100644 --- a/clients/js/jito_tip_router/types/fee.ts +++ b/clients/js/jito_tip_router/types/fee.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/feeConfig.ts b/clients/js/jito_tip_router/types/feeConfig.ts index ed8dbd55..c1fa5606 100644 --- a/clients/js/jito_tip_router/types/feeConfig.ts +++ b/clients/js/jito_tip_router/types/feeConfig.ts @@ -1,34 +1,37 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { combineCodec, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU16Decoder, getU16Encoder, - getU8Decoder, - getU8Encoder, type Address, type Codec, type Decoder, type Encoder, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getFeesDecoder, getFeesEncoder, type Fees, type FeesArgs } from '.'; export type FeeConfig = { blockEngineFeeBps: number; baseFeeWallets: Array
; - reserved: Array; + reserved: ReadonlyUint8Array; fee1: Fees; fee2: Fees; }; @@ -36,7 +39,7 @@ export type FeeConfig = { export type FeeConfigArgs = { blockEngineFeeBps: number; baseFeeWallets: Array
; - reserved: Array; + reserved: ReadonlyUint8Array; fee1: FeesArgs; fee2: FeesArgs; }; @@ -45,7 +48,7 @@ export function getFeeConfigEncoder(): Encoder { return getStructEncoder([ ['blockEngineFeeBps', getU16Encoder()], ['baseFeeWallets', getArrayEncoder(getAddressEncoder(), { size: 8 })], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ['fee1', getFeesEncoder()], ['fee2', getFeesEncoder()], ]); @@ -55,7 +58,7 @@ export function getFeeConfigDecoder(): Decoder { return getStructDecoder([ ['blockEngineFeeBps', getU16Decoder()], ['baseFeeWallets', getArrayDecoder(getAddressDecoder(), { size: 8 })], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ['fee1', getFeesDecoder()], ['fee2', getFeesDecoder()], ]); diff --git a/clients/js/jito_tip_router/types/fees.ts b/clients/js/jito_tip_router/types/fees.ts index 9ce700de..239c0df2 100644 --- a/clients/js/jito_tip_router/types/fees.ts +++ b/clients/js/jito_tip_router/types/fees.ts @@ -1,37 +1,40 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { combineCodec, + fixDecoderSize, + fixEncoderSize, getArrayDecoder, getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, - getU8Decoder, - getU8Encoder, type Codec, type Decoder, type Encoder, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getFeeDecoder, getFeeEncoder, type Fee, type FeeArgs } from '.'; export type Fees = { activationEpoch: bigint; - reserved: Array; + reserved: ReadonlyUint8Array; baseFeeGroupsBps: Array; ncnFeeGroupsBps: Array; }; export type FeesArgs = { activationEpoch: number | bigint; - reserved: Array; + reserved: ReadonlyUint8Array; baseFeeGroupsBps: Array; ncnFeeGroupsBps: Array; }; @@ -39,7 +42,7 @@ export type FeesArgs = { export function getFeesEncoder(): Encoder { return getStructEncoder([ ['activationEpoch', getU64Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ['baseFeeGroupsBps', getArrayEncoder(getFeeEncoder(), { size: 8 })], ['ncnFeeGroupsBps', getArrayEncoder(getFeeEncoder(), { size: 8 })], ]); @@ -48,7 +51,7 @@ export function getFeesEncoder(): Encoder { export function getFeesDecoder(): Decoder { return getStructDecoder([ ['activationEpoch', getU64Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ['baseFeeGroupsBps', getArrayDecoder(getFeeDecoder(), { size: 8 })], ['ncnFeeGroupsBps', getArrayDecoder(getFeeDecoder(), { size: 8 })], ]); diff --git a/clients/js/jito_tip_router/types/index.ts b/clients/js/jito_tip_router/types/index.ts index 8c74a500..78610985 100644 --- a/clients/js/jito_tip_router/types/index.ts +++ b/clients/js/jito_tip_router/types/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ export * from './ballot'; diff --git a/clients/js/jito_tip_router/types/ncnFeeGroup.ts b/clients/js/jito_tip_router/types/ncnFeeGroup.ts index c9e3c57f..b54f2294 100644 --- a/clients/js/jito_tip_router/types/ncnFeeGroup.ts +++ b/clients/js/jito_tip_router/types/ncnFeeGroup.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/ncnFeeGroupWeight.ts b/clients/js/jito_tip_router/types/ncnFeeGroupWeight.ts index b77367dc..bb697fc2 100644 --- a/clients/js/jito_tip_router/types/ncnFeeGroupWeight.ts +++ b/clients/js/jito_tip_router/types/ncnFeeGroupWeight.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/ncnRewardRoute.ts b/clients/js/jito_tip_router/types/ncnRewardRoute.ts index a64b601a..a2095825 100644 --- a/clients/js/jito_tip_router/types/ncnRewardRoute.ts +++ b/clients/js/jito_tip_router/types/ncnRewardRoute.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/operatorVote.ts b/clients/js/jito_tip_router/types/operatorVote.ts index e50b1b3d..e34f92a0 100644 --- a/clients/js/jito_tip_router/types/operatorVote.ts +++ b/clients/js/jito_tip_router/types/operatorVote.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/progress.ts b/clients/js/jito_tip_router/types/progress.ts index 5e1cd9e4..c2a1b729 100644 --- a/clients/js/jito_tip_router/types/progress.ts +++ b/clients/js/jito_tip_router/types/progress.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/stMintEntry.ts b/clients/js/jito_tip_router/types/stMintEntry.ts index d209afb7..cfde6f0e 100644 --- a/clients/js/jito_tip_router/types/stMintEntry.ts +++ b/clients/js/jito_tip_router/types/stMintEntry.ts @@ -1,29 +1,30 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { combineCodec, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, - getArrayDecoder, - getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU128Decoder, getU128Encoder, getU64Decoder, getU64Encoder, - getU8Decoder, - getU8Encoder, type Address, type Codec, type Decoder, type Encoder, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getNcnFeeGroupDecoder, @@ -38,7 +39,7 @@ export type StMintEntry = { rewardMultiplierBps: bigint; switchboardFeed: Address; noFeedWeight: bigint; - reserved: Array; + reserved: ReadonlyUint8Array; }; export type StMintEntryArgs = { @@ -47,7 +48,7 @@ export type StMintEntryArgs = { rewardMultiplierBps: number | bigint; switchboardFeed: Address; noFeedWeight: number | bigint; - reserved: Array; + reserved: ReadonlyUint8Array; }; export function getStMintEntryEncoder(): Encoder { @@ -57,7 +58,7 @@ export function getStMintEntryEncoder(): Encoder { ['rewardMultiplierBps', getU64Encoder()], ['switchboardFeed', getAddressEncoder()], ['noFeedWeight', getU128Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ]); } @@ -68,7 +69,7 @@ export function getStMintEntryDecoder(): Decoder { ['rewardMultiplierBps', getU64Decoder()], ['switchboardFeed', getAddressDecoder()], ['noFeedWeight', getU128Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ]); } diff --git a/clients/js/jito_tip_router/types/stakeWeights.ts b/clients/js/jito_tip_router/types/stakeWeights.ts index dbe0569a..bb14f446 100644 --- a/clients/js/jito_tip_router/types/stakeWeights.ts +++ b/clients/js/jito_tip_router/types/stakeWeights.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/vaultEntry.ts b/clients/js/jito_tip_router/types/vaultEntry.ts index bfc4ea77..65aa7050 100644 --- a/clients/js/jito_tip_router/types/vaultEntry.ts +++ b/clients/js/jito_tip_router/types/vaultEntry.ts @@ -1,27 +1,28 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { combineCodec, + fixDecoderSize, + fixEncoderSize, getAddressDecoder, getAddressEncoder, - getArrayDecoder, - getArrayEncoder, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, - getU8Decoder, - getU8Encoder, type Address, type Codec, type Decoder, type Encoder, + type ReadonlyUint8Array, } from '@solana/web3.js'; export type VaultEntry = { @@ -29,7 +30,7 @@ export type VaultEntry = { stMint: Address; vaultIndex: bigint; slotRegistered: bigint; - reserved: Array; + reserved: ReadonlyUint8Array; }; export type VaultEntryArgs = { @@ -37,7 +38,7 @@ export type VaultEntryArgs = { stMint: Address; vaultIndex: number | bigint; slotRegistered: number | bigint; - reserved: Array; + reserved: ReadonlyUint8Array; }; export function getVaultEntryEncoder(): Encoder { @@ -46,7 +47,7 @@ export function getVaultEntryEncoder(): Encoder { ['stMint', getAddressEncoder()], ['vaultIndex', getU64Encoder()], ['slotRegistered', getU64Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ]); } @@ -56,7 +57,7 @@ export function getVaultEntryDecoder(): Decoder { ['stMint', getAddressDecoder()], ['vaultIndex', getU64Decoder()], ['slotRegistered', getU64Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ]); } diff --git a/clients/js/jito_tip_router/types/vaultOperatorStakeWeight.ts b/clients/js/jito_tip_router/types/vaultOperatorStakeWeight.ts index 3ba362a5..2c1f6bca 100644 --- a/clients/js/jito_tip_router/types/vaultOperatorStakeWeight.ts +++ b/clients/js/jito_tip_router/types/vaultOperatorStakeWeight.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/vaultRewardRoute.ts b/clients/js/jito_tip_router/types/vaultRewardRoute.ts index 56f1adca..94c5bfd4 100644 --- a/clients/js/jito_tip_router/types/vaultRewardRoute.ts +++ b/clients/js/jito_tip_router/types/vaultRewardRoute.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { diff --git a/clients/js/jito_tip_router/types/weightEntry.ts b/clients/js/jito_tip_router/types/weightEntry.ts index 4b9e3475..b8894d7b 100644 --- a/clients/js/jito_tip_router/types/weightEntry.ts +++ b/clients/js/jito_tip_router/types/weightEntry.ts @@ -1,26 +1,27 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama-idl/codama */ import { combineCodec, - getArrayDecoder, - getArrayEncoder, + fixDecoderSize, + fixEncoderSize, + getBytesDecoder, + getBytesEncoder, getStructDecoder, getStructEncoder, getU128Decoder, getU128Encoder, getU64Decoder, getU64Encoder, - getU8Decoder, - getU8Encoder, type Codec, type Decoder, type Encoder, + type ReadonlyUint8Array, } from '@solana/web3.js'; import { getStMintEntryDecoder, @@ -34,7 +35,7 @@ export type WeightEntry = { weight: bigint; slotSet: bigint; slotUpdated: bigint; - reserved: Array; + reserved: ReadonlyUint8Array; }; export type WeightEntryArgs = { @@ -42,7 +43,7 @@ export type WeightEntryArgs = { weight: number | bigint; slotSet: number | bigint; slotUpdated: number | bigint; - reserved: Array; + reserved: ReadonlyUint8Array; }; export function getWeightEntryEncoder(): Encoder { @@ -51,7 +52,7 @@ export function getWeightEntryEncoder(): Encoder { ['weight', getU128Encoder()], ['slotSet', getU64Encoder()], ['slotUpdated', getU64Encoder()], - ['reserved', getArrayEncoder(getU8Encoder(), { size: 128 })], + ['reserved', fixEncoderSize(getBytesEncoder(), 128)], ]); } @@ -61,7 +62,7 @@ export function getWeightEntryDecoder(): Decoder { ['weight', getU128Decoder()], ['slotSet', getU64Decoder()], ['slotUpdated', getU64Decoder()], - ['reserved', getArrayDecoder(getU8Decoder(), { size: 128 })], + ['reserved', fixDecoderSize(getBytesDecoder(), 128)], ]); } diff --git a/clients/rust/jito_tip_router/Cargo.toml b/clients/rust/jito_tip_router/Cargo.toml index d4accf2d..17cc868a 100644 --- a/clients/rust/jito_tip_router/Cargo.toml +++ b/clients/rust/jito_tip_router/Cargo.toml @@ -18,6 +18,7 @@ anchor-idl-build = [] anchor-lang = { workspace = true } borsh = { workspace = true } bytemuck = { workspace = true } +clap = { workspace = true } num-derive = { workspace = true } num-traits = { workspace = true } serde = { workspace = true } diff --git a/clients/rust/jito_tip_router/src/generated/accounts/ballot_box.rs b/clients/rust/jito_tip_router/src/generated/accounts/ballot_box.rs index 37141253..f892ca5f 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/ballot_box.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/ballot_box.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::Ballot; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/base_reward_router.rs b/clients/rust/jito_tip_router/src/generated/accounts/base_reward_router.rs index b7850ac4..f4fc650f 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/base_reward_router.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/base_reward_router.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::BaseRewardRouterRewards; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/config.rs b/clients/rust/jito_tip_router/src/generated/accounts/config.rs index f5f5a27a..4ba498a9 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/config.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/config.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::FeeConfig; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/epoch_snapshot.rs b/clients/rust/jito_tip_router/src/generated/accounts/epoch_snapshot.rs index fc44a62c..1d5eab78 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/epoch_snapshot.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/epoch_snapshot.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::Fees; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/epoch_state.rs b/clients/rust/jito_tip_router/src/generated/accounts/epoch_state.rs index 893b8c15..75983e8e 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/epoch_state.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/epoch_state.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::EpochAccountStatus; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/mod.rs b/clients/rust/jito_tip_router/src/generated/accounts/mod.rs index 78d21f53..4ea2e64b 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/mod.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#ballot_box; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/ncn_reward_router.rs b/clients/rust/jito_tip_router/src/generated/accounts/ncn_reward_router.rs index e5889719..4c7e58c9 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/ncn_reward_router.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/ncn_reward_router.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::NcnFeeGroup; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/operator_snapshot.rs b/clients/rust/jito_tip_router/src/generated/accounts/operator_snapshot.rs index e1b7c2a2..248b1aba 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/operator_snapshot.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/operator_snapshot.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::StakeWeights; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/vault_registry.rs b/clients/rust/jito_tip_router/src/generated/accounts/vault_registry.rs index 44435211..6eff53bc 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/vault_registry.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/vault_registry.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::StMintEntry; diff --git a/clients/rust/jito_tip_router/src/generated/accounts/weight_table.rs b/clients/rust/jito_tip_router/src/generated/accounts/weight_table.rs index 0d1d42cd..a3bb0979 100644 --- a/clients/rust/jito_tip_router/src/generated/accounts/weight_table.rs +++ b/clients/rust/jito_tip_router/src/generated/accounts/weight_table.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::VaultEntry; diff --git a/clients/rust/jito_tip_router/src/generated/errors/jito_tip_router.rs b/clients/rust/jito_tip_router/src/generated/errors/jito_tip_router.rs index 61049236..19df0e99 100644 --- a/clients/rust/jito_tip_router/src/generated/errors/jito_tip_router.rs +++ b/clients/rust/jito_tip_router/src/generated/errors/jito_tip_router.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use num_derive::FromPrimitive; diff --git a/clients/rust/jito_tip_router/src/generated/errors/mod.rs b/clients/rust/jito_tip_router/src/generated/errors/mod.rs index c1ea94a1..a051e728 100644 --- a/clients/rust/jito_tip_router/src/generated/errors/mod.rs +++ b/clients/rust/jito_tip_router/src/generated/errors/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod jito_tip_router; diff --git a/clients/rust/jito_tip_router/src/generated/instructions/admin_register_st_mint.rs b/clients/rust/jito_tip_router/src/generated/instructions/admin_register_st_mint.rs index 64bf2dd0..3584a503 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/admin_register_st_mint.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/admin_register_st_mint.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -69,7 +69,8 @@ impl AdminRegisterStMint { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct AdminRegisterStMintInstructionData { discriminator: u8, } @@ -332,7 +333,7 @@ impl<'a, 'b> AdminRegisterStMintCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(5 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_config_fees.rs b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_config_fees.rs index 20786a0e..c78d9e4a 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_config_fees.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_config_fees.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -58,7 +58,8 @@ impl AdminSetConfigFees { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct AdminSetConfigFeesInstructionData { discriminator: u8, } @@ -301,7 +302,7 @@ impl<'a, 'b> AdminSetConfigFeesCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(3 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(4 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_new_admin.rs b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_new_admin.rs index 148f294e..1540daf2 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_new_admin.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_new_admin.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::ConfigAdminRole; @@ -62,7 +62,8 @@ impl AdminSetNewAdmin { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct AdminSetNewAdminInstructionData { discriminator: u8, } @@ -274,7 +275,7 @@ impl<'a, 'b> AdminSetNewAdminCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(4 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(5 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_parameters.rs b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_parameters.rs index fcd3a578..1003270c 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_parameters.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_parameters.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -57,7 +57,8 @@ impl AdminSetParameters { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct AdminSetParametersInstructionData { discriminator: u8, } @@ -264,7 +265,7 @@ impl<'a, 'b> AdminSetParametersCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(3 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(4 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_st_mint.rs b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_st_mint.rs index df75989f..fd7f79c7 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_st_mint.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_st_mint.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -61,7 +61,8 @@ impl AdminSetStMint { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct AdminSetStMintInstructionData { discriminator: u8, } @@ -309,7 +310,7 @@ impl<'a, 'b> AdminSetStMintCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(4 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(5 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_tie_breaker.rs b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_tie_breaker.rs index 1169e049..b2dd88d8 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_tie_breaker.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_tie_breaker.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -69,7 +69,8 @@ impl AdminSetTieBreaker { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct AdminSetTieBreakerInstructionData { discriminator: u8, } @@ -316,7 +317,7 @@ impl<'a, 'b> AdminSetTieBreakerCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(5 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_weight.rs b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_weight.rs index 2728bf5b..b9073e9f 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/admin_set_weight.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/admin_set_weight.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -62,7 +62,8 @@ impl AdminSetWeight { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct AdminSetWeightInstructionData { discriminator: u8, } @@ -295,7 +296,7 @@ impl<'a, 'b> AdminSetWeightCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(4 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(5 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/cast_vote.rs b/clients/rust/jito_tip_router/src/generated/instructions/cast_vote.rs index a3d2aa3a..f35e98b4 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/cast_vote.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/cast_vote.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -85,7 +85,8 @@ impl CastVote { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct CastVoteInstructionData { discriminator: u8, } @@ -381,7 +382,7 @@ impl<'a, 'b> CastVoteCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(8 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(9 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/claim_with_payer.rs b/clients/rust/jito_tip_router/src/generated/instructions/claim_with_payer.rs index 87b65f25..580a8bfd 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/claim_with_payer.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/claim_with_payer.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -80,7 +80,8 @@ impl ClaimWithPayer { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct ClaimWithPayerInstructionData { discriminator: u8, } @@ -377,7 +378,7 @@ impl<'a, 'b> ClaimWithPayerCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(7 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(8 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.claim_status_payer.clone()); account_infos.push(self.tip_distribution_program.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_ncn_reward_route.rs b/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_ncn_reward_route.rs index 3c9174b1..5b7420c2 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_ncn_reward_route.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_ncn_reward_route.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -93,7 +93,8 @@ impl DistributeBaseNcnRewardRoute { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct DistributeBaseNcnRewardRouteInstructionData { discriminator: u8, } @@ -426,7 +427,7 @@ impl<'a, 'b> DistributeBaseNcnRewardRouteCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(9 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(10 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_rewards.rs b/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_rewards.rs index 5229a333..98e94396 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_rewards.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/distribute_base_rewards.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -135,7 +135,8 @@ impl DistributeBaseRewards { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct DistributeBaseRewardsInstructionData { discriminator: u8, } @@ -608,7 +609,7 @@ impl<'a, 'b> DistributeBaseRewardsCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(16 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(17 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_operator_rewards.rs b/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_operator_rewards.rs index b5cc877c..a30076f8 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_operator_rewards.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_operator_rewards.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -141,7 +141,8 @@ impl DistributeNcnOperatorRewards { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct DistributeNcnOperatorRewardsInstructionData { discriminator: u8, } @@ -628,7 +629,7 @@ impl<'a, 'b> DistributeNcnOperatorRewardsCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(17 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(18 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_vault_rewards.rs b/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_vault_rewards.rs index 3047fbc4..43e385e5 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_vault_rewards.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/distribute_ncn_vault_rewards.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -146,7 +146,8 @@ impl DistributeNcnVaultRewards { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct DistributeNcnVaultRewardsInstructionData { discriminator: u8, } @@ -650,7 +651,7 @@ impl<'a, 'b> DistributeNcnVaultRewardsCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(18 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(19 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_ballot_box.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_ballot_box.rs index aa904b93..1371ad9c 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_ballot_box.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_ballot_box.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -74,7 +74,8 @@ impl InitializeBallotBox { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeBallotBoxInstructionData { discriminator: u8, } @@ -325,7 +326,7 @@ impl<'a, 'b> InitializeBallotBoxCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(6 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(7 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_base_reward_router.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_base_reward_router.rs index d020b5d1..21120dbe 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_base_reward_router.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_base_reward_router.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -74,7 +74,8 @@ impl InitializeBaseRewardRouter { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeBaseRewardRouterInstructionData { discriminator: u8, } @@ -335,7 +336,7 @@ impl<'a, 'b> InitializeBaseRewardRouterCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(6 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(7 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_config.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_config.rs index 2e38131d..70f4ab6a 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_config.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_config.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -73,7 +73,8 @@ impl InitializeConfig { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeConfigInstructionData { discriminator: u8, } @@ -371,7 +372,7 @@ impl<'a, 'b> InitializeConfigCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(6 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(7 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_snapshot.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_snapshot.rs index 6dab10ca..2b211e80 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_snapshot.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_snapshot.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -80,7 +80,8 @@ impl InitializeEpochSnapshot { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeEpochSnapshotInstructionData { discriminator: u8, } @@ -348,7 +349,7 @@ impl<'a, 'b> InitializeEpochSnapshotCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(7 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(8 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_state.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_state.rs index efc28dab..ebe3e48b 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_state.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_epoch_state.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -68,7 +68,8 @@ impl InitializeEpochState { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeEpochStateInstructionData { discriminator: u8, } @@ -302,7 +303,7 @@ impl<'a, 'b> InitializeEpochStateCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(5 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_ncn_reward_router.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_ncn_reward_router.rs index 4049c696..4c22f464 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_ncn_reward_router.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_ncn_reward_router.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -86,7 +86,8 @@ impl InitializeNcnRewardRouter { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeNcnRewardRouterInstructionData { discriminator: u8, } @@ -397,7 +398,7 @@ impl<'a, 'b> InitializeNcnRewardRouterCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(8 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(9 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_operator_snapshot.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_operator_snapshot.rs index 33610067..4db8edd5 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_operator_snapshot.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_operator_snapshot.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -92,7 +92,8 @@ impl InitializeOperatorSnapshot { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeOperatorSnapshotInstructionData { discriminator: u8, } @@ -404,7 +405,7 @@ impl<'a, 'b> InitializeOperatorSnapshotCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(9 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(10 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_vault_registry.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_vault_registry.rs index 349261be..8fd11231 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_vault_registry.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_vault_registry.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -62,7 +62,8 @@ impl InitializeVaultRegistry { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeVaultRegistryInstructionData { discriminator: u8, } @@ -275,7 +276,7 @@ impl<'a, 'b> InitializeVaultRegistryCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(5 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.vault_registry.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/initialize_weight_table.rs b/clients/rust/jito_tip_router/src/generated/instructions/initialize_weight_table.rs index f6cd9fd7..bac68702 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/initialize_weight_table.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/initialize_weight_table.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -74,7 +74,8 @@ impl InitializeWeightTable { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct InitializeWeightTableInstructionData { discriminator: u8, } @@ -325,7 +326,7 @@ impl<'a, 'b> InitializeWeightTableCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(6 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(7 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.vault_registry.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/mod.rs b/clients/rust/jito_tip_router/src/generated/instructions/mod.rs index 58267d93..403f4bec 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/mod.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#admin_register_st_mint; diff --git a/clients/rust/jito_tip_router/src/generated/instructions/realloc_ballot_box.rs b/clients/rust/jito_tip_router/src/generated/instructions/realloc_ballot_box.rs index 12ef5990..ab4ec136 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/realloc_ballot_box.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/realloc_ballot_box.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -72,7 +72,8 @@ impl ReallocBallotBox { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct ReallocBallotBoxInstructionData { discriminator: u8, } @@ -321,7 +322,7 @@ impl<'a, 'b> ReallocBallotBoxCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(6 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(7 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/realloc_base_reward_router.rs b/clients/rust/jito_tip_router/src/generated/instructions/realloc_base_reward_router.rs index edacc643..1971b338 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/realloc_base_reward_router.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/realloc_base_reward_router.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -74,7 +74,8 @@ impl ReallocBaseRewardRouter { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct ReallocBaseRewardRouterInstructionData { discriminator: u8, } @@ -330,7 +331,7 @@ impl<'a, 'b> ReallocBaseRewardRouterCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(6 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(7 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/realloc_epoch_state.rs b/clients/rust/jito_tip_router/src/generated/instructions/realloc_epoch_state.rs index c673cca9..a966e183 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/realloc_epoch_state.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/realloc_epoch_state.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -68,7 +68,8 @@ impl ReallocEpochState { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct ReallocEpochStateInstructionData { discriminator: u8, } @@ -302,7 +303,7 @@ impl<'a, 'b> ReallocEpochStateCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(5 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/realloc_operator_snapshot.rs b/clients/rust/jito_tip_router/src/generated/instructions/realloc_operator_snapshot.rs index c923f7b7..967deb6e 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/realloc_operator_snapshot.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/realloc_operator_snapshot.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -98,7 +98,8 @@ impl ReallocOperatorSnapshot { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct ReallocOperatorSnapshotInstructionData { discriminator: u8, } @@ -430,7 +431,7 @@ impl<'a, 'b> ReallocOperatorSnapshotCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(10 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(11 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.ncn_config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/realloc_vault_registry.rs b/clients/rust/jito_tip_router/src/generated/instructions/realloc_vault_registry.rs index 4873c58f..8059897f 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/realloc_vault_registry.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/realloc_vault_registry.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -62,7 +62,8 @@ impl ReallocVaultRegistry { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct ReallocVaultRegistryInstructionData { discriminator: u8, } @@ -275,7 +276,7 @@ impl<'a, 'b> ReallocVaultRegistryCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(5 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.vault_registry.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/realloc_weight_table.rs b/clients/rust/jito_tip_router/src/generated/instructions/realloc_weight_table.rs index a4c7cfbc..6683be8b 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/realloc_weight_table.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/realloc_weight_table.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -80,7 +80,8 @@ impl ReallocWeightTable { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct ReallocWeightTableInstructionData { discriminator: u8, } @@ -348,7 +349,7 @@ impl<'a, 'b> ReallocWeightTableCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(7 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(8 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/register_vault.rs b/clients/rust/jito_tip_router/src/generated/instructions/register_vault.rs index fa205018..aa4c5c68 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/register_vault.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/register_vault.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -60,7 +60,8 @@ impl RegisterVault { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct RegisterVaultInstructionData { discriminator: u8, } @@ -271,7 +272,7 @@ impl<'a, 'b> RegisterVaultCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(5 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(6 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.config.clone()); account_infos.push(self.vault_registry.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/route_base_rewards.rs b/clients/rust/jito_tip_router/src/generated/instructions/route_base_rewards.rs index 136aeea5..c20ea91a 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/route_base_rewards.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/route_base_rewards.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -79,7 +79,8 @@ impl RouteBaseRewards { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct RouteBaseRewardsInstructionData { discriminator: u8, } @@ -363,7 +364,7 @@ impl<'a, 'b> RouteBaseRewardsCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(7 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(8 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/route_ncn_rewards.rs b/clients/rust/jito_tip_router/src/generated/instructions/route_ncn_rewards.rs index a4c3248b..294fb409 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/route_ncn_rewards.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/route_ncn_rewards.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -73,7 +73,8 @@ impl RouteNcnRewards { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct RouteNcnRewardsInstructionData { discriminator: u8, } @@ -356,7 +357,7 @@ impl<'a, 'b> RouteNcnRewardsCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(6 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(7 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/set_merkle_root.rs b/clients/rust/jito_tip_router/src/generated/instructions/set_merkle_root.rs index c6ef3546..e7136299 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/set_merkle_root.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/set_merkle_root.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -85,7 +85,8 @@ impl SetMerkleRoot { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct SetMerkleRootInstructionData { discriminator: u8, } @@ -418,7 +419,7 @@ impl<'a, 'b> SetMerkleRootCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(8 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(9 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/snapshot_vault_operator_delegation.rs b/clients/rust/jito_tip_router/src/generated/instructions/snapshot_vault_operator_delegation.rs index 8633d8f8..ae86c12f 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/snapshot_vault_operator_delegation.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/snapshot_vault_operator_delegation.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -110,7 +110,8 @@ impl SnapshotVaultOperatorDelegation { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct SnapshotVaultOperatorDelegationInstructionData { discriminator: u8, } @@ -479,7 +480,7 @@ impl<'a, 'b> SnapshotVaultOperatorDelegationCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(12 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(13 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.config.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/instructions/switchboard_set_weight.rs b/clients/rust/jito_tip_router/src/generated/instructions/switchboard_set_weight.rs index 2e430b95..5914293f 100644 --- a/clients/rust/jito_tip_router/src/generated/instructions/switchboard_set_weight.rs +++ b/clients/rust/jito_tip_router/src/generated/instructions/switchboard_set_weight.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; @@ -64,7 +64,8 @@ impl SwitchboardSetWeight { } } -#[derive(BorshDeserialize, BorshSerialize)] +#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct SwitchboardSetWeightInstructionData { discriminator: u8, } @@ -289,7 +290,7 @@ impl<'a, 'b> SwitchboardSetWeightCpi<'a, 'b> { accounts, data, }; - let mut account_infos = Vec::with_capacity(4 + 1 + remaining_accounts.len()); + let mut account_infos = Vec::with_capacity(5 + remaining_accounts.len()); account_infos.push(self.__program.clone()); account_infos.push(self.epoch_state.clone()); account_infos.push(self.ncn.clone()); diff --git a/clients/rust/jito_tip_router/src/generated/mod.rs b/clients/rust/jito_tip_router/src/generated/mod.rs index a3793d7c..6050d869 100644 --- a/clients/rust/jito_tip_router/src/generated/mod.rs +++ b/clients/rust/jito_tip_router/src/generated/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub mod accounts; diff --git a/clients/rust/jito_tip_router/src/generated/programs.rs b/clients/rust/jito_tip_router/src/generated/programs.rs index 0b6bc6c5..a457cfd5 100644 --- a/clients/rust/jito_tip_router/src/generated/programs.rs +++ b/clients/rust/jito_tip_router/src/generated/programs.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use solana_program::{pubkey, pubkey::Pubkey}; diff --git a/clients/rust/jito_tip_router/src/generated/types/ballot.rs b/clients/rust/jito_tip_router/src/generated/types/ballot.rs index c7437540..21a505f2 100644 --- a/clients/rust/jito_tip_router/src/generated/types/ballot.rs +++ b/clients/rust/jito_tip_router/src/generated/types/ballot.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/ballot_tally.rs b/clients/rust/jito_tip_router/src/generated/types/ballot_tally.rs index 76f18aaf..7b3368a7 100644 --- a/clients/rust/jito_tip_router/src/generated/types/ballot_tally.rs +++ b/clients/rust/jito_tip_router/src/generated/types/ballot_tally.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::Ballot; diff --git a/clients/rust/jito_tip_router/src/generated/types/base_fee_group.rs b/clients/rust/jito_tip_router/src/generated/types/base_fee_group.rs index 4c031ec8..29cca3d1 100644 --- a/clients/rust/jito_tip_router/src/generated/types/base_fee_group.rs +++ b/clients/rust/jito_tip_router/src/generated/types/base_fee_group.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/base_reward_router_rewards.rs b/clients/rust/jito_tip_router/src/generated/types/base_reward_router_rewards.rs index 540b89b9..6174812f 100644 --- a/clients/rust/jito_tip_router/src/generated/types/base_reward_router_rewards.rs +++ b/clients/rust/jito_tip_router/src/generated/types/base_reward_router_rewards.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/config_admin_role.rs b/clients/rust/jito_tip_router/src/generated/types/config_admin_role.rs index 5dd3fc1e..4edb00a7 100644 --- a/clients/rust/jito_tip_router/src/generated/types/config_admin_role.rs +++ b/clients/rust/jito_tip_router/src/generated/types/config_admin_role.rs @@ -1,12 +1,13 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; use borsh::BorshSerialize; +use clap::ValueEnum; use num_derive::FromPrimitive; #[derive( @@ -17,9 +18,9 @@ use num_derive::FromPrimitive; Eq, PartialEq, Copy, - PartialOrd, Hash, FromPrimitive, + ValueEnum, )] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub enum ConfigAdminRole { diff --git a/clients/rust/jito_tip_router/src/generated/types/epoch_account_status.rs b/clients/rust/jito_tip_router/src/generated/types/epoch_account_status.rs index 92ef073c..25c5e39d 100644 --- a/clients/rust/jito_tip_router/src/generated/types/epoch_account_status.rs +++ b/clients/rust/jito_tip_router/src/generated/types/epoch_account_status.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/fee.rs b/clients/rust/jito_tip_router/src/generated/types/fee.rs index 23777b2a..8211d024 100644 --- a/clients/rust/jito_tip_router/src/generated/types/fee.rs +++ b/clients/rust/jito_tip_router/src/generated/types/fee.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/fee_config.rs b/clients/rust/jito_tip_router/src/generated/types/fee_config.rs index f8463822..c519fe59 100644 --- a/clients/rust/jito_tip_router/src/generated/types/fee_config.rs +++ b/clients/rust/jito_tip_router/src/generated/types/fee_config.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::Fees; diff --git a/clients/rust/jito_tip_router/src/generated/types/fees.rs b/clients/rust/jito_tip_router/src/generated/types/fees.rs index c4961b06..821014b3 100644 --- a/clients/rust/jito_tip_router/src/generated/types/fees.rs +++ b/clients/rust/jito_tip_router/src/generated/types/fees.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::Fee; diff --git a/clients/rust/jito_tip_router/src/generated/types/mod.rs b/clients/rust/jito_tip_router/src/generated/types/mod.rs index 2fef0763..9bb3d695 100644 --- a/clients/rust/jito_tip_router/src/generated/types/mod.rs +++ b/clients/rust/jito_tip_router/src/generated/types/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#ballot; diff --git a/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group.rs b/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group.rs index 481aa250..30c18892 100644 --- a/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group.rs +++ b/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group_weight.rs b/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group_weight.rs index adfb464a..06a7358d 100644 --- a/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group_weight.rs +++ b/clients/rust/jito_tip_router/src/generated/types/ncn_fee_group_weight.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/ncn_reward_route.rs b/clients/rust/jito_tip_router/src/generated/types/ncn_reward_route.rs index 96b25d11..0ffe398d 100644 --- a/clients/rust/jito_tip_router/src/generated/types/ncn_reward_route.rs +++ b/clients/rust/jito_tip_router/src/generated/types/ncn_reward_route.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::BaseRewardRouterRewards; diff --git a/clients/rust/jito_tip_router/src/generated/types/operator_vote.rs b/clients/rust/jito_tip_router/src/generated/types/operator_vote.rs index 4171b1a6..68b97329 100644 --- a/clients/rust/jito_tip_router/src/generated/types/operator_vote.rs +++ b/clients/rust/jito_tip_router/src/generated/types/operator_vote.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::StakeWeights; diff --git a/clients/rust/jito_tip_router/src/generated/types/progress.rs b/clients/rust/jito_tip_router/src/generated/types/progress.rs index 6318ef63..f1040f76 100644 --- a/clients/rust/jito_tip_router/src/generated/types/progress.rs +++ b/clients/rust/jito_tip_router/src/generated/types/progress.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/st_mint_entry.rs b/clients/rust/jito_tip_router/src/generated/types/st_mint_entry.rs index 0e29b434..e3f3ca3e 100644 --- a/clients/rust/jito_tip_router/src/generated/types/st_mint_entry.rs +++ b/clients/rust/jito_tip_router/src/generated/types/st_mint_entry.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::NcnFeeGroup; diff --git a/clients/rust/jito_tip_router/src/generated/types/stake_weights.rs b/clients/rust/jito_tip_router/src/generated/types/stake_weights.rs index d9eee025..2fa1e86a 100644 --- a/clients/rust/jito_tip_router/src/generated/types/stake_weights.rs +++ b/clients/rust/jito_tip_router/src/generated/types/stake_weights.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::NcnFeeGroupWeight; diff --git a/clients/rust/jito_tip_router/src/generated/types/vault_entry.rs b/clients/rust/jito_tip_router/src/generated/types/vault_entry.rs index d27ba240..687a108a 100644 --- a/clients/rust/jito_tip_router/src/generated/types/vault_entry.rs +++ b/clients/rust/jito_tip_router/src/generated/types/vault_entry.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/vault_operator_stake_weight.rs b/clients/rust/jito_tip_router/src/generated/types/vault_operator_stake_weight.rs index 2d47eedb..0e0e10e4 100644 --- a/clients/rust/jito_tip_router/src/generated/types/vault_operator_stake_weight.rs +++ b/clients/rust/jito_tip_router/src/generated/types/vault_operator_stake_weight.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::NcnFeeGroup; diff --git a/clients/rust/jito_tip_router/src/generated/types/vault_reward_route.rs b/clients/rust/jito_tip_router/src/generated/types/vault_reward_route.rs index e1bd4930..31cba391 100644 --- a/clients/rust/jito_tip_router/src/generated/types/vault_reward_route.rs +++ b/clients/rust/jito_tip_router/src/generated/types/vault_reward_route.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/clients/rust/jito_tip_router/src/generated/types/weight_entry.rs b/clients/rust/jito_tip_router/src/generated/types/weight_entry.rs index 19636fc4..f1b8fadb 100644 --- a/clients/rust/jito_tip_router/src/generated/types/weight_entry.rs +++ b/clients/rust/jito_tip_router/src/generated/types/weight_entry.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::StMintEntry; diff --git a/package.json b/package.json index 5ac2eaa8..eb669c33 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,13 @@ "version": "0.0.1", "description": "Jito MEV Tip Distribution NCN", "dependencies": { - "@kinobi-so/nodes-from-anchor": "^0.21.1", - "@kinobi-so/renderers": "^0.21.1", - "@kinobi-so/renderers-js-umi": "^0.21.1", - "@kinobi-so/renderers-rust": "^0.21.1", + "@codama/nodes-from-anchor": "^1.0.1", + "@codama/renderers": "^1.0.4", + "codama": "^1.1.0", "corepack": "^0.29.3", - "kinobi": "^0.21.1", "yarn": "2.4.3" }, "scripts": { "generate-clients": "node scripts/generate-clients.js && node scripts/update-attributes.js" } -} \ No newline at end of file +} diff --git a/scripts/generate-clients.js b/scripts/generate-clients.js index 3119c703..7f015b64 100644 --- a/scripts/generate-clients.js +++ b/scripts/generate-clients.js @@ -1,7 +1,7 @@ -const kinobi = require("kinobi"); -const anchorIdl = require("@kinobi-so/nodes-from-anchor"); +const codama = require("codama"); +const anchorIdl = require("@codama/nodes-from-anchor"); const path = require("path"); -const renderers = require('@kinobi-so/renderers'); +const renderers = require('@codama/renderers'); // Paths. const projectRoot = path.join(__dirname, ".."); @@ -15,104 +15,115 @@ const jsClientsDir = path.join(__dirname, "..", "clients", "js"); const rustWeightTableClientDir = path.join(rustClientsDir, "jito_tip_router"); const jsWeightTableClientDir = path.join(jsClientsDir, "jito_tip_router"); const weightTableRootNode = anchorIdl.rootNodeFromAnchor(require(path.join(idlDir, "jito_tip_router.json"))); -const weightTableKinobi = kinobi.createFromRoot(weightTableRootNode); -weightTableKinobi.update(kinobi.bottomUpTransformerVisitor([ +const weightTableKinobi = codama.createFromRoot(weightTableRootNode); +weightTableKinobi.update(codama.bottomUpTransformerVisitor([ { // PodU128 -> u128 - select: (node) => { - return ( - kinobi.isNode(node, "structFieldTypeNode") && - node.type.name === "podU128" - ); + select: (nodes) => { + for (let i = 0; i < nodes.length; i++) { + if (codama.isNode(nodes[i], "structFieldTypeNode") && nodes[i].type.name === "podU128") { + return true; + } + } + + return false; }, transform: (node) => { - kinobi.assertIsNode(node, "structFieldTypeNode"); + codama.assertIsNode(node, ["structFieldTypeNode", "definedTypeLinkNode"]); return { ...node, - type: kinobi.numberTypeNode("u128"), + type: codama.numberTypeNode("u128"), }; }, }, { // PodU64 -> u64 - select: (node) => { - return ( - kinobi.isNode(node, "structFieldTypeNode") && - node.type.name === "podU64" - ); + select: (nodes) => { + for (let i = 0; i < nodes.length; i++) { + if (codama.isNode(nodes[i], "structFieldTypeNode") && nodes[i].type.name === "podU64") { + return true; + } + } + + return false; }, transform: (node) => { - kinobi.assertIsNode(node, "structFieldTypeNode"); + codama.assertIsNode(node, ["structFieldTypeNode", "definedTypeLinkNode"]); return { ...node, - type: kinobi.numberTypeNode("u64"), + type: codama.numberTypeNode("u64"), }; }, }, { // PodU32 -> u32 - select: (node) => { - return ( - kinobi.isNode(node, "structFieldTypeNode") && - node.type.name === "podU32" - ); + select: (nodes) => { + for (let i = 0; i < nodes.length; i++) { + if (codama.isNode(nodes[i], "structFieldTypeNode") && nodes[i].type.name === "podU32") { + return true; + } + } + + return false; }, transform: (node) => { - kinobi.assertIsNode(node, "structFieldTypeNode"); + codama.assertIsNode(node, ["structFieldTypeNode", "definedTypeLinkNode"]); return { ...node, - type: kinobi.numberTypeNode("u32"), + type: codama.numberTypeNode("u32"), }; }, }, { // PodU16 -> u16 - select: (node) => { - return ( - kinobi.isNode(node, "structFieldTypeNode") && - node.type.name === "podU16" - ); + select: (nodes) => { + for (let i = 0; i < nodes.length; i++) { + if (codama.isNode(nodes[i], "structFieldTypeNode") && nodes[i].type.name === "podU16") { + return true; + } + } + + return false; }, transform: (node) => { - kinobi.assertIsNode(node, "structFieldTypeNode"); + codama.assertIsNode(node, ["structFieldTypeNode", "definedTypeLinkNode"]); return { ...node, - type: kinobi.numberTypeNode("u16"), + type: codama.numberTypeNode("u16"), }; }, }, { // PodBool -> bool - select: (node) => { - return ( - kinobi.isNode(node, "structFieldTypeNode") && - node.type.name === "podBool" - ); + select: (nodes) => { + for (let i = 0; i < nodes.length; i++) { + if (codama.isNode(nodes[i], "structFieldTypeNode") && nodes[i].type.name === "podBool") { + return true; + } + } + + return false; }, transform: (node) => { - kinobi.assertIsNode(node, "structFieldTypeNode"); + codama.assertIsNode(node, ["structFieldTypeNode", "definedTypeLinkNode"]); return { ...node, - type: kinobi.numberTypeNode("bool"), + type: codama.numberTypeNode("bool"), }; }, }, // add 8 byte discriminator to accountNode { - select: (node) => { - return ( - kinobi.isNode(node, "accountNode") - ); - }, + select: '[accountNode]', transform: (node) => { - kinobi.assertIsNode(node, "accountNode"); + codama.assertIsNode(node, "accountNode"); return { ...node, data: { ...node.data, fields: [ - kinobi.structFieldTypeNode({ name: 'discriminator', type: kinobi.numberTypeNode('u64') }), + codama.structFieldTypeNode({ name: 'discriminator', type: codama.numberTypeNode('u64') }), ...node.data.fields ] } @@ -120,10 +131,28 @@ weightTableKinobi.update(kinobi.bottomUpTransformerVisitor([ }, }, ])); + +const traitOptions = { + baseDefaults: [ + 'borsh::BorshSerialize', + 'borsh::BorshDeserialize', + 'serde::Serialize', + 'serde::Deserialize', + 'Clone', + 'Debug', + 'Eq', + 'PartialEq', + ], + dataEnumDefaults: [], + scalarEnumDefaults: ['Copy', 'Hash', 'num_derive::FromPrimitive', 'clap::ValueEnum'], + structDefaults: [], +}; + weightTableKinobi.accept(renderers.renderRustVisitor(path.join(rustWeightTableClientDir, "src", "generated"), { formatCode: true, crateFolder: rustWeightTableClientDir, deleteFolderBeforeRendering: true, - toolchain: "+nightly-2024-07-25" + toolchain: "+nightly-2024-07-25", + traitOptions, })); weightTableKinobi.accept(renderers.renderJavaScriptVisitor(path.join(jsWeightTableClientDir), {})); diff --git a/yarn.lock b/yarn.lock index 2ae13cb0..6503fbbf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,127 +2,176 @@ # yarn lockfile v1 -"@kinobi-so/errors@0.21.5": - version "0.21.5" - resolved "https://registry.npmjs.org/@kinobi-so/errors/-/errors-0.21.5.tgz" - integrity sha512-IqPMOe0qbmuBI8vux9HU+tvx+SaCVk32g5GnRvYxJh6OmpYOEuJRg02nT2XtYPeYWB2IFKJ1X2AnwTbEz9Vx8Q== +"@codama/errors@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@codama/errors/-/errors-1.1.0.tgz#3ee488f2a597a0508881b0759a486f5b96434d1a" + integrity sha512-njLWTPYgz5uJP02617CX0BZCHGHrHnQvKroU0z4YcJZiaMQlw3VLzb+e2ZU2X+uVpp+3ITJZ9yexuoEhJBVQdQ== dependencies: - "@kinobi-so/node-types" "0.21.5" + "@codama/node-types" "1.1.0" chalk "^5.3.0" commander "^12.1.0" -"@kinobi-so/node-types@0.21.5": - version "0.21.5" - resolved "https://registry.npmjs.org/@kinobi-so/node-types/-/node-types-0.21.5.tgz" - integrity sha512-OKpk08+nTsO25xSZBT+PXpjx2FOHfn7jr0CbnQZ+ulfRa+dr3eSf7zSn+0ipKjG+FFWUUGpizgSkgpTQMjAqLA== - -"@kinobi-so/nodes-from-anchor@0.21.3", "@kinobi-so/nodes-from-anchor@^0.21.1": - version "0.21.3" - resolved "https://registry.npmjs.org/@kinobi-so/nodes-from-anchor/-/nodes-from-anchor-0.21.3.tgz" - integrity sha512-mar3UeJNx61k77NhucqYIwUXZvC0b6mhLYFksQY0Wz+gCFTWLr8exxB7KmgSycT+XuFNOydpYnEOeMa5lUywBQ== - dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/visitors" "0.21.5" - "@noble/hashes" "^1.5.0" - -"@kinobi-so/nodes@0.21.5": - version "0.21.5" - resolved "https://registry.npmjs.org/@kinobi-so/nodes/-/nodes-0.21.5.tgz" - integrity sha512-6iu9/GXrVs14olVeUAAw73BK2js7RGefVGHBDF6PKcvw6i0DlxhPkZiNOSpzweaeTmZsowHO7xEJKov0446fbQ== - dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/node-types" "0.21.5" - -"@kinobi-so/renderers-core@0.21.3": - version "0.21.3" - resolved "https://registry.npmjs.org/@kinobi-so/renderers-core/-/renderers-core-0.21.3.tgz" - integrity sha512-Ow1x0IaRmUlqQUAFTQZpq56wpkB6YKdnpNmfjM8IS/ssgz2IG5Jw3LREvNLvdXwpp/eyjSYOsux2RDFJkERl0g== - dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/visitors-core" "0.21.5" - -"@kinobi-so/renderers-js-umi@0.21.7", "@kinobi-so/renderers-js-umi@^0.21.1": - version "0.21.7" - resolved "https://registry.npmjs.org/@kinobi-so/renderers-js-umi/-/renderers-js-umi-0.21.7.tgz" - integrity sha512-OgM8L44jWYww7gnCSC7gSNPC+yWVEPCj/cffhDb1O1WfglpeQiHFiRUEnBc8GCGF8Oc6Azn2jjQlja8JNsqZmA== - dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/renderers-core" "0.21.3" - "@kinobi-so/validators" "0.21.5" - "@kinobi-so/visitors-core" "0.21.5" +"@codama/errors@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@codama/errors/-/errors-1.2.0.tgz#5292fac4f61cde9f98f453f178f647edd8f804a8" + integrity sha512-7cLTgu1UpDkvDIx+9WclYaQr4vuFxnRYlZ5GFhZ0vP3QPlhj2FORwDC+crUy+YzboNKL7tGg53CAOpF61HnEpg== + dependencies: + "@codama/node-types" "1.2.0" + chalk "^5.4.1" + commander "^12.1.0" + +"@codama/node-types@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@codama/node-types/-/node-types-1.1.0.tgz#8223d3cb67386ec9617cb04627abecdbcd8ce8ee" + integrity sha512-+J6E0didCY0+8dr2vI6ag+FMaMr3SemvXJYKOhxKEJ6HXR/J+7cddpptXyrIhLa8R2Kw0yzIG9VjAlUGL7u8OQ== + +"@codama/node-types@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@codama/node-types/-/node-types-1.2.0.tgz#7669e68b43a523cf3ff165129417173046927cc7" + integrity sha512-r/gBY8vi2tsrThtT1uKXQvI2c7Zv3hJH/+a35JJS/pkkt2tsAgX45/9TQWMepiGECfak8OhiMmqb+Naf+qDg4w== + +"@codama/nodes-from-anchor@1.1.0", "@codama/nodes-from-anchor@^1.0.1": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@codama/nodes-from-anchor/-/nodes-from-anchor-1.1.0.tgz#9ee635921cc206ef8957dca4ec61a54976852e4c" + integrity sha512-cEe3tsQMZU8y3YJOi0HOSbsZcTiKP0AxC4XVMFmFJjJe8lKWZW6hghxKG9N4YyryujtZkSGvdpxk+rnmd12Lwg== + dependencies: + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + "@codama/visitors" "1.2.0" + "@noble/hashes" "^1.6.1" + +"@codama/nodes@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@codama/nodes/-/nodes-1.1.0.tgz#cc843b6b8be8ee7fbdd6eaad57dd37b55a30b90d" + integrity sha512-a6lX45CqfvdU5jKx63zWVEUbyAjEKqjye3EkboKNEJIM0RDmDwtTqNuQBR8HHx9nO7EBPypxYOXtGpmVXg0xYw== + dependencies: + "@codama/errors" "1.1.0" + "@codama/node-types" "1.1.0" + +"@codama/nodes@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@codama/nodes/-/nodes-1.2.0.tgz#db0911f9295321413781d36d067d79721623d3d2" + integrity sha512-3wb449llwUOYpHlIxKAwNFpJpazOTrpC3fhoFd3l0gSVKq77qz1IbYq8M3mVxNLSnXv8bHNrW0BCenyzjO1e2g== + dependencies: + "@codama/errors" "1.2.0" + "@codama/node-types" "1.2.0" + +"@codama/renderers-core@1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@codama/renderers-core/-/renderers-core-1.0.2.tgz#a670ca5a63a3c72a0fe55026572daeb21e4fb87b" + integrity sha512-feDqtNB0PIocgrDIPdG0mdv+l28VEA64gExg1NdR2aiydp0LxpBrU5gnPOqxiZ2et4ARtt9yGU959CYdzqh2Qg== + dependencies: + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + "@codama/visitors-core" "1.2.0" + +"@codama/renderers-js-umi@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@codama/renderers-js-umi/-/renderers-js-umi-1.1.1.tgz#c44caa9fb473352e9a8e92aff953b22a1d648dac" + integrity sha512-QR7a6xhkt9ohq7YgNBjAfMc1fj9B9hCE8OJM0vXLlcbrbrtEdl/eGPrbrInuINXjY0wxLbgxn3XXEYhVfZnRzw== + dependencies: + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + "@codama/renderers-core" "1.0.2" + "@codama/validators" "1.2.0" + "@codama/visitors-core" "1.2.0" "@solana/codecs-strings" rc nunjucks "^3.2.4" - prettier "^3.3.3" - -"@kinobi-so/renderers-js@0.21.9": - version "0.21.9" - resolved "https://registry.npmjs.org/@kinobi-so/renderers-js/-/renderers-js-0.21.9.tgz" - integrity sha512-ZwN3UIYGZHu1V9TYsCPolVPdScR71r4PrLVVLsxixIxPBhdTMIgUbXK4OqHkzxaR5kn8Ssrvuq6+V2f7XFbVSg== - dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/nodes-from-anchor" "0.21.3" - "@kinobi-so/renderers-core" "0.21.3" - "@kinobi-so/visitors-core" "0.21.5" + prettier "^3.4.2" + +"@codama/renderers-js@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@codama/renderers-js/-/renderers-js-1.1.1.tgz#3b7d35f123e4b355f7595dee8f8fdb64004895cb" + integrity sha512-lAsZkFswL7FI59wgzenVRgK2Hcw0u9bkMk+BMupoFQlOs29xZb3xihtL2CBfEsvzLbHdq/XdDSypiVfuD6A3Cg== + dependencies: + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + "@codama/nodes-from-anchor" "1.1.0" + "@codama/renderers-core" "1.0.2" + "@codama/visitors-core" "1.2.0" "@solana/codecs-strings" rc nunjucks "^3.2.4" - prettier "^3.3.3" + prettier "^3.4.2" -"@kinobi-so/renderers-rust@0.21.8", "@kinobi-so/renderers-rust@^0.21.1": - version "0.21.8" - resolved "https://registry.npmjs.org/@kinobi-so/renderers-rust/-/renderers-rust-0.21.8.tgz" - integrity sha512-rjWK+hWnniAcfaVAPwgzom3LtXkGj4iZ/LPsm8LpgfSdTbXLT2HihVgyQGQDpSTDdVvGb4PuuX7A01Et3N7iog== +"@codama/renderers-rust@1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@codama/renderers-rust/-/renderers-rust-1.0.5.tgz#6c898a1e8f4ff7c041789ab782252c7f03417ec5" + integrity sha512-1b+VVcww1Po/2xza3FReEhjoDvpIOdVKjToxnIGZWSy1RWmc+ULEmzJr8OfzWX4+9cIHAuGqrf/Nvqb9Z4tJRQ== dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/renderers-core" "0.21.3" - "@kinobi-so/visitors-core" "0.21.5" + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + "@codama/renderers-core" "1.0.2" + "@codama/visitors-core" "1.2.0" "@solana/codecs-strings" rc nunjucks "^3.2.4" -"@kinobi-so/renderers@^0.21.1": - version "0.21.5" - resolved "https://registry.npmjs.org/@kinobi-so/renderers/-/renderers-0.21.5.tgz" - integrity sha512-JwHaYEjx1l/nf302b2RoZv3TEsBDsE1u+sgEt+noC3WXjqHVJJkjZ7DTL6IBSgBerR9OwukraCN7RWK2XQVwgA== +"@codama/renderers@^1.0.4": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@codama/renderers/-/renderers-1.0.5.tgz#f8d41faf09da65d4bc60fac2e9f684e6d8688272" + integrity sha512-0xD8ICxcpLjDWRlUXlNmUdL4sGAiUSpavPqfHGpAiVDAaysTtJuTbCN/WjC52nHJqOE31T1fBT2053XKOAcWdA== dependencies: - "@kinobi-so/renderers-js" "0.21.9" - "@kinobi-so/renderers-js-umi" "0.21.7" - "@kinobi-so/renderers-rust" "0.21.8" - -"@kinobi-so/validators@0.21.5": - version "0.21.5" - resolved "https://registry.npmjs.org/@kinobi-so/validators/-/validators-0.21.5.tgz" - integrity sha512-JYZWHgma1TrnjhiUJn5/oYS9XfeirUBhwpuTPDRmRrSiHHv329gjWimzZO2uLAm5S5PgFyhLTz+S6jjxRsdNXg== + "@codama/renderers-js" "1.1.1" + "@codama/renderers-js-umi" "1.1.1" + "@codama/renderers-rust" "1.0.5" + +"@codama/validators@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@codama/validators/-/validators-1.1.0.tgz#804b5d0e44ed977ab82d6df0daf8ca8f68f2c23f" + integrity sha512-TVzTjN2m1bGauLnqJE12lZfZf1L2C9Hal7/i0sjNmtc3UbUL7pIH5Rp4bFSyfDuyhMD0JfxtJqr3YlK6yXoqkA== dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/visitors-core" "0.21.5" - -"@kinobi-so/visitors-core@0.21.5": - version "0.21.5" - resolved "https://registry.npmjs.org/@kinobi-so/visitors-core/-/visitors-core-0.21.5.tgz" - integrity sha512-qNq9CcDh1P/A0BRR7zEdRpzeWL6ObAowMNWpkxZTT2BKqejK9oKWSh2/gzg6ehcn2Fn/J5DE8bnKZfAlEww95g== + "@codama/errors" "1.1.0" + "@codama/nodes" "1.1.0" + "@codama/visitors-core" "1.1.0" + +"@codama/validators@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@codama/validators/-/validators-1.2.0.tgz#12b6425f69e7a1fcf718f31f515e982b4565f027" + integrity sha512-/HV7aMgzm93vUqPsnWnDYUPx3hz6i1GxmY3CrW0Ivo0hoyR73Es4t48jYcIjYBb4bqQlO2eTfWuXUEAjwTsCAA== dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + "@codama/visitors-core" "1.2.0" + +"@codama/visitors-core@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@codama/visitors-core/-/visitors-core-1.1.0.tgz#b7aaf5ca92fabb91a480458cb61046c0e3b39cc9" + integrity sha512-NBJAgGmVdFIWHDsKSKjTYbIfSZRyRzgqPzmHFgRIRjy4Uw63zOwP5Yk1bctWrP6YRlGjrTunfVkOIA6QiVr6lg== + dependencies: + "@codama/errors" "1.1.0" + "@codama/nodes" "1.1.0" json-stable-stringify "^1.1.1" -"@kinobi-so/visitors@0.21.5": - version "0.21.5" - resolved "https://registry.npmjs.org/@kinobi-so/visitors/-/visitors-0.21.5.tgz" - integrity sha512-RCJFaN1Q1f/MQW6PP3Oz0fgNXFVmfUEyErMzPM9CjBi1j2BJzTjff7IzEjbTpG7SbDY91eEyTDcl430ygcDBkA== +"@codama/visitors-core@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@codama/visitors-core/-/visitors-core-1.2.0.tgz#f52fb376c705cb3d13a814e13c856c8a2185f599" + integrity sha512-sr8+xGx+QPAMedBY0wT5W0HAQJypBWNPGWKPImNg5t3Da1DC5oofrW3JHmqtSUHDdFbDXtagcEZ32DGqJFJ5hA== + dependencies: + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + json-stable-stringify "^1.2.1" + +"@codama/visitors@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@codama/visitors/-/visitors-1.1.0.tgz#22ec6e0be2b3babc9cc74e80ed6a64af84f71fbb" + integrity sha512-QpAShuxemS8oplHDXNqnUnYwhJq58RZjfZ/KMIpdm88OCBnQRO4YfM/zQLEvXjA+tpwJpe4WnL6opTLLnSYThw== dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/visitors-core" "0.21.5" + "@codama/errors" "1.1.0" + "@codama/nodes" "1.1.0" + "@codama/visitors-core" "1.1.0" + +"@codama/visitors@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@codama/visitors/-/visitors-1.2.0.tgz#04d73fada915464338b6426876febe08defa7d7d" + integrity sha512-3edQ1aCVdzYK6eNSUSCgs+P4SJ0UyrVpU7s1ykQog1El//ZkjGJNAAjyuCuA4EMuKxDW0sQa9RXkPfIJSxpa6g== + dependencies: + "@codama/errors" "1.2.0" + "@codama/nodes" "1.2.0" + "@codama/visitors-core" "1.2.0" -"@noble/hashes@^1.5.0": - version "1.5.0" - resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.5.0.tgz" - integrity sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA== +"@noble/hashes@^1.6.1": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.7.0.tgz#5d9e33af2c7d04fee35de1519b80c958b2e35e39" + integrity sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w== "@solana/codecs-core@2.0.0-rc.3": version "2.0.0-rc.3" @@ -166,6 +215,14 @@ asap@^2.0.3: resolved "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== +call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz#32e5892e6361b29b0b545ba6f7763378daca2840" + integrity sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + call-bind@^1.0.5: version "1.0.7" resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz" @@ -177,11 +234,44 @@ call-bind@^1.0.5: get-intrinsic "^1.2.4" set-function-length "^1.2.1" +call-bind@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.8.tgz#0736a9660f537e3388826f440d5ec45f744eaa4c" + integrity sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww== + dependencies: + call-bind-apply-helpers "^1.0.0" + es-define-property "^1.0.0" + get-intrinsic "^1.2.4" + set-function-length "^1.2.2" + +call-bound@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.3.tgz#41cfd032b593e39176a71533ab4f384aa04fd681" + integrity sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA== + dependencies: + call-bind-apply-helpers "^1.0.1" + get-intrinsic "^1.2.6" + chalk@^5.3.0: version "5.3.0" resolved "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz" integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== +chalk@^5.4.1: + version "5.4.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.4.1.tgz#1b48bf0963ec158dce2aacf69c093ae2dd2092d8" + integrity sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w== + +codama@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/codama/-/codama-1.1.0.tgz#7f452b3821bb7589d8ee7a7e55fb62a80e8638b4" + integrity sha512-dr0iTND6q9goY0CwNmX5tk53iJ/KhziN/js/x2g4Dvl5K6tUGy+iR20yeBYw8lq1rwUDIocOEgKVq/HcKOI9yA== + dependencies: + "@codama/errors" "1.1.0" + "@codama/nodes" "1.1.0" + "@codama/validators" "1.1.0" + "@codama/visitors" "1.1.0" + commander@^12.1.0: version "12.1.0" resolved "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz" @@ -206,6 +296,15 @@ define-data-property@^1.1.4: es-errors "^1.3.0" gopd "^1.0.1" +dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + es-define-property@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz" @@ -213,11 +312,23 @@ es-define-property@^1.0.0: dependencies: get-intrinsic "^1.2.4" +es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== + es-errors@^1.3.0: version "1.3.0" resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== +es-object-atoms@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" + integrity sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw== + dependencies: + es-errors "^1.3.0" + function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" @@ -234,6 +345,30 @@ get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: has-symbols "^1.0.3" hasown "^2.0.0" +get-intrinsic@^1.2.6: + version "1.2.7" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.7.tgz#dcfcb33d3272e15f445d15124bc0a216189b9044" + integrity sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + function-bind "^1.1.2" + get-proto "^1.0.0" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" + +get-proto@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + gopd@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz" @@ -241,6 +376,11 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" +gopd@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" + integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== + has-property-descriptors@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz" @@ -258,7 +398,12 @@ has-symbols@^1.0.3: resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== -hasown@^2.0.0: +has-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" + integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== + +hasown@^2.0.0, hasown@^2.0.2: version "2.0.2" resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== @@ -280,20 +425,26 @@ json-stable-stringify@^1.1.1: jsonify "^0.0.1" object-keys "^1.1.1" +json-stable-stringify@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.2.1.tgz#addb683c2b78014d0b78d704c2fcbdf0695a60e2" + integrity sha512-Lp6HbbBgosLmJbjx0pBLbgvx68FaFU1sdkmBuckmhhJ88kL13OA51CDtR2yJB50eCNMH9wRqtQNNiAqQH4YXnA== + dependencies: + call-bind "^1.0.8" + call-bound "^1.0.3" + isarray "^2.0.5" + jsonify "^0.0.1" + object-keys "^1.1.1" + jsonify@^0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz" integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg== -kinobi@^0.21.1: - version "0.21.5" - resolved "https://registry.npmjs.org/kinobi/-/kinobi-0.21.5.tgz" - integrity sha512-1xgN00od8x4tokR1Xuqv5Gbg0Iqo9bzrEvA9o2rm63vXqoW7/C+TN1voPhj1SQE4h2VmpfM3MD1clTUvJK0J2g== - dependencies: - "@kinobi-so/errors" "0.21.5" - "@kinobi-so/nodes" "0.21.5" - "@kinobi-so/validators" "0.21.5" - "@kinobi-so/visitors" "0.21.5" +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== nunjucks@^3.2.4: version "3.2.4" @@ -309,14 +460,14 @@ object-keys@^1.1.1: resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -prettier@^3.3.3: - version "3.3.3" - resolved "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz" - integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== +prettier@^3.4.2: + version "3.4.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f" + integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ== -set-function-length@^1.2.1: +set-function-length@^1.2.1, set-function-length@^1.2.2: version "1.2.2" - resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== dependencies: define-data-property "^1.1.4"