@kestrelfi/lyc-sdk 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist/carry-XU3WUD22.mjs +20 -0
- package/dist/carry-XU3WUD22.mjs.map +1 -0
- package/dist/chunk-2T23QQCX.mjs +3707 -0
- package/dist/chunk-2T23QQCX.mjs.map +1 -0
- package/dist/chunk-GOW6CARW.mjs +3969 -0
- package/dist/chunk-GOW6CARW.mjs.map +1 -0
- package/dist/chunk-ZPXXY3QV.mjs +9330 -0
- package/dist/chunk-ZPXXY3QV.mjs.map +1 -0
- package/dist/{sdks/long-yield-carry/src/idl/long_yield_carry.d.ts → core-DP6wfpME.d.mts} +3242 -84
- package/dist/core-DP6wfpME.d.ts +10485 -0
- package/dist/core.d.mts +8 -0
- package/dist/core.d.ts +8 -0
- package/dist/core.js +12348 -0
- package/dist/core.js.map +1 -0
- package/dist/core.mjs +72 -0
- package/dist/core.mjs.map +1 -0
- package/dist/index.d.mts +2537 -0
- package/dist/index.d.ts +2537 -0
- package/dist/index.js +23884 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5898 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +56 -10
- package/.env.example +0 -11
- package/dist/sdks/long-yield-carry/scripts/asyncBurn.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/asyncBurn.js +0 -117
- package/dist/sdks/long-yield-carry/scripts/burnToken.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/burnToken.js +0 -98
- package/dist/sdks/long-yield-carry/scripts/claimIncentives.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/claimIncentives.js +0 -108
- package/dist/sdks/long-yield-carry/scripts/closeCpiPlans.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/closeCpiPlans.js +0 -93
- package/dist/sdks/long-yield-carry/scripts/collectInterest.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/collectInterest.js +0 -164
- package/dist/sdks/long-yield-carry/scripts/collectProtocolFees.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/collectProtocolFees.js +0 -120
- package/dist/sdks/long-yield-carry/scripts/computeOptimalAllocations.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/computeOptimalAllocations.js +0 -84
- package/dist/sdks/long-yield-carry/scripts/createToken.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/createToken.js +0 -76
- package/dist/sdks/long-yield-carry/scripts/createTokenLendingPosition.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/createTokenLendingPosition.js +0 -157
- package/dist/sdks/long-yield-carry/scripts/createYieldingBank.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/createYieldingBank.js +0 -69
- package/dist/sdks/long-yield-carry/scripts/decreaseCarryPositions.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/decreaseCarryPositions.js +0 -247
- package/dist/sdks/long-yield-carry/scripts/depositUnlentCollateral.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/depositUnlentCollateral.js +0 -90
- package/dist/sdks/long-yield-carry/scripts/emergency/deleverageAll.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/emergency/deleverageAll.js +0 -202
- package/dist/sdks/long-yield-carry/scripts/emergency/triggerCircuitBreaker.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/emergency/triggerCircuitBreaker.js +0 -68
- package/dist/sdks/long-yield-carry/scripts/env.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/env.js +0 -8
- package/dist/sdks/long-yield-carry/scripts/findTxs.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/findTxs.js +0 -143
- package/dist/sdks/long-yield-carry/scripts/increaseCarryPositions.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/increaseCarryPositions.js +0 -112
- package/dist/sdks/long-yield-carry/scripts/inspect/format.d.ts +0 -13
- package/dist/sdks/long-yield-carry/scripts/inspect/format.js +0 -363
- package/dist/sdks/long-yield-carry/scripts/inspect.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/inspect.js +0 -108
- package/dist/sdks/long-yield-carry/scripts/localUtils.d.ts +0 -53
- package/dist/sdks/long-yield-carry/scripts/localUtils.js +0 -191
- package/dist/sdks/long-yield-carry/scripts/mintToken.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/mintToken.js +0 -103
- package/dist/sdks/long-yield-carry/scripts/processAsyncBurns.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/processAsyncBurns.js +0 -76
- package/dist/sdks/long-yield-carry/scripts/rebalanceToken.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/rebalanceToken.js +0 -210
- package/dist/sdks/long-yield-carry/scripts/rebalanceYieldingBank.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/rebalanceYieldingBank.js +0 -149
- package/dist/sdks/long-yield-carry/scripts/recollateralizeLoss.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/recollateralizeLoss.js +0 -64
- package/dist/sdks/long-yield-carry/scripts/refresh.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/refresh.js +0 -101
- package/dist/sdks/long-yield-carry/scripts/updateFees.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/updateFees.js +0 -369
- package/dist/sdks/long-yield-carry/scripts/updateGeneralLut.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/updateGeneralLut.js +0 -27
- package/dist/sdks/long-yield-carry/scripts/updateLendingPositionConfig.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/updateLendingPositionConfig.js +0 -127
- package/dist/sdks/long-yield-carry/scripts/updateTokenLuts.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/updateTokenLuts.js +0 -27
- package/dist/sdks/long-yield-carry/scripts/updateTokenMetadata.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/updateTokenMetadata.js +0 -194
- package/dist/sdks/long-yield-carry/scripts/updateYieldingBankConfig.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/updateYieldingBankConfig.js +0 -84
- package/dist/sdks/long-yield-carry/scripts/withdrawUnlentCollateral.d.ts +0 -1
- package/dist/sdks/long-yield-carry/scripts/withdrawUnlentCollateral.js +0 -140
- package/dist/sdks/long-yield-carry/src/client/account.d.ts +0 -152
- package/dist/sdks/long-yield-carry/src/client/account.js +0 -349
- package/dist/sdks/long-yield-carry/src/client/builders/args.d.ts +0 -299
- package/dist/sdks/long-yield-carry/src/client/builders/args.js +0 -2
- package/dist/sdks/long-yield-carry/src/client/builders/asyncBurnBuilder.d.ts +0 -20
- package/dist/sdks/long-yield-carry/src/client/builders/asyncBurnBuilder.js +0 -212
- package/dist/sdks/long-yield-carry/src/client/builders/base.d.ts +0 -77
- package/dist/sdks/long-yield-carry/src/client/builders/base.js +0 -191
- package/dist/sdks/long-yield-carry/src/client/builders/burnTokenBuilder.d.ts +0 -18
- package/dist/sdks/long-yield-carry/src/client/builders/burnTokenBuilder.js +0 -165
- package/dist/sdks/long-yield-carry/src/client/builders/claimIncentivesBuilder.d.ts +0 -9
- package/dist/sdks/long-yield-carry/src/client/builders/claimIncentivesBuilder.js +0 -135
- package/dist/sdks/long-yield-carry/src/client/builders/collectFeesBuilder.d.ts +0 -14
- package/dist/sdks/long-yield-carry/src/client/builders/collectFeesBuilder.js +0 -50
- package/dist/sdks/long-yield-carry/src/client/builders/collectInterestBuilder.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/client/builders/collectInterestBuilder.js +0 -86
- package/dist/sdks/long-yield-carry/src/client/builders/createCpiPlanBuilder.d.ts +0 -6
- package/dist/sdks/long-yield-carry/src/client/builders/createCpiPlanBuilder.js +0 -22
- package/dist/sdks/long-yield-carry/src/client/builders/createTokenBuilder.d.ts +0 -7
- package/dist/sdks/long-yield-carry/src/client/builders/createTokenBuilder.js +0 -64
- package/dist/sdks/long-yield-carry/src/client/builders/createTokenLendingPositionBuilder.d.ts +0 -10
- package/dist/sdks/long-yield-carry/src/client/builders/createTokenLendingPositionBuilder.js +0 -138
- package/dist/sdks/long-yield-carry/src/client/builders/createYieldingBankAllocationBuilder.d.ts +0 -7
- package/dist/sdks/long-yield-carry/src/client/builders/createYieldingBankAllocationBuilder.js +0 -29
- package/dist/sdks/long-yield-carry/src/client/builders/createYieldingBankBuilder.d.ts +0 -7
- package/dist/sdks/long-yield-carry/src/client/builders/createYieldingBankBuilder.js +0 -39
- package/dist/sdks/long-yield-carry/src/client/builders/decreaseCarryPositionBuilder.d.ts +0 -30
- package/dist/sdks/long-yield-carry/src/client/builders/decreaseCarryPositionBuilder.js +0 -99
- package/dist/sdks/long-yield-carry/src/client/builders/depositUnlentCollateralBuilder.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/client/builders/depositUnlentCollateralBuilder.js +0 -64
- package/dist/sdks/long-yield-carry/src/client/builders/increaseCarryPositionBuilder.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/client/builders/increaseCarryPositionBuilder.js +0 -73
- package/dist/sdks/long-yield-carry/src/client/builders/index.d.ts +0 -28
- package/dist/sdks/long-yield-carry/src/client/builders/index.js +0 -62
- package/dist/sdks/long-yield-carry/src/client/builders/mintTokenBuilder.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/client/builders/mintTokenBuilder.js +0 -95
- package/dist/sdks/long-yield-carry/src/client/builders/rebalanceTokenBuilder.d.ts +0 -11
- package/dist/sdks/long-yield-carry/src/client/builders/rebalanceTokenBuilder.js +0 -255
- package/dist/sdks/long-yield-carry/src/client/builders/rebalanceYieldingBankBuilder.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/client/builders/rebalanceYieldingBankBuilder.js +0 -75
- package/dist/sdks/long-yield-carry/src/client/builders/recollateralizeLossBuilder.d.ts +0 -12
- package/dist/sdks/long-yield-carry/src/client/builders/recollateralizeLossBuilder.js +0 -220
- package/dist/sdks/long-yield-carry/src/client/builders/refreshTokenStateBuilder.d.ts +0 -9
- package/dist/sdks/long-yield-carry/src/client/builders/refreshTokenStateBuilder.js +0 -112
- package/dist/sdks/long-yield-carry/src/client/builders/refreshTokensBuilder.d.ts +0 -9
- package/dist/sdks/long-yield-carry/src/client/builders/refreshTokensBuilder.js +0 -59
- package/dist/sdks/long-yield-carry/src/client/builders/refreshYieldingBankBuilder.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/client/builders/refreshYieldingBankBuilder.js +0 -29
- package/dist/sdks/long-yield-carry/src/client/builders/resetTokenBurnRateLimitBuilder.d.ts +0 -7
- package/dist/sdks/long-yield-carry/src/client/builders/resetTokenBurnRateLimitBuilder.js +0 -19
- package/dist/sdks/long-yield-carry/src/client/builders/setTokenCircuitBreakerBuilder.d.ts +0 -11
- package/dist/sdks/long-yield-carry/src/client/builders/setTokenCircuitBreakerBuilder.js +0 -31
- package/dist/sdks/long-yield-carry/src/client/builders/setYieldingBankCircuitBreakerBuilder.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/client/builders/setYieldingBankCircuitBreakerBuilder.js +0 -28
- package/dist/sdks/long-yield-carry/src/client/builders/updateLendingPositionConfigBuilder.d.ts +0 -10
- package/dist/sdks/long-yield-carry/src/client/builders/updateLendingPositionConfigBuilder.js +0 -30
- package/dist/sdks/long-yield-carry/src/client/builders/updateTokenConfigurationBuilder.d.ts +0 -11
- package/dist/sdks/long-yield-carry/src/client/builders/updateTokenConfigurationBuilder.js +0 -47
- package/dist/sdks/long-yield-carry/src/client/builders/updateTokenMetadataBuilder.d.ts +0 -7
- package/dist/sdks/long-yield-carry/src/client/builders/updateTokenMetadataBuilder.js +0 -24
- package/dist/sdks/long-yield-carry/src/client/builders/updateYieldingBankConfigBuilder.d.ts +0 -10
- package/dist/sdks/long-yield-carry/src/client/builders/updateYieldingBankConfigBuilder.js +0 -31
- package/dist/sdks/long-yield-carry/src/client/builders/utils.d.ts +0 -4
- package/dist/sdks/long-yield-carry/src/client/builders/utils.js +0 -20
- package/dist/sdks/long-yield-carry/src/client/client.d.ts +0 -115
- package/dist/sdks/long-yield-carry/src/client/client.js +0 -166
- package/dist/sdks/long-yield-carry/src/client/externalLiquidityResolver.d.ts +0 -13
- package/dist/sdks/long-yield-carry/src/client/externalLiquidityResolver.js +0 -34
- package/dist/sdks/long-yield-carry/src/client/index.d.ts +0 -10
- package/dist/sdks/long-yield-carry/src/client/index.js +0 -33
- package/dist/sdks/long-yield-carry/src/client/lendingPlatformClients.d.ts +0 -19
- package/dist/sdks/long-yield-carry/src/client/lendingPlatformClients.js +0 -33
- package/dist/sdks/long-yield-carry/src/client/pda.d.ts +0 -33
- package/dist/sdks/long-yield-carry/src/client/pda.js +0 -79
- package/dist/sdks/long-yield-carry/src/client/plans/collectInterest.d.ts +0 -24
- package/dist/sdks/long-yield-carry/src/client/plans/collectInterest.js +0 -150
- package/dist/sdks/long-yield-carry/src/client/plans/decreaseCarryPosition.d.ts +0 -12
- package/dist/sdks/long-yield-carry/src/client/plans/decreaseCarryPosition.js +0 -140
- package/dist/sdks/long-yield-carry/src/client/routes/collectInterest.d.ts +0 -13
- package/dist/sdks/long-yield-carry/src/client/routes/collectInterest.js +0 -39
- package/dist/sdks/long-yield-carry/src/client/transaction.d.ts +0 -41
- package/dist/sdks/long-yield-carry/src/client/transaction.js +0 -55
- package/dist/sdks/long-yield-carry/src/client/types/builders.d.ts +0 -18
- package/dist/sdks/long-yield-carry/src/client/types/builders.js +0 -2
- package/dist/sdks/long-yield-carry/src/client/types/enums.d.ts +0 -22
- package/dist/sdks/long-yield-carry/src/client/types/enums.js +0 -48
- package/dist/sdks/long-yield-carry/src/client/types/general.d.ts +0 -98
- package/dist/sdks/long-yield-carry/src/client/types/general.js +0 -2
- package/dist/sdks/long-yield-carry/src/client/types/index.d.ts +0 -6
- package/dist/sdks/long-yield-carry/src/client/types/index.js +0 -22
- package/dist/sdks/long-yield-carry/src/client/types/ix.d.ts +0 -352
- package/dist/sdks/long-yield-carry/src/client/types/ix.js +0 -2
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/collectInterest.d.ts +0 -91
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/collectInterest.js +0 -2
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/common.d.ts +0 -28
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/common.js +0 -2
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/decreaseCarryPosition.d.ts +0 -128
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/decreaseCarryPosition.js +0 -2
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/index.d.ts +0 -3
- package/dist/sdks/long-yield-carry/src/client/types/planTypes/index.js +0 -19
- package/dist/sdks/long-yield-carry/src/client/types/tx.d.ts +0 -339
- package/dist/sdks/long-yield-carry/src/client/types/tx.js +0 -2
- package/dist/sdks/long-yield-carry/src/constants/configs/allocations.d.ts +0 -3
- package/dist/sdks/long-yield-carry/src/constants/configs/allocations.js +0 -23
- package/dist/sdks/long-yield-carry/src/constants/configs/carryTradePresets.d.ts +0 -58
- package/dist/sdks/long-yield-carry/src/constants/configs/carryTradePresets.js +0 -116
- package/dist/sdks/long-yield-carry/src/constants/configs/index.d.ts +0 -2
- package/dist/sdks/long-yield-carry/src/constants/configs/index.js +0 -18
- package/dist/sdks/long-yield-carry/src/constants/general.d.ts +0 -70
- package/dist/sdks/long-yield-carry/src/constants/general.js +0 -107
- package/dist/sdks/long-yield-carry/src/constants/index.d.ts +0 -3
- package/dist/sdks/long-yield-carry/src/constants/index.js +0 -19
- package/dist/sdks/long-yield-carry/src/constants/lycTokenMetadata.d.ts +0 -36
- package/dist/sdks/long-yield-carry/src/constants/lycTokenMetadata.js +0 -41
- package/dist/sdks/long-yield-carry/src/decoders/decodeTransaction.d.ts +0 -86
- package/dist/sdks/long-yield-carry/src/decoders/decodeTransaction.js +0 -230
- package/dist/sdks/long-yield-carry/src/decoders/discriminators.d.ts +0 -8
- package/dist/sdks/long-yield-carry/src/decoders/discriminators.js +0 -11
- package/dist/sdks/long-yield-carry/src/decoders/idlAccounts.d.ts +0 -29
- package/dist/sdks/long-yield-carry/src/decoders/idlAccounts.js +0 -57
- package/dist/sdks/long-yield-carry/src/decoders/index.d.ts +0 -6
- package/dist/sdks/long-yield-carry/src/decoders/index.js +0 -14
- package/dist/sdks/long-yield-carry/src/decoders/innerCpis.d.ts +0 -68
- package/dist/sdks/long-yield-carry/src/decoders/innerCpis.js +0 -225
- package/dist/sdks/long-yield-carry/src/decoders/lycInstructionNames.d.ts +0 -6
- package/dist/sdks/long-yield-carry/src/decoders/lycInstructionNames.js +0 -73
- package/dist/sdks/long-yield-carry/src/decoders/programIds.d.ts +0 -4
- package/dist/sdks/long-yield-carry/src/decoders/programIds.js +0 -11
- package/dist/sdks/long-yield-carry/src/decoders/solana.d.ts +0 -7
- package/dist/sdks/long-yield-carry/src/decoders/solana.js +0 -30
- package/dist/sdks/long-yield-carry/src/decoders/transactionPayload.d.ts +0 -41
- package/dist/sdks/long-yield-carry/src/decoders/transactionPayload.js +0 -6
- package/dist/sdks/long-yield-carry/src/decoders/types.d.ts +0 -58
- package/dist/sdks/long-yield-carry/src/decoders/types.js +0 -2
- package/dist/sdks/long-yield-carry/src/errors.d.ts +0 -69
- package/dist/sdks/long-yield-carry/src/errors.js +0 -183
- package/dist/sdks/long-yield-carry/src/idl/long_yield_carry.js +0 -7323
- package/dist/sdks/long-yield-carry/src/index.d.ts +0 -10
- package/dist/sdks/long-yield-carry/src/index.js +0 -25
- package/dist/sdks/long-yield-carry/src/metrics/index.d.ts +0 -1
- package/dist/sdks/long-yield-carry/src/metrics/index.js +0 -17
- package/dist/sdks/long-yield-carry/src/metrics/protocolMetrics.d.ts +0 -276
- package/dist/sdks/long-yield-carry/src/metrics/protocolMetrics.js +0 -547
- package/dist/sdks/long-yield-carry/src/models/index.d.ts +0 -3
- package/dist/sdks/long-yield-carry/src/models/index.js +0 -7
- package/dist/sdks/long-yield-carry/src/models/lycToken.d.ts +0 -156
- package/dist/sdks/long-yield-carry/src/models/lycToken.js +0 -288
- package/dist/sdks/long-yield-carry/src/models/yieldingBank.d.ts +0 -52
- package/dist/sdks/long-yield-carry/src/models/yieldingBank.js +0 -109
- package/dist/sdks/long-yield-carry/src/services/allocation/allocationService.d.ts +0 -106
- package/dist/sdks/long-yield-carry/src/services/allocation/allocationService.js +0 -589
- package/dist/sdks/long-yield-carry/src/services/allocation/index.d.ts +0 -2
- package/dist/sdks/long-yield-carry/src/services/allocation/index.js +0 -18
- package/dist/sdks/long-yield-carry/src/services/allocation/types.d.ts +0 -25
- package/dist/sdks/long-yield-carry/src/services/allocation/types.js +0 -2
- package/dist/sdks/long-yield-carry/src/services/carry/carryAllocationConfig.d.ts +0 -103
- package/dist/sdks/long-yield-carry/src/services/carry/carryAllocationConfig.js +0 -146
- package/dist/sdks/long-yield-carry/src/services/carry/index.d.ts +0 -2
- package/dist/sdks/long-yield-carry/src/services/carry/index.js +0 -18
- package/dist/sdks/long-yield-carry/src/services/carry/lycLendingPositionManager.d.ts +0 -39
- package/dist/sdks/long-yield-carry/src/services/carry/lycLendingPositionManager.js +0 -100
- package/dist/sdks/long-yield-carry/src/services/index.d.ts +0 -5
- package/dist/sdks/long-yield-carry/src/services/index.js +0 -21
- package/dist/sdks/long-yield-carry/src/services/lendingPosition/index.d.ts +0 -2
- package/dist/sdks/long-yield-carry/src/services/lendingPosition/index.js +0 -5
- package/dist/sdks/long-yield-carry/src/services/lendingPosition/lendingPositionService.d.ts +0 -88
- package/dist/sdks/long-yield-carry/src/services/lendingPosition/lendingPositionService.js +0 -229
- package/dist/sdks/long-yield-carry/src/services/rebalance/index.d.ts +0 -2
- package/dist/sdks/long-yield-carry/src/services/rebalance/index.js +0 -18
- package/dist/sdks/long-yield-carry/src/services/rebalance/token/index.d.ts +0 -1
- package/dist/sdks/long-yield-carry/src/services/rebalance/token/index.js +0 -17
- package/dist/sdks/long-yield-carry/src/services/rebalance/token/tokenRebalanceService.d.ts +0 -51
- package/dist/sdks/long-yield-carry/src/services/rebalance/token/tokenRebalanceService.js +0 -99
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/index.d.ts +0 -3
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/index.js +0 -21
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/planner.d.ts +0 -68
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/planner.js +0 -181
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/strategy.d.ts +0 -26
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/strategy.js +0 -26
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/types.d.ts +0 -40
- package/dist/sdks/long-yield-carry/src/services/rebalance/yieldingBank/types.js +0 -2
- package/dist/sdks/long-yield-carry/src/services/redemption/index.d.ts +0 -2
- package/dist/sdks/long-yield-carry/src/services/redemption/index.js +0 -5
- package/dist/sdks/long-yield-carry/src/services/redemption/redemptionService.d.ts +0 -139
- package/dist/sdks/long-yield-carry/src/services/redemption/redemptionService.js +0 -532
- package/dist/sdks/long-yield-carry/src/types/enriched.d.ts +0 -168
- package/dist/sdks/long-yield-carry/src/types/enriched.js +0 -2
- package/dist/sdks/long-yield-carry/src/types/index.d.ts +0 -1
- package/dist/sdks/long-yield-carry/src/types/index.js +0 -17
- package/dist/sdks/long-yield-carry/src/utils/cache.d.ts +0 -4
- package/dist/sdks/long-yield-carry/src/utils/cache.js +0 -10
- package/dist/sdks/long-yield-carry/src/utils/data.d.ts +0 -12
- package/dist/sdks/long-yield-carry/src/utils/data.js +0 -59
- package/dist/sdks/long-yield-carry/src/utils/enrichment.d.ts +0 -5
- package/dist/sdks/long-yield-carry/src/utils/enrichment.js +0 -244
- package/dist/sdks/long-yield-carry/src/utils/feeDripMetrics.d.ts +0 -36
- package/dist/sdks/long-yield-carry/src/utils/feeDripMetrics.js +0 -93
- package/dist/sdks/long-yield-carry/src/utils/general.d.ts +0 -28
- package/dist/sdks/long-yield-carry/src/utils/general.js +0 -47
- package/dist/sdks/long-yield-carry/src/utils/index.d.ts +0 -13
- package/dist/sdks/long-yield-carry/src/utils/index.js +0 -29
- package/dist/sdks/long-yield-carry/src/utils/ix.d.ts +0 -83
- package/dist/sdks/long-yield-carry/src/utils/ix.js +0 -165
- package/dist/sdks/long-yield-carry/src/utils/lendingPosition.d.ts +0 -68
- package/dist/sdks/long-yield-carry/src/utils/lendingPosition.js +0 -105
- package/dist/sdks/long-yield-carry/src/utils/lookupTables.d.ts +0 -55
- package/dist/sdks/long-yield-carry/src/utils/lookupTables.js +0 -216
- package/dist/sdks/long-yield-carry/src/utils/lycData.d.ts +0 -66
- package/dist/sdks/long-yield-carry/src/utils/lycData.js +0 -211
- package/dist/sdks/long-yield-carry/src/utils/timelock.d.ts +0 -19
- package/dist/sdks/long-yield-carry/src/utils/timelock.js +0 -37
- package/dist/sdks/long-yield-carry/src/utils/tokenFeeMath.d.ts +0 -11
- package/dist/sdks/long-yield-carry/src/utils/tokenFeeMath.js +0 -24
- package/dist/sdks/long-yield-carry/src/utils/transactions.d.ts +0 -20
- package/dist/sdks/long-yield-carry/src/utils/transactions.js +0 -72
- package/dist/sdks/long-yield-carry/src/utils/yieldingBank.d.ts +0 -24
- package/dist/sdks/long-yield-carry/src/utils/yieldingBank.js +0 -36
- package/dist/shared/common/src/constants/accountMetas.d.ts +0 -3
- package/dist/shared/common/src/constants/accountMetas.js +0 -9
- package/dist/shared/common/src/constants/general.d.ts +0 -21
- package/dist/shared/common/src/constants/general.js +0 -30
- package/dist/shared/common/src/constants/generated/cpi.d.ts +0 -23
- package/dist/shared/common/src/constants/generated/cpi.js +0 -28
- package/dist/shared/common/src/constants/generated/index.d.ts +0 -1
- package/dist/shared/common/src/constants/generated/index.js +0 -17
- package/dist/shared/common/src/constants/index.d.ts +0 -3
- package/dist/shared/common/src/constants/index.js +0 -19
- package/dist/shared/common/src/index.d.ts +0 -4
- package/dist/shared/common/src/index.js +0 -20
- package/dist/shared/common/src/services/baseAccountClient.d.ts +0 -22
- package/dist/shared/common/src/services/baseAccountClient.js +0 -38
- package/dist/shared/common/src/services/baseIxBuilderService.d.ts +0 -27
- package/dist/shared/common/src/services/baseIxBuilderService.js +0 -48
- package/dist/shared/common/src/services/dataCache.d.ts +0 -41
- package/dist/shared/common/src/services/dataCache.js +0 -130
- package/dist/shared/common/src/services/index.d.ts +0 -8
- package/dist/shared/common/src/services/index.js +0 -24
- package/dist/shared/common/src/services/lutManager.d.ts +0 -31
- package/dist/shared/common/src/services/lutManager.js +0 -133
- package/dist/shared/common/src/services/mints/defaults.d.ts +0 -2
- package/dist/shared/common/src/services/mints/defaults.js +0 -152
- package/dist/shared/common/src/services/mints/index.d.ts +0 -4
- package/dist/shared/common/src/services/mints/index.js +0 -20
- package/dist/shared/common/src/services/mints/registry.d.ts +0 -70
- package/dist/shared/common/src/services/mints/registry.js +0 -117
- package/dist/shared/common/src/services/mints/symbols.d.ts +0 -6
- package/dist/shared/common/src/services/mints/symbols.js +0 -13
- package/dist/shared/common/src/services/mints/types.d.ts +0 -30
- package/dist/shared/common/src/services/mints/types.js +0 -2
- package/dist/shared/common/src/services/swap/index.d.ts +0 -4
- package/dist/shared/common/src/services/swap/index.js +0 -20
- package/dist/shared/common/src/services/swap/routableSwapClient.d.ts +0 -36
- package/dist/shared/common/src/services/swap/routableSwapClient.js +0 -2
- package/dist/shared/common/src/services/swap/swapClientBase.d.ts +0 -45
- package/dist/shared/common/src/services/swap/swapClientBase.js +0 -2
- package/dist/shared/common/src/services/swap/swapRouting.d.ts +0 -13
- package/dist/shared/common/src/services/swap/swapRouting.js +0 -28
- package/dist/shared/common/src/services/swap/types.d.ts +0 -77
- package/dist/shared/common/src/services/swap/types.js +0 -2
- package/dist/shared/common/src/services/token/index.d.ts +0 -2
- package/dist/shared/common/src/services/token/index.js +0 -18
- package/dist/shared/common/src/services/token/tokenProtocolClientBase.d.ts +0 -51
- package/dist/shared/common/src/services/token/tokenProtocolClientBase.js +0 -2
- package/dist/shared/common/src/services/token/types.d.ts +0 -19
- package/dist/shared/common/src/services/token/types.js +0 -2
- package/dist/shared/common/src/services/transactionSender.d.ts +0 -24
- package/dist/shared/common/src/services/transactionSender.js +0 -30
- package/dist/shared/common/src/types/cpi.d.ts +0 -34
- package/dist/shared/common/src/types/cpi.js +0 -8
- package/dist/shared/common/src/types/enums.d.ts +0 -59
- package/dist/shared/common/src/types/enums.js +0 -122
- package/dist/shared/common/src/types/general.d.ts +0 -38
- package/dist/shared/common/src/types/general.js +0 -2
- package/dist/shared/common/src/types/index.d.ts +0 -4
- package/dist/shared/common/src/types/index.js +0 -20
- package/dist/shared/common/src/types/solana.d.ts +0 -24
- package/dist/shared/common/src/types/solana.js +0 -2
- package/dist/shared/common/src/utils/accounts/index.d.ts +0 -5
- package/dist/shared/common/src/utils/accounts/index.js +0 -21
- package/dist/shared/common/src/utils/accounts/meta.d.ts +0 -21
- package/dist/shared/common/src/utils/accounts/meta.js +0 -27
- package/dist/shared/common/src/utils/accounts/pda.d.ts +0 -2
- package/dist/shared/common/src/utils/accounts/pda.js +0 -17
- package/dist/shared/common/src/utils/accounts/roles.d.ts +0 -26
- package/dist/shared/common/src/utils/accounts/roles.js +0 -54
- package/dist/shared/common/src/utils/accounts/rpc.d.ts +0 -8
- package/dist/shared/common/src/utils/accounts/rpc.js +0 -30
- package/dist/shared/common/src/utils/accounts/splBalances.d.ts +0 -15
- package/dist/shared/common/src/utils/accounts/splBalances.js +0 -52
- package/dist/shared/common/src/utils/anchor.d.ts +0 -17
- package/dist/shared/common/src/utils/anchor.js +0 -29
- package/dist/shared/common/src/utils/asyncConcurrency.d.ts +0 -5
- package/dist/shared/common/src/utils/asyncConcurrency.js +0 -28
- package/dist/shared/common/src/utils/compat.d.ts +0 -46
- package/dist/shared/common/src/utils/compat.js +0 -72
- package/dist/shared/common/src/utils/cpi/args.d.ts +0 -69
- package/dist/shared/common/src/utils/cpi/args.js +0 -100
- package/dist/shared/common/src/utils/cpi/index.d.ts +0 -2
- package/dist/shared/common/src/utils/cpi/index.js +0 -18
- package/dist/shared/common/src/utils/cpi/refs.d.ts +0 -122
- package/dist/shared/common/src/utils/cpi/refs.js +0 -234
- package/dist/shared/common/src/utils/data.d.ts +0 -20
- package/dist/shared/common/src/utils/data.js +0 -27
- package/dist/shared/common/src/utils/general.d.ts +0 -24
- package/dist/shared/common/src/utils/general.js +0 -95
- package/dist/shared/common/src/utils/index.d.ts +0 -22
- package/dist/shared/common/src/utils/index.js +0 -38
- package/dist/shared/common/src/utils/instruction.d.ts +0 -74
- package/dist/shared/common/src/utils/instruction.js +0 -147
- package/dist/shared/common/src/utils/jito.d.ts +0 -113
- package/dist/shared/common/src/utils/jito.js +0 -178
- package/dist/shared/common/src/utils/json.d.ts +0 -5
- package/dist/shared/common/src/utils/json.js +0 -25
- package/dist/shared/common/src/utils/jsonRpcFetch.d.ts +0 -21
- package/dist/shared/common/src/utils/jsonRpcFetch.js +0 -134
- package/dist/shared/common/src/utils/metadata.d.ts +0 -107
- package/dist/shared/common/src/utils/metadata.js +0 -194
- package/dist/shared/common/src/utils/numbers.d.ts +0 -72
- package/dist/shared/common/src/utils/numbers.js +0 -193
- package/dist/shared/common/src/utils/priorityFee.d.ts +0 -18
- package/dist/shared/common/src/utils/priorityFee.js +0 -63
- package/dist/shared/common/src/utils/retry.d.ts +0 -20
- package/dist/shared/common/src/utils/retry.js +0 -69
- package/dist/shared/common/src/utils/rpc.d.ts +0 -40
- package/dist/shared/common/src/utils/rpc.js +0 -130
- package/dist/shared/common/src/utils/solana.d.ts +0 -23
- package/dist/shared/common/src/utils/solana.js +0 -61
- package/dist/shared/common/src/utils/timeSeries.d.ts +0 -18
- package/dist/shared/common/src/utils/timeSeries.js +0 -40
- package/dist/shared/common/src/utils/token.d.ts +0 -33
- package/dist/shared/common/src/utils/token.js +0 -82
- package/dist/shared/common/src/utils/transaction.d.ts +0 -154
- package/dist/shared/common/src/utils/transaction.js +0 -585
- package/dist/shared/common/src/utils/transactionSplitter.d.ts +0 -85
- package/dist/shared/common/src/utils/transactionSplitter.js +0 -127
- package/dist/shared/common/src/utils/txAccountCoverage.d.ts +0 -49
- package/dist/shared/common/src/utils/txAccountCoverage.js +0 -122
- package/dist/shared/jupiter-helpers/src/api.d.ts +0 -59
- package/dist/shared/jupiter-helpers/src/api.js +0 -130
- package/dist/shared/jupiter-helpers/src/client.d.ts +0 -79
- package/dist/shared/jupiter-helpers/src/client.js +0 -173
- package/dist/shared/jupiter-helpers/src/constants.d.ts +0 -35
- package/dist/shared/jupiter-helpers/src/constants.js +0 -38
- package/dist/shared/jupiter-helpers/src/extract.d.ts +0 -30
- package/dist/shared/jupiter-helpers/src/extract.js +0 -57
- package/dist/shared/jupiter-helpers/src/index.d.ts +0 -5
- package/dist/shared/jupiter-helpers/src/index.js +0 -21
- package/dist/shared/jupiter-helpers/src/routePreInstructions.d.ts +0 -19
- package/dist/shared/jupiter-helpers/src/routePreInstructions.js +0 -61
- package/dist/shared/jupiter-helpers/src/sizeExactInForMinOutput.d.ts +0 -70
- package/dist/shared/jupiter-helpers/src/sizeExactInForMinOutput.js +0 -95
- package/dist/shared/jupiter-helpers/src/types.d.ts +0 -66
- package/dist/shared/jupiter-helpers/src/types.js +0 -2
- package/dist/shared/lending-platforms/src/constants/cache.d.ts +0 -8
- package/dist/shared/lending-platforms/src/constants/cache.js +0 -11
- package/dist/shared/lending-platforms/src/constants/index.d.ts +0 -3
- package/dist/shared/lending-platforms/src/constants/index.js +0 -19
- package/dist/shared/lending-platforms/src/constants/kamino.d.ts +0 -7
- package/dist/shared/lending-platforms/src/constants/kamino.js +0 -83
- package/dist/shared/lending-platforms/src/constants/lendingPosition.d.ts +0 -7
- package/dist/shared/lending-platforms/src/constants/lendingPosition.js +0 -10
- package/dist/shared/lending-platforms/src/data/accounts/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/data/accounts/index.js +0 -18
- package/dist/shared/lending-platforms/src/data/accounts/kamino.d.ts +0 -42
- package/dist/shared/lending-platforms/src/data/accounts/kamino.js +0 -104
- package/dist/shared/lending-platforms/src/data/accounts/lpAccountsBase.d.ts +0 -7
- package/dist/shared/lending-platforms/src/data/accounts/lpAccountsBase.js +0 -9
- package/dist/shared/lending-platforms/src/data/incentive/incentiveBase.d.ts +0 -35
- package/dist/shared/lending-platforms/src/data/incentive/incentiveBase.js +0 -26
- package/dist/shared/lending-platforms/src/data/incentive/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/data/incentive/index.js +0 -18
- package/dist/shared/lending-platforms/src/data/incentive/kamino.d.ts +0 -55
- package/dist/shared/lending-platforms/src/data/incentive/kamino.js +0 -101
- package/dist/shared/lending-platforms/src/data/index.d.ts +0 -6
- package/dist/shared/lending-platforms/src/data/index.js +0 -22
- package/dist/shared/lending-platforms/src/data/instructions/index.d.ts +0 -3
- package/dist/shared/lending-platforms/src/data/instructions/index.js +0 -19
- package/dist/shared/lending-platforms/src/data/instructions/kamino.d.ts +0 -55
- package/dist/shared/lending-platforms/src/data/instructions/kamino.js +0 -630
- package/dist/shared/lending-platforms/src/data/instructions/lpInstructionsBase.d.ts +0 -175
- package/dist/shared/lending-platforms/src/data/instructions/lpInstructionsBase.js +0 -192
- package/dist/shared/lending-platforms/src/data/instructions/types.d.ts +0 -7
- package/dist/shared/lending-platforms/src/data/instructions/types.js +0 -2
- package/dist/shared/lending-platforms/src/data/platform/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/data/platform/index.js +0 -18
- package/dist/shared/lending-platforms/src/data/platform/kamino.d.ts +0 -59
- package/dist/shared/lending-platforms/src/data/platform/kamino.js +0 -206
- package/dist/shared/lending-platforms/src/data/platform/lpDataBase.d.ts +0 -35
- package/dist/shared/lending-platforms/src/data/platform/lpDataBase.js +0 -31
- package/dist/shared/lending-platforms/src/data/reserve/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/data/reserve/index.js +0 -18
- package/dist/shared/lending-platforms/src/data/reserve/kamino.d.ts +0 -45
- package/dist/shared/lending-platforms/src/data/reserve/kamino.js +0 -141
- package/dist/shared/lending-platforms/src/data/reserve/reserveBase.d.ts +0 -114
- package/dist/shared/lending-platforms/src/data/reserve/reserveBase.js +0 -125
- package/dist/shared/lending-platforms/src/data/userPosition/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/data/userPosition/index.js +0 -18
- package/dist/shared/lending-platforms/src/data/userPosition/kamino.d.ts +0 -15
- package/dist/shared/lending-platforms/src/data/userPosition/kamino.js +0 -45
- package/dist/shared/lending-platforms/src/data/userPosition/userPositionBase.d.ts +0 -50
- package/dist/shared/lending-platforms/src/data/userPosition/userPositionBase.js +0 -63
- package/dist/shared/lending-platforms/src/index.d.ts +0 -5
- package/dist/shared/lending-platforms/src/index.js +0 -21
- package/dist/shared/lending-platforms/src/services/client/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/services/client/index.js +0 -18
- package/dist/shared/lending-platforms/src/services/client/kamino.d.ts +0 -53
- package/dist/shared/lending-platforms/src/services/client/kamino.js +0 -142
- package/dist/shared/lending-platforms/src/services/client/lpClientBase.d.ts +0 -66
- package/dist/shared/lending-platforms/src/services/client/lpClientBase.js +0 -19
- package/dist/shared/lending-platforms/src/services/flashLoan/flashLoanBase.d.ts +0 -49
- package/dist/shared/lending-platforms/src/services/flashLoan/flashLoanBase.js +0 -16
- package/dist/shared/lending-platforms/src/services/flashLoan/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/services/flashLoan/index.js +0 -18
- package/dist/shared/lending-platforms/src/services/flashLoan/kamino.d.ts +0 -11
- package/dist/shared/lending-platforms/src/services/flashLoan/kamino.js +0 -85
- package/dist/shared/lending-platforms/src/services/index.d.ts +0 -5
- package/dist/shared/lending-platforms/src/services/index.js +0 -21
- package/dist/shared/lending-platforms/src/services/lendingPosition/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/services/lendingPosition/index.js +0 -18
- package/dist/shared/lending-platforms/src/services/lendingPosition/lendingPositionManager.d.ts +0 -117
- package/dist/shared/lending-platforms/src/services/lendingPosition/lendingPositionManager.js +0 -342
- package/dist/shared/lending-platforms/src/services/lendingPosition/types.d.ts +0 -40
- package/dist/shared/lending-platforms/src/services/lendingPosition/types.js +0 -2
- package/dist/shared/lending-platforms/src/services/leverage/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/services/leverage/index.js +0 -18
- package/dist/shared/lending-platforms/src/services/leverage/leverageService.d.ts +0 -104
- package/dist/shared/lending-platforms/src/services/leverage/leverageService.js +0 -437
- package/dist/shared/lending-platforms/src/services/leverage/types.d.ts +0 -261
- package/dist/shared/lending-platforms/src/services/leverage/types.js +0 -2
- package/dist/shared/lending-platforms/src/services/reservesManager.d.ts +0 -53
- package/dist/shared/lending-platforms/src/services/reservesManager.js +0 -112
- package/dist/shared/lending-platforms/src/types/general.d.ts +0 -37
- package/dist/shared/lending-platforms/src/types/general.js +0 -8
- package/dist/shared/lending-platforms/src/types/index.d.ts +0 -2
- package/dist/shared/lending-platforms/src/types/index.js +0 -18
- package/dist/shared/lending-platforms/src/types/kamino.d.ts +0 -10
- package/dist/shared/lending-platforms/src/types/kamino.js +0 -2
- package/dist/shared/lending-platforms/src/utils/accounts.d.ts +0 -16
- package/dist/shared/lending-platforms/src/utils/accounts.js +0 -36
- package/dist/shared/lending-platforms/src/utils/cache.d.ts +0 -3
- package/dist/shared/lending-platforms/src/utils/cache.js +0 -11
- package/dist/shared/lending-platforms/src/utils/index.d.ts +0 -6
- package/dist/shared/lending-platforms/src/utils/index.js +0 -22
- package/dist/shared/lending-platforms/src/utils/kamino.d.ts +0 -87
- package/dist/shared/lending-platforms/src/utils/kamino.js +0 -190
- package/dist/shared/lending-platforms/src/utils/lendingPlatform.d.ts +0 -6
- package/dist/shared/lending-platforms/src/utils/lendingPlatform.js +0 -16
- package/dist/shared/lending-platforms/src/utils/math.d.ts +0 -47
- package/dist/shared/lending-platforms/src/utils/math.js +0 -123
- package/dist/shared/lending-platforms/src/utils/scope.d.ts +0 -38
- package/dist/shared/lending-platforms/src/utils/scope.js +0 -144
- package/dist/shared/oracle-service/src/constants/index.d.ts +0 -3
- package/dist/shared/oracle-service/src/constants/index.js +0 -19
- package/dist/shared/oracle-service/src/constants/pyth.d.ts +0 -7
- package/dist/shared/oracle-service/src/constants/pyth.js +0 -71
- package/dist/shared/oracle-service/src/constants/splStake.d.ts +0 -2
- package/dist/shared/oracle-service/src/constants/splStake.js +0 -6
- package/dist/shared/oracle-service/src/constants/switchboard.d.ts +0 -7
- package/dist/shared/oracle-service/src/constants/switchboard.js +0 -10
- package/dist/shared/oracle-service/src/feeds/custom.d.ts +0 -30
- package/dist/shared/oracle-service/src/feeds/custom.js +0 -56
- package/dist/shared/oracle-service/src/feeds/jupiter.d.ts +0 -7
- package/dist/shared/oracle-service/src/feeds/jupiter.js +0 -43
- package/dist/shared/oracle-service/src/feeds/priceBase.d.ts +0 -13
- package/dist/shared/oracle-service/src/feeds/priceBase.js +0 -25
- package/dist/shared/oracle-service/src/feeds/pyth.d.ts +0 -8
- package/dist/shared/oracle-service/src/feeds/pyth.js +0 -59
- package/dist/shared/oracle-service/src/feeds/splStake.d.ts +0 -26
- package/dist/shared/oracle-service/src/feeds/splStake.js +0 -99
- package/dist/shared/oracle-service/src/feeds/switchboard.d.ts +0 -6
- package/dist/shared/oracle-service/src/feeds/switchboard.js +0 -11
- package/dist/shared/oracle-service/src/index.d.ts +0 -5
- package/dist/shared/oracle-service/src/index.js +0 -26
- package/dist/shared/oracle-service/src/oracle.d.ts +0 -22
- package/dist/shared/oracle-service/src/oracle.js +0 -104
- package/dist/shared/oracle-service/src/types.d.ts +0 -4
- package/dist/shared/oracle-service/src/types.js +0 -2
- package/dist/shared/oracle-service/src/utils/general.d.ts +0 -20
- package/dist/shared/oracle-service/src/utils/general.js +0 -65
- package/dist/shared/oracle-service/src/utils/index.d.ts +0 -1
- package/dist/shared/oracle-service/src/utils/index.js +0 -17
- package/dist/shared/perena-helpers/src/accounts.d.ts +0 -7
- package/dist/shared/perena-helpers/src/accounts.js +0 -12
- package/dist/shared/perena-helpers/src/client.d.ts +0 -299
- package/dist/shared/perena-helpers/src/client.js +0 -680
- package/dist/shared/perena-helpers/src/constants.d.ts +0 -5
- package/dist/shared/perena-helpers/src/constants.js +0 -8
- package/dist/shared/perena-helpers/src/cpi/burn.d.ts +0 -27
- package/dist/shared/perena-helpers/src/cpi/burn.js +0 -22
- package/dist/shared/perena-helpers/src/cpi/index.d.ts +0 -3
- package/dist/shared/perena-helpers/src/cpi/index.js +0 -19
- package/dist/shared/perena-helpers/src/cpi/mint.d.ts +0 -27
- package/dist/shared/perena-helpers/src/cpi/mint.js +0 -22
- package/dist/shared/perena-helpers/src/cpi/requestUnstake.d.ts +0 -19
- package/dist/shared/perena-helpers/src/cpi/requestUnstake.js +0 -16
- package/dist/shared/perena-helpers/src/index.d.ts +0 -5
- package/dist/shared/perena-helpers/src/index.js +0 -21
- package/dist/shared/perena-helpers/src/utils.d.ts +0 -9
- package/dist/shared/perena-helpers/src/utils.js +0 -54
- package/dist/shared/swap-aggregator/src/aggSwapClient.d.ts +0 -71
- package/dist/shared/swap-aggregator/src/aggSwapClient.js +0 -103
- package/dist/shared/swap-aggregator/src/index.d.ts +0 -1
- package/dist/shared/swap-aggregator/src/index.js +0 -17
- package/docs/launchingToken.md +0 -57
- package/scripts/asyncBurn.ts +0 -155
- package/scripts/burnToken.ts +0 -120
- package/scripts/claimIncentives.ts +0 -125
- package/scripts/closeCpiPlans.ts +0 -113
- package/scripts/collectInterest.ts +0 -194
- package/scripts/collectProtocolFees.ts +0 -144
- package/scripts/computeOptimalAllocations.ts +0 -117
- package/scripts/createToken.ts +0 -100
- package/scripts/createTokenLendingPosition.ts +0 -204
- package/scripts/createYieldingBank.ts +0 -91
- package/scripts/decreaseCarryPositions.ts +0 -359
- package/scripts/depositUnlentCollateral.ts +0 -106
- package/scripts/emergency/deleverageAll.ts +0 -287
- package/scripts/emergency/triggerCircuitBreaker.ts +0 -87
- package/scripts/env.ts +0 -4
- package/scripts/findTxs.ts +0 -169
- package/scripts/increaseCarryPositions.ts +0 -134
- package/scripts/inspect/format.ts +0 -576
- package/scripts/inspect.ts +0 -147
- package/scripts/localUtils.ts +0 -249
- package/scripts/mintToken.ts +0 -126
- package/scripts/processAsyncBurns.ts +0 -89
- package/scripts/rebalanceToken.ts +0 -269
- package/scripts/rebalanceYieldingBank.ts +0 -183
- package/scripts/recollateralizeLoss.ts +0 -79
- package/scripts/refresh.ts +0 -156
- package/scripts/updateFees.ts +0 -486
- package/scripts/updateGeneralLut.ts +0 -36
- package/scripts/updateLendingPositionConfig.ts +0 -172
- package/scripts/updateTokenLuts.ts +0 -36
- package/scripts/updateTokenMetadata.ts +0 -199
- package/scripts/updateYieldingBankConfig.ts +0 -100
- package/scripts/withdrawUnlentCollateral.ts +0 -178
- package/src/client/account.ts +0 -503
- package/src/client/builders/args.ts +0 -381
- package/src/client/builders/asyncBurnBuilder.ts +0 -305
- package/src/client/builders/base.ts +0 -303
- package/src/client/builders/burnTokenBuilder.ts +0 -258
- package/src/client/builders/claimIncentivesBuilder.ts +0 -211
- package/src/client/builders/collectFeesBuilder.ts +0 -52
- package/src/client/builders/collectInterestBuilder.ts +0 -165
- package/src/client/builders/createCpiPlanBuilder.ts +0 -21
- package/src/client/builders/createTokenBuilder.ts +0 -73
- package/src/client/builders/createTokenLendingPositionBuilder.ts +0 -219
- package/src/client/builders/createYieldingBankAllocationBuilder.ts +0 -32
- package/src/client/builders/createYieldingBankBuilder.ts +0 -39
- package/src/client/builders/decreaseCarryPositionBuilder.ts +0 -162
- package/src/client/builders/depositUnlentCollateralBuilder.ts +0 -95
- package/src/client/builders/increaseCarryPositionBuilder.ts +0 -105
- package/src/client/builders/index.ts +0 -37
- package/src/client/builders/mintTokenBuilder.ts +0 -137
- package/src/client/builders/rebalanceTokenBuilder.ts +0 -356
- package/src/client/builders/rebalanceYieldingBankBuilder.ts +0 -109
- package/src/client/builders/recollateralizeLossBuilder.ts +0 -367
- package/src/client/builders/refreshTokenStateBuilder.ts +0 -153
- package/src/client/builders/refreshTokensBuilder.ts +0 -82
- package/src/client/builders/refreshYieldingBankBuilder.ts +0 -42
- package/src/client/builders/resetTokenBurnRateLimitBuilder.ts +0 -21
- package/src/client/builders/setTokenCircuitBreakerBuilder.ts +0 -40
- package/src/client/builders/setYieldingBankCircuitBreakerBuilder.ts +0 -37
- package/src/client/builders/updateLendingPositionConfigBuilder.ts +0 -33
- package/src/client/builders/updateTokenConfigurationBuilder.ts +0 -50
- package/src/client/builders/updateTokenMetadataBuilder.ts +0 -24
- package/src/client/builders/updateYieldingBankConfigBuilder.ts +0 -32
- package/src/client/builders/utils.ts +0 -26
- package/src/client/client.ts +0 -264
- package/src/client/externalLiquidityResolver.ts +0 -54
- package/src/client/index.ts +0 -20
- package/src/client/lendingPlatformClients.ts +0 -50
- package/src/client/pda.ts +0 -102
- package/src/client/plans/collectInterest.ts +0 -207
- package/src/client/plans/decreaseCarryPosition.ts +0 -226
- package/src/client/routes/collectInterest.ts +0 -56
- package/src/client/transaction.ts +0 -106
- package/src/client/types/builders.ts +0 -19
- package/src/client/types/enums.ts +0 -47
- package/src/client/types/general.ts +0 -117
- package/src/client/types/index.ts +0 -6
- package/src/client/types/ix.ts +0 -452
- package/src/client/types/planTypes/collectInterest.ts +0 -97
- package/src/client/types/planTypes/common.ts +0 -31
- package/src/client/types/planTypes/decreaseCarryPosition.ts +0 -134
- package/src/client/types/planTypes/index.ts +0 -3
- package/src/client/types/tx.ts +0 -409
- package/src/constants/configs/allocations.ts +0 -30
- package/src/constants/configs/carryTradePresets.ts +0 -164
- package/src/constants/configs/index.ts +0 -2
- package/src/constants/general.ts +0 -141
- package/src/constants/index.ts +0 -3
- package/src/constants/lycTokenMetadata.ts +0 -52
- package/src/decoders/decodeTransaction.ts +0 -319
- package/src/decoders/discriminators.ts +0 -10
- package/src/decoders/idlAccounts.ts +0 -75
- package/src/decoders/index.ts +0 -15
- package/src/decoders/innerCpis.ts +0 -262
- package/src/decoders/lycInstructionNames.ts +0 -73
- package/src/decoders/programIds.ts +0 -12
- package/src/decoders/solana.ts +0 -25
- package/src/decoders/transactionPayload.ts +0 -41
- package/src/decoders/types.ts +0 -60
- package/src/errors.ts +0 -195
- package/src/idl/long_yield_carry.ts +0 -14648
- package/src/index.ts +0 -10
- package/src/metrics/index.ts +0 -1
- package/src/metrics/protocolMetrics.ts +0 -976
- package/src/models/index.ts +0 -9
- package/src/models/lycToken.ts +0 -380
- package/src/models/yieldingBank.ts +0 -127
- package/src/services/allocation/allocationService.ts +0 -823
- package/src/services/allocation/index.ts +0 -2
- package/src/services/allocation/types.ts +0 -27
- package/src/services/carry/carryAllocationConfig.ts +0 -266
- package/src/services/carry/index.ts +0 -2
- package/src/services/carry/lycLendingPositionManager.ts +0 -167
- package/src/services/index.ts +0 -5
- package/src/services/lendingPosition/index.ts +0 -5
- package/src/services/lendingPosition/lendingPositionService.ts +0 -328
- package/src/services/rebalance/index.ts +0 -2
- package/src/services/rebalance/token/index.ts +0 -1
- package/src/services/rebalance/token/tokenRebalanceService.ts +0 -142
- package/src/services/rebalance/yieldingBank/index.ts +0 -3
- package/src/services/rebalance/yieldingBank/planner.ts +0 -215
- package/src/services/rebalance/yieldingBank/strategy.ts +0 -41
- package/src/services/rebalance/yieldingBank/types.ts +0 -41
- package/src/services/redemption/index.ts +0 -9
- package/src/services/redemption/redemptionService.ts +0 -758
- package/src/types/enriched.ts +0 -187
- package/src/types/index.ts +0 -1
- package/src/utils/cache.ts +0 -12
- package/src/utils/data.ts +0 -65
- package/src/utils/enrichment.ts +0 -330
- package/src/utils/feeDripMetrics.ts +0 -146
- package/src/utils/general.ts +0 -54
- package/src/utils/index.ts +0 -13
- package/src/utils/ix.ts +0 -227
- package/src/utils/lendingPosition.ts +0 -221
- package/src/utils/lookupTables.ts +0 -309
- package/src/utils/lycData.ts +0 -321
- package/src/utils/timelock.ts +0 -63
- package/src/utils/tokenFeeMath.ts +0 -25
- package/src/utils/transactions.ts +0 -109
- package/src/utils/yieldingBank.ts +0 -38
- package/tsconfig.json +0 -11
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CPI args buffer utilities.
|
|
4
|
-
*
|
|
5
|
-
* # Wire format (per CPI slot)
|
|
6
|
-
*
|
|
7
|
-
* ```text
|
|
8
|
-
* [u16 LE length]
|
|
9
|
-
* • 0xFFFF → skip (program must compute args)
|
|
10
|
-
* • 0 → no instruction args (invoke with empty data)
|
|
11
|
-
* • N > 0 → N bytes of client-provided data follow
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* Protocol-specific getter functions (e.g. `getPerenaMintArgs`) return raw
|
|
15
|
-
* serialized bytes (no prefix). Wrap them with `serializeArgs()` to add
|
|
16
|
-
* the u16 length prefix before packing into the CPI args buffer.
|
|
17
|
-
*/
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.CpiArgsBuilder = exports.SKIP_SENTINEL = void 0;
|
|
20
|
-
exports.serializeArgs = serializeArgs;
|
|
21
|
-
/** Sentinel u16 value meaning "program must provide args." */
|
|
22
|
-
exports.SKIP_SENTINEL = 0xffff;
|
|
23
|
-
/**
|
|
24
|
-
* Serialize CPI args with a u16 LE length prefix.
|
|
25
|
-
*
|
|
26
|
-
* - Called with data → `[u16_len, ...data]` (client provides args; len may be 0)
|
|
27
|
-
* - Called without data → `[0xFF, 0xFF]` (skip — program provides args)
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```typescript
|
|
31
|
-
* serializeArgs(getPerenaMintArgs({ ... })) // [16, 0, ...16 bytes]
|
|
32
|
-
* serializeArgs(jupiterSwapData) // [N, 0, ...N bytes]
|
|
33
|
-
* serializeArgs(Buffer.alloc(0)) // [0, 0] — no-args instruction
|
|
34
|
-
* serializeArgs() // [0xFF, 0xFF] — skip
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
function serializeArgs(data) {
|
|
38
|
-
if (data === undefined) {
|
|
39
|
-
const buf = Buffer.alloc(2);
|
|
40
|
-
buf.writeUInt16LE(exports.SKIP_SENTINEL);
|
|
41
|
-
return buf;
|
|
42
|
-
}
|
|
43
|
-
const len = data.length;
|
|
44
|
-
const buf = Buffer.alloc(2 + len);
|
|
45
|
-
buf.writeUInt16LE(len);
|
|
46
|
-
if (len > 0) {
|
|
47
|
-
Buffer.from(data).copy(buf, 2);
|
|
48
|
-
}
|
|
49
|
-
return buf;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Fluent builder for packing CPI args into a single buffer.
|
|
53
|
-
*
|
|
54
|
-
* Each `.add()` call wraps the provided data with a u16 length prefix
|
|
55
|
-
* via `serializeArgs`, then appends it.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```typescript
|
|
59
|
-
* const cpiArgs = new CpiArgsBuilder()
|
|
60
|
-
* .add(getPerenaMintArgs({ amountYieldingDeposit: 1e6, minBankMintMinted: 9e5 }))
|
|
61
|
-
* .add(jupiterSwapData)
|
|
62
|
-
* .noArgs() // no-args instruction (len = 0)
|
|
63
|
-
* .skip() // program provides args (0xFFFF)
|
|
64
|
-
* .build();
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
class CpiArgsBuilder {
|
|
68
|
-
constructor() {
|
|
69
|
-
this.parts = [];
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Add client-provided args for the next CPI slot.
|
|
73
|
-
* Automatically wraps with a u16 LE length prefix.
|
|
74
|
-
*/
|
|
75
|
-
add(data) {
|
|
76
|
-
this.parts.push(serializeArgs(data));
|
|
77
|
-
return this;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Mark the next CPI slot as a no-args instruction (length = 0).
|
|
81
|
-
* The Rust side will invoke the CPI with empty instruction data.
|
|
82
|
-
*/
|
|
83
|
-
noArgs() {
|
|
84
|
-
this.parts.push(serializeArgs(Buffer.alloc(0)));
|
|
85
|
-
return this;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Mark the next CPI slot as program-provided (sentinel 0xFFFF).
|
|
89
|
-
* The Rust handler must compute args and call `invoke_cpi` directly.
|
|
90
|
-
*/
|
|
91
|
-
skip() {
|
|
92
|
-
this.parts.push(serializeArgs());
|
|
93
|
-
return this;
|
|
94
|
-
}
|
|
95
|
-
/** Build the final packed buffer. */
|
|
96
|
-
build() {
|
|
97
|
-
return Buffer.concat(this.parts);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.CpiArgsBuilder = CpiArgsBuilder;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./args"), exports);
|
|
18
|
-
__exportStar(require("./refs"), exports);
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CPI account mapping utilities for multi-CPI transactions.
|
|
3
|
-
*/
|
|
4
|
-
import { type Address } from "@solana/kit";
|
|
5
|
-
import { CpiData, CustomAccountMeta, InstructionRefs } from "../../types";
|
|
6
|
-
/**
|
|
7
|
-
* Mapping for extracting accounts from `remainingAccounts` across multiple CPIs.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* For 2 CPIs where CPI 0 needs 10 accounts and CPI 1 needs 8 accounts:
|
|
11
|
-
* ```
|
|
12
|
-
* indices: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 2, 5, 7, 10, 11, 12, 13, 14]
|
|
13
|
-
* lengths: [10, 8]
|
|
14
|
-
*
|
|
15
|
-
* CPI 0 uses indices[0..10]
|
|
16
|
-
* CPI 1 uses indices[10..18]
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* Matches Rust `CpiMapping` struct.
|
|
20
|
-
*/
|
|
21
|
-
export interface CpiMapping {
|
|
22
|
-
/** All indices into the account pool, flattened across all CPIs */
|
|
23
|
-
indices: Buffer;
|
|
24
|
-
/** Number of accounts per CPI - used to slice indices */
|
|
25
|
-
lengths: Buffer;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Input for a single CPI in deduplication.
|
|
29
|
-
*
|
|
30
|
-
* Any object with `cpiType` and `accounts` can be used, including `CpiData`.
|
|
31
|
-
*
|
|
32
|
-
* @property cpiType - Index into CPI_REGISTRY
|
|
33
|
-
* @property accounts - Accounts for this CPI (PROGRAM MUST BE FIRST!)
|
|
34
|
-
*/
|
|
35
|
-
export interface CpiInput {
|
|
36
|
-
/** Index into CPI_REGISTRY (e.g., CpiTypes.PERENA_MINT) */
|
|
37
|
-
cpiType: number;
|
|
38
|
-
/** Accounts for this CPI - PROGRAM MUST BE FIRST ACCOUNT */
|
|
39
|
-
accounts: CustomAccountMeta[];
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Options for deduplicating CPI accounts.
|
|
43
|
-
*/
|
|
44
|
-
export interface DeduplicateOptions {
|
|
45
|
-
/**
|
|
46
|
-
* Accounts to pre-populate the pool with before processing CPIs.
|
|
47
|
-
*
|
|
48
|
-
* These accounts are inserted at the beginning of the pool (positions 0..N-1)
|
|
49
|
-
* so that CPI account indices correctly reference them. Any CPI account
|
|
50
|
-
* whose address matches an initial account reuses that slot (deduplication).
|
|
51
|
-
*
|
|
52
|
-
* Use this to merge oracle accounts with CPI accounts in a single pass.
|
|
53
|
-
*/
|
|
54
|
-
initialAccounts?: CustomAccountMeta[];
|
|
55
|
-
/** Addresses to track - returns their indices in the pool */
|
|
56
|
-
trackAddresses?: Address[];
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Result of creating CPI refs from multiple CPI account lists.
|
|
60
|
-
*/
|
|
61
|
-
export interface CreateCpiRefsResult {
|
|
62
|
-
/** The deduplicated pool of unique accounts (pass as remainingAccounts) */
|
|
63
|
-
accounts: CustomAccountMeta[];
|
|
64
|
-
/** Anchor-serializable instruction refs (pass to Rust) */
|
|
65
|
-
refs: InstructionRefs;
|
|
66
|
-
lookupTables: Address[];
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Result of creating multiple separate CPI ref groups from a shared account pool.
|
|
70
|
-
*/
|
|
71
|
-
export interface CreateMultiCpiRefsResult {
|
|
72
|
-
/** The single deduplicated pool of unique accounts (pass as remainingAccounts) */
|
|
73
|
-
accounts: CustomAccountMeta[];
|
|
74
|
-
/** One InstructionRefs per input group, all indexing into the shared pool */
|
|
75
|
-
refsGroups: InstructionRefs[];
|
|
76
|
-
lookupTables: Address[];
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Deduplicate multiple groups of CPI data into a single shared account pool,
|
|
80
|
-
* returning separate `InstructionRefs` for each group.
|
|
81
|
-
*
|
|
82
|
-
* Use this when an instruction accepts multiple independent refs arguments
|
|
83
|
-
* (e.g. `ybIxRefs` + `tokenIxRefs`) that must index into the same
|
|
84
|
-
* `remainingAccounts` pool.
|
|
85
|
-
*
|
|
86
|
-
* @param cpiGroups - Array of CPI data groups; each group produces one InstructionRefs
|
|
87
|
-
* @param options - Optional initial accounts and tracked addresses
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* ```typescript
|
|
91
|
-
* const swapCpis = [jupiterSwapCpiData];
|
|
92
|
-
* const repayCpis = [kaminoRepayCpiData];
|
|
93
|
-
*
|
|
94
|
-
* const { accounts, refsGroups } = createMultiCpiRefs(
|
|
95
|
-
* [swapCpis, repayCpis],
|
|
96
|
-
* { initialAccounts: carryTradeAccounts }
|
|
97
|
-
* );
|
|
98
|
-
* const [ybIxRefs, tokenIxRefs] = refsGroups;
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
export declare function createMultiCpiRefs(cpiGroups: CpiData[][], options?: DeduplicateOptions): CreateMultiCpiRefsResult;
|
|
102
|
-
/**
|
|
103
|
-
* Deduplicate multiple CPI account lists into a single pool with CPI refs.
|
|
104
|
-
*
|
|
105
|
-
* Accepts any array of objects with `cpiType` and `accounts`, including `CpiData[]`.
|
|
106
|
-
*
|
|
107
|
-
* @param cpis - Array of CPI inputs (each with cpiType and accounts)
|
|
108
|
-
* @param options - Optional configuration (e.g., addresses to track)
|
|
109
|
-
* @returns Deduplicated pool and CPI refs
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* // CpiData includes cpiType, so pass it directly
|
|
114
|
-
* const perenaIx = await perenaClient.getSwapCpiData(quote, pda);
|
|
115
|
-
* const jupiterIx = await jupiterClient.getSwapCpiData(quote, pda);
|
|
116
|
-
*
|
|
117
|
-
* const { accounts, refs } = createCpiRefs([perenaIx, jupiterIx]);
|
|
118
|
-
*
|
|
119
|
-
* // Use accounts as remainingAccounts, refs as instruction arg
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
export declare function createCpiRefs(cpis: CpiData[], options?: DeduplicateOptions): CreateCpiRefsResult;
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CPI account mapping utilities for multi-CPI transactions.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createMultiCpiRefs = createMultiCpiRefs;
|
|
7
|
-
exports.createCpiRefs = createCpiRefs;
|
|
8
|
-
const kit_1 = require("@solana/kit");
|
|
9
|
-
const roles_1 = require("../accounts/roles");
|
|
10
|
-
const args_1 = require("./args");
|
|
11
|
-
const accounts_1 = require("../accounts");
|
|
12
|
-
// ============================================================================
|
|
13
|
-
// Helper Functions
|
|
14
|
-
// ============================================================================
|
|
15
|
-
/**
|
|
16
|
-
* Build indices for a single account list against a pool.
|
|
17
|
-
*/
|
|
18
|
-
function buildIndicesForCpi(accounts, poolIndex) {
|
|
19
|
-
return accounts.map((acc) => {
|
|
20
|
-
const idx = poolIndex.get(acc.address);
|
|
21
|
-
if (idx === undefined) {
|
|
22
|
-
throw new Error(`Account ${acc.address} not found in pool`);
|
|
23
|
-
}
|
|
24
|
-
return idx;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Build deduplicated pool from multiple account lists.
|
|
29
|
-
*/
|
|
30
|
-
function buildDeduplicatedPool(accountLists) {
|
|
31
|
-
const poolMap = new Map();
|
|
32
|
-
for (const accounts of accountLists) {
|
|
33
|
-
for (const acc of accounts) {
|
|
34
|
-
const existing = poolMap.get(acc.address);
|
|
35
|
-
if (!existing) {
|
|
36
|
-
poolMap.set(acc.address, { ...acc });
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
// Upgrade role if needed (most permissive wins)
|
|
40
|
-
if ((0, roles_1.isRoleWritable)(acc.role) && !(0, roles_1.isRoleWritable)(existing.role)) {
|
|
41
|
-
existing.role = (0, kit_1.upgradeRoleToWritable)(existing.role);
|
|
42
|
-
}
|
|
43
|
-
if ((0, roles_1.isRoleSigner)(acc.role) && !(0, roles_1.isRoleSigner)(existing.role)) {
|
|
44
|
-
existing.role = (0, kit_1.upgradeRoleToSigner)(existing.role);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return poolMap;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Build a pool that preserves the exact sequential order of `initialAccounts`
|
|
53
|
-
* (no deduplication within them) and then appends CPI accounts deduplicated
|
|
54
|
-
* against the pool's first-occurrence index.
|
|
55
|
-
*
|
|
56
|
-
* This is required for instructions like `refresh_yielding_bank` that read
|
|
57
|
-
* remaining_accounts **positionally** — deduplicating the initial accounts
|
|
58
|
-
* would shift indices and break the sequential read order.
|
|
59
|
-
*/
|
|
60
|
-
function buildPoolWithOrderedInitial(initialAccounts, accountLists) {
|
|
61
|
-
// Preserve every initial account entry in order (duplicates allowed).
|
|
62
|
-
const pool = initialAccounts.map((acc) => ({ ...acc }));
|
|
63
|
-
// Index maps each address to its FIRST occurrence for CPI dedup lookups.
|
|
64
|
-
const poolIndex = new Map();
|
|
65
|
-
pool.forEach((acc, i) => {
|
|
66
|
-
if (!poolIndex.has(acc.address)) {
|
|
67
|
-
poolIndex.set(acc.address, i);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
// Append CPI accounts, deduplicating against the pool.
|
|
71
|
-
for (const accounts of accountLists) {
|
|
72
|
-
for (const acc of accounts) {
|
|
73
|
-
const existingIdx = poolIndex.get(acc.address);
|
|
74
|
-
if (existingIdx === undefined) {
|
|
75
|
-
const idx = pool.length;
|
|
76
|
-
poolIndex.set(acc.address, idx);
|
|
77
|
-
pool.push({ ...acc });
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
// Upgrade role on the first-occurrence entry (most permissive wins).
|
|
81
|
-
const existing = pool[existingIdx];
|
|
82
|
-
if ((0, roles_1.isRoleWritable)(acc.role) && !(0, roles_1.isRoleWritable)(existing.role)) {
|
|
83
|
-
existing.role = (0, kit_1.upgradeRoleToWritable)(existing.role);
|
|
84
|
-
}
|
|
85
|
-
if ((0, roles_1.isRoleSigner)(acc.role) && !(0, roles_1.isRoleSigner)(existing.role)) {
|
|
86
|
-
existing.role = (0, kit_1.upgradeRoleToSigner)(existing.role);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return { pool, poolIndex };
|
|
92
|
-
}
|
|
93
|
-
// ============================================================================
|
|
94
|
-
// Shared Internal Helpers
|
|
95
|
-
// ============================================================================
|
|
96
|
-
/**
|
|
97
|
-
* Build a deduplicated account pool from CPI account lists, respecting
|
|
98
|
-
* optional `initialAccounts` ordering.
|
|
99
|
-
*/
|
|
100
|
-
function buildPool(accountLists, options) {
|
|
101
|
-
if (options?.initialAccounts) {
|
|
102
|
-
return buildPoolWithOrderedInitial(options.initialAccounts, accountLists);
|
|
103
|
-
}
|
|
104
|
-
const poolMap = buildDeduplicatedPool(accountLists);
|
|
105
|
-
const pool = Array.from(poolMap.values());
|
|
106
|
-
const poolIndex = new Map();
|
|
107
|
-
pool.forEach((acc, i) => poolIndex.set(acc.address, i));
|
|
108
|
-
return { pool, poolIndex };
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Resolve tracked addresses to their indices in the pool.
|
|
112
|
-
*/
|
|
113
|
-
function resolveTrackedIndices(poolIndex, trackAddresses) {
|
|
114
|
-
if (!trackAddresses)
|
|
115
|
-
return [];
|
|
116
|
-
return trackAddresses.map((addr) => {
|
|
117
|
-
const idx = poolIndex.get(addr);
|
|
118
|
-
if (idx === undefined) {
|
|
119
|
-
throw new Error(`Tracked address ${addr} not found in pool`);
|
|
120
|
-
}
|
|
121
|
-
return idx;
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Build a single `InstructionRefs` from a flat list of CPIs and their
|
|
126
|
-
* pre-built account lists, all indexing into a shared pool.
|
|
127
|
-
*/
|
|
128
|
-
function buildInstructionRefs(cpis, accountLists, poolIndex, trackedIndices) {
|
|
129
|
-
const allIndices = [];
|
|
130
|
-
const lengths = [];
|
|
131
|
-
const cpiTypes = [];
|
|
132
|
-
const cpiArgs = new args_1.CpiArgsBuilder();
|
|
133
|
-
for (let i = 0; i < cpis.length; i++) {
|
|
134
|
-
const indices = buildIndicesForCpi(accountLists[i], poolIndex);
|
|
135
|
-
allIndices.push(...indices);
|
|
136
|
-
lengths.push(indices.length);
|
|
137
|
-
cpiTypes.push(cpis[i].cpiType);
|
|
138
|
-
if (cpis[i].data !== undefined) {
|
|
139
|
-
cpiArgs.add(cpis[i].data);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
cpiArgs.skip();
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return {
|
|
146
|
-
cpi: {
|
|
147
|
-
accounts: {
|
|
148
|
-
indices: Buffer.from(allIndices),
|
|
149
|
-
lengths: Buffer.from(lengths),
|
|
150
|
-
},
|
|
151
|
-
types: Buffer.from(cpiTypes),
|
|
152
|
-
args: cpiArgs.build(),
|
|
153
|
-
},
|
|
154
|
-
tracked: Buffer.from(trackedIndices),
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
/** Prepend the program account to each CPI's account list. */
|
|
158
|
-
function toCpiAccountLists(cpis) {
|
|
159
|
-
return cpis.map((cpi) => [(0, accounts_1.toCustomAccountMeta)(cpi.programId), ...cpi.accounts]);
|
|
160
|
-
}
|
|
161
|
-
/** Collect all lookup tables from a flat list of CPIs. */
|
|
162
|
-
function collectLookupTables(cpis) {
|
|
163
|
-
return cpis.flatMap((x) => x.lookupTables ?? []);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Deduplicate multiple groups of CPI data into a single shared account pool,
|
|
167
|
-
* returning separate `InstructionRefs` for each group.
|
|
168
|
-
*
|
|
169
|
-
* Use this when an instruction accepts multiple independent refs arguments
|
|
170
|
-
* (e.g. `ybIxRefs` + `tokenIxRefs`) that must index into the same
|
|
171
|
-
* `remainingAccounts` pool.
|
|
172
|
-
*
|
|
173
|
-
* @param cpiGroups - Array of CPI data groups; each group produces one InstructionRefs
|
|
174
|
-
* @param options - Optional initial accounts and tracked addresses
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* ```typescript
|
|
178
|
-
* const swapCpis = [jupiterSwapCpiData];
|
|
179
|
-
* const repayCpis = [kaminoRepayCpiData];
|
|
180
|
-
*
|
|
181
|
-
* const { accounts, refsGroups } = createMultiCpiRefs(
|
|
182
|
-
* [swapCpis, repayCpis],
|
|
183
|
-
* { initialAccounts: carryTradeAccounts }
|
|
184
|
-
* );
|
|
185
|
-
* const [ybIxRefs, tokenIxRefs] = refsGroups;
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
function createMultiCpiRefs(cpiGroups, options) {
|
|
189
|
-
const allCpis = cpiGroups.flat();
|
|
190
|
-
const allAccountLists = toCpiAccountLists(allCpis);
|
|
191
|
-
const { pool, poolIndex } = buildPool(allAccountLists, options);
|
|
192
|
-
const trackedIndices = resolveTrackedIndices(poolIndex, options?.trackAddresses);
|
|
193
|
-
let flatIdx = 0;
|
|
194
|
-
const refsGroups = cpiGroups.map((group) => {
|
|
195
|
-
const groupAccountLists = allAccountLists.slice(flatIdx, flatIdx + group.length);
|
|
196
|
-
flatIdx += group.length;
|
|
197
|
-
return buildInstructionRefs(group, groupAccountLists, poolIndex, trackedIndices);
|
|
198
|
-
});
|
|
199
|
-
return {
|
|
200
|
-
accounts: (0, roles_1.stripSignerFromAccounts)(pool),
|
|
201
|
-
refsGroups,
|
|
202
|
-
lookupTables: collectLookupTables(allCpis),
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Deduplicate multiple CPI account lists into a single pool with CPI refs.
|
|
207
|
-
*
|
|
208
|
-
* Accepts any array of objects with `cpiType` and `accounts`, including `CpiData[]`.
|
|
209
|
-
*
|
|
210
|
-
* @param cpis - Array of CPI inputs (each with cpiType and accounts)
|
|
211
|
-
* @param options - Optional configuration (e.g., addresses to track)
|
|
212
|
-
* @returns Deduplicated pool and CPI refs
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```typescript
|
|
216
|
-
* // CpiData includes cpiType, so pass it directly
|
|
217
|
-
* const perenaIx = await perenaClient.getSwapCpiData(quote, pda);
|
|
218
|
-
* const jupiterIx = await jupiterClient.getSwapCpiData(quote, pda);
|
|
219
|
-
*
|
|
220
|
-
* const { accounts, refs } = createCpiRefs([perenaIx, jupiterIx]);
|
|
221
|
-
*
|
|
222
|
-
* // Use accounts as remainingAccounts, refs as instruction arg
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
function createCpiRefs(cpis, options) {
|
|
226
|
-
const accountLists = toCpiAccountLists(cpis);
|
|
227
|
-
const { pool, poolIndex } = buildPool(accountLists, options);
|
|
228
|
-
const trackedIndices = resolveTrackedIndices(poolIndex, options?.trackAddresses);
|
|
229
|
-
return {
|
|
230
|
-
accounts: (0, roles_1.stripSignerFromAccounts)(pool),
|
|
231
|
-
refs: buildInstructionRefs(cpis, accountLists, poolIndex, trackedIndices),
|
|
232
|
-
lookupTables: collectLookupTables(cpis),
|
|
233
|
-
};
|
|
234
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { TransactionCacheInvalidation } from "../types/general";
|
|
2
|
-
import type { DataCache } from "../services/dataCache";
|
|
3
|
-
export interface ApplyDataCacheTransactionInvalidationsOptions {
|
|
4
|
-
/**
|
|
5
|
-
* `DataCache` category used for `lycToken` invalidations (program-specific; e.g. LYC uses `"token"`).
|
|
6
|
-
*/
|
|
7
|
-
tokenPdaCategory: string;
|
|
8
|
-
/**
|
|
9
|
-
* `DataCache` category used for `lycYieldingBank` invalidations.
|
|
10
|
-
*/
|
|
11
|
-
yieldingBankPdaCategory: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Clears {@link DataCache} entries described by post-success invalidations.
|
|
15
|
-
*
|
|
16
|
-
* Handles `lycToken`, `lycYieldingBank`, `splAta`, and `perena` branches of
|
|
17
|
-
* {@link TransactionCacheInvalidation}. Ignores `kamino` entries (those are
|
|
18
|
-
* applied by lending-platform clients).
|
|
19
|
-
*/
|
|
20
|
-
export declare function applyDataCacheTransactionInvalidations(dataCache: DataCache, invalidations: TransactionCacheInvalidation[], options: ApplyDataCacheTransactionInvalidationsOptions): void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyDataCacheTransactionInvalidations = applyDataCacheTransactionInvalidations;
|
|
4
|
-
const baseAccountClient_1 = require("../services/baseAccountClient");
|
|
5
|
-
/**
|
|
6
|
-
* Clears {@link DataCache} entries described by post-success invalidations.
|
|
7
|
-
*
|
|
8
|
-
* Handles `lycToken`, `lycYieldingBank`, `splAta`, and `perena` branches of
|
|
9
|
-
* {@link TransactionCacheInvalidation}. Ignores `kamino` entries (those are
|
|
10
|
-
* applied by lending-platform clients).
|
|
11
|
-
*/
|
|
12
|
-
function applyDataCacheTransactionInvalidations(dataCache, invalidations, options) {
|
|
13
|
-
for (const inv of invalidations) {
|
|
14
|
-
if (inv.client === "lycToken") {
|
|
15
|
-
dataCache.clearCacheEntry(options.tokenPdaCategory, inv.tokenPda);
|
|
16
|
-
}
|
|
17
|
-
else if (inv.client === "lycYieldingBank") {
|
|
18
|
-
dataCache.clearCacheEntry(options.yieldingBankPdaCategory, inv.yieldingBankPda);
|
|
19
|
-
}
|
|
20
|
-
else if (inv.client === "splAta") {
|
|
21
|
-
dataCache.clearCacheEntry(baseAccountClient_1.SPL_ATA_CACHE_CATEGORY, inv.ata);
|
|
22
|
-
}
|
|
23
|
-
else if (inv.client === "perena") {
|
|
24
|
-
inv.dataCache.clearCacheEntry(inv.category, inv.id);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Address } from "@solana/kit";
|
|
2
|
-
export declare function resolveFp(keypairFp: string): string;
|
|
3
|
-
export declare function deduplicateAccounts(addresses: Address[]): Address[];
|
|
4
|
-
/**
|
|
5
|
-
* Returns items in encounter order; later entries with the same `key(item)` are skipped.
|
|
6
|
-
*/
|
|
7
|
-
export declare function dedupeOrdered<T>(items: readonly T[], key: (item: T) => string): T[];
|
|
8
|
-
/**
|
|
9
|
-
* {@link dedupeOrdered} for Solana Kit `Address` values (compares base58 strings).
|
|
10
|
-
*/
|
|
11
|
-
export declare function dedupeOrderedAddresses(addresses: readonly Address[]): Address[];
|
|
12
|
-
/** Return `addresses` excluding any address present in `excluded`. */
|
|
13
|
-
export declare function filterSpecificAccounts(addresses: readonly Address[], excluded: readonly Address[]): Address[];
|
|
14
|
-
export declare function zip<T, U>(list1: T[], list2: U[]): [T, U][];
|
|
15
|
-
/**
|
|
16
|
-
* Returns the element with the highest numeric score. Throws if `items` is empty.
|
|
17
|
-
*/
|
|
18
|
-
export declare function maxByNumber<T>(items: T[], score: (item: T) => number): T;
|
|
19
|
-
export declare function createRecord<T>(keys: string[], values: T[]): Record<string, T>;
|
|
20
|
-
/**
|
|
21
|
-
* Case-insensitive key lookup on a record. Returns the first matching key, or undefined.
|
|
22
|
-
*/
|
|
23
|
-
export declare function findKeyIgnoreCase(record: Record<string, unknown>, key: string): string | undefined;
|
|
24
|
-
export declare function sleep(ms: number): Promise<void>;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.resolveFp = resolveFp;
|
|
7
|
-
exports.deduplicateAccounts = deduplicateAccounts;
|
|
8
|
-
exports.dedupeOrdered = dedupeOrdered;
|
|
9
|
-
exports.dedupeOrderedAddresses = dedupeOrderedAddresses;
|
|
10
|
-
exports.filterSpecificAccounts = filterSpecificAccounts;
|
|
11
|
-
exports.zip = zip;
|
|
12
|
-
exports.maxByNumber = maxByNumber;
|
|
13
|
-
exports.createRecord = createRecord;
|
|
14
|
-
exports.findKeyIgnoreCase = findKeyIgnoreCase;
|
|
15
|
-
exports.sleep = sleep;
|
|
16
|
-
const os_1 = __importDefault(require("os"));
|
|
17
|
-
const path_1 = __importDefault(require("path"));
|
|
18
|
-
function resolveFp(keypairFp) {
|
|
19
|
-
// Expand ~ to home dir
|
|
20
|
-
if (keypairFp.startsWith("~")) {
|
|
21
|
-
keypairFp = path_1.default.join(os_1.default.homedir(), keypairFp.slice(1));
|
|
22
|
-
}
|
|
23
|
-
// Resolve relative paths to absolute ones
|
|
24
|
-
keypairFp = path_1.default.resolve(keypairFp);
|
|
25
|
-
return keypairFp;
|
|
26
|
-
}
|
|
27
|
-
function deduplicateAccounts(addresses) {
|
|
28
|
-
return Array.from(new Set(addresses).values());
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Returns items in encounter order; later entries with the same `key(item)` are skipped.
|
|
32
|
-
*/
|
|
33
|
-
function dedupeOrdered(items, key) {
|
|
34
|
-
const ordered = [];
|
|
35
|
-
const seen = new Set();
|
|
36
|
-
for (const item of items) {
|
|
37
|
-
const k = key(item);
|
|
38
|
-
if (seen.has(k))
|
|
39
|
-
continue;
|
|
40
|
-
seen.add(k);
|
|
41
|
-
ordered.push(item);
|
|
42
|
-
}
|
|
43
|
-
return ordered;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* {@link dedupeOrdered} for Solana Kit `Address` values (compares base58 strings).
|
|
47
|
-
*/
|
|
48
|
-
function dedupeOrderedAddresses(addresses) {
|
|
49
|
-
return dedupeOrdered(addresses, (a) => a);
|
|
50
|
-
}
|
|
51
|
-
/** Return `addresses` excluding any address present in `excluded`. */
|
|
52
|
-
function filterSpecificAccounts(addresses, excluded) {
|
|
53
|
-
const excludedSet = new Set(excluded);
|
|
54
|
-
return addresses.filter((address) => !excludedSet.has(address));
|
|
55
|
-
}
|
|
56
|
-
function zip(list1, list2) {
|
|
57
|
-
const minLength = Math.min(list1.length, list2.length);
|
|
58
|
-
const result = [];
|
|
59
|
-
for (let i = 0; i < minLength; i++) {
|
|
60
|
-
result.push([list1[i], list2[i]]);
|
|
61
|
-
}
|
|
62
|
-
return result;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Returns the element with the highest numeric score. Throws if `items` is empty.
|
|
66
|
-
*/
|
|
67
|
-
function maxByNumber(items, score) {
|
|
68
|
-
if (items.length === 0) {
|
|
69
|
-
throw new Error("maxByNumber: empty items");
|
|
70
|
-
}
|
|
71
|
-
let best = items[0];
|
|
72
|
-
let bestScore = score(best);
|
|
73
|
-
for (let i = 1; i < items.length; i++) {
|
|
74
|
-
const item = items[i];
|
|
75
|
-
const s = score(item);
|
|
76
|
-
if (s > bestScore) {
|
|
77
|
-
best = item;
|
|
78
|
-
bestScore = s;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return best;
|
|
82
|
-
}
|
|
83
|
-
function createRecord(keys, values) {
|
|
84
|
-
return Object.fromEntries(zip(keys, values).map(([k, v]) => [k.toString(), v]));
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Case-insensitive key lookup on a record. Returns the first matching key, or undefined.
|
|
88
|
-
*/
|
|
89
|
-
function findKeyIgnoreCase(record, key) {
|
|
90
|
-
const lower = key.toLowerCase();
|
|
91
|
-
return Object.keys(record).find((k) => k.toLowerCase() === lower);
|
|
92
|
-
}
|
|
93
|
-
function sleep(ms) {
|
|
94
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
95
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export * from "./accounts";
|
|
2
|
-
export * from "./data";
|
|
3
|
-
export * from "./compat";
|
|
4
|
-
export * from "./cpi";
|
|
5
|
-
export * from "./instruction";
|
|
6
|
-
export * from "./numbers";
|
|
7
|
-
export * from "./rpc";
|
|
8
|
-
export * from "./jsonRpcFetch";
|
|
9
|
-
export * from "./asyncConcurrency";
|
|
10
|
-
export * from "./anchor";
|
|
11
|
-
export * from "./solana";
|
|
12
|
-
export * from "./transaction";
|
|
13
|
-
export * from "./transactionSplitter";
|
|
14
|
-
export * from "./txAccountCoverage";
|
|
15
|
-
export * from "./jito";
|
|
16
|
-
export * from "./general";
|
|
17
|
-
export * from "./retry";
|
|
18
|
-
export * from "./token";
|
|
19
|
-
export * from "./timeSeries";
|
|
20
|
-
export * from "./metadata";
|
|
21
|
-
export * from "./json";
|
|
22
|
-
export * from "./priorityFee";
|