@whetstone-research/doppler-sdk 1.0.1 → 1.0.4

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.
Files changed (38) hide show
  1. package/README.md +23 -19
  2. package/dist/{chunk-LIXSTCMM.js → chunk-BSHIMMA4.js} +74 -31
  3. package/dist/chunk-BSHIMMA4.js.map +1 -0
  4. package/dist/chunk-BXATWUGJ.cjs +1111 -0
  5. package/dist/chunk-BXATWUGJ.cjs.map +1 -0
  6. package/dist/chunk-DPKVNI6Q.cjs +351 -0
  7. package/dist/chunk-DPKVNI6Q.cjs.map +1 -0
  8. package/dist/{chunk-T46KDO65.js → chunk-J57ROY36.js} +16 -29
  9. package/dist/chunk-J57ROY36.js.map +1 -0
  10. package/dist/chunk-Q7SFCCGT.cjs +11 -0
  11. package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
  12. package/dist/evm/index.cjs +15410 -0
  13. package/dist/evm/index.cjs.map +1 -0
  14. package/dist/evm/index.d.cts +8533 -0
  15. package/dist/evm/index.js +2 -2
  16. package/dist/evm/index.js.map +1 -1
  17. package/dist/{oracle-B2LV97ff.d.ts → oracle-CU-nZnja.d.cts} +1 -1
  18. package/dist/oracle-CU-nZnja.d.ts +826 -0
  19. package/dist/{pda-LKHUH6JK.js → pda-TXZDXZZ4.js} +3 -3
  20. package/dist/pda-TXZDXZZ4.js.map +1 -0
  21. package/dist/pda-ZZMBZSFU.cjs +53 -0
  22. package/dist/pda-ZZMBZSFU.cjs.map +1 -0
  23. package/dist/solana/index.cjs +4981 -0
  24. package/dist/solana/index.cjs.map +1 -0
  25. package/dist/solana/index.d.cts +4584 -0
  26. package/dist/solana/index.d.ts +2212 -162
  27. package/dist/solana/index.js +3163 -486
  28. package/dist/solana/index.js.map +1 -1
  29. package/dist/solana/react/index.cjs +1465 -0
  30. package/dist/solana/react/index.cjs.map +1 -0
  31. package/dist/solana/react/index.d.cts +1046 -0
  32. package/dist/solana/react/index.d.ts +1 -1
  33. package/dist/solana/react/index.js +5 -5
  34. package/dist/solana/react/index.js.map +1 -1
  35. package/package.json +17 -9
  36. package/dist/chunk-LIXSTCMM.js.map +0 -1
  37. package/dist/chunk-T46KDO65.js.map +0 -1
  38. package/dist/pda-LKHUH6JK.js.map +0 -1
@@ -4,7 +4,7 @@ import { ReactNode } from 'react';
4
4
  import { Rpc, SolanaRpcApi, Address, TransactionSigner } from '@solana/kit';
5
5
  import { WalletAccount, Wallet } from '@wallet-standard/base';
6
6
  import { StandardConnectFeature, StandardDisconnectFeature } from '@wallet-standard/features';
7
- import { P as Pool, b as SwapQuote, S as SwapDirection, d as AddLiquidityQuote, R as RemoveLiquidityQuote, a as Position, a9 as PositionValue, ab as PositionWithAddress, O as OracleState, t as TwapResult, ad as OracleWithAddress } from '../../oracle-B2LV97ff.js';
7
+ import { P as Pool, m as SwapQuote, l as SwapDirection, o as AddLiquidityQuote, p as RemoveLiquidityQuote, a as Position, L as PositionValue, N as PositionWithAddress, O as OracleState, $ as TwapResult, D as OracleWithAddress } from '../../oracle-CU-nZnja.js';
8
8
 
9
9
  /**
10
10
  * Configuration for the AMM provider
@@ -1,5 +1,5 @@
1
- import { fetchPool, getSwapQuote, getSwapQuoteExactOut, ratioToNumber, getAddLiquidityQuote, getRemoveLiquidityQuote, fetchPosition, getPendingFees, getPositionValue, fetchUserPositions, MAX_FEE_AMOUNT, createCollectFeesInstruction, fetchOracle, consultTwap, getOracleSpotPrices, getOracleDeviation, getOracleAge, isOracleStale, getOracleBufferStats, comparePoolAndOraclePrices, getOracleForPool } from '../../chunk-LIXSTCMM.js';
2
- import { PROGRAM_ID, BPS_DENOM, getOracleAddress } from '../../chunk-T46KDO65.js';
1
+ import { fetchPool, getSwapQuote, getSwapQuoteExactOut, ratioToNumber, getAddLiquidityQuote, getRemoveLiquidityQuote, fetchPosition, getPendingFees, getPositionValue, fetchUserPositions, MAX_FEE_AMOUNT, createCollectFeesInstruction, fetchOracle, consultTwap, getOracleSpotPrices, getOracleDeviation, getOracleAge, isOracleStale, getOracleBufferStats, comparePoolAndOraclePrices, getOracleForPool } from '../../chunk-BSHIMMA4.js';
2
+ import { CPMM_PROGRAM_ID, BPS_DENOM, getOracleAddress } from '../../chunk-J57ROY36.js';
3
3
  import '../../chunk-PZ5AY32C.js';
4
4
  import { createContext, useMemo, useContext, useState, useEffect, useCallback, useRef } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -8,7 +8,7 @@ import { createSolanaRpc, createTransactionMessage, setTransactionMessageFeePaye
8
8
  var AmmContext = createContext(null);
9
9
  function AmmProvider({
10
10
  rpc,
11
- programId = PROGRAM_ID,
11
+ programId = CPMM_PROGRAM_ID,
12
12
  commitment = "confirmed",
13
13
  refreshInterval = 3e4,
14
14
  defaultSlippageBps = 50,
@@ -89,7 +89,7 @@ function createAmmContextValue(config) {
89
89
  return {
90
90
  rpc,
91
91
  endpoint,
92
- programId: programId ?? PROGRAM_ID,
92
+ programId: programId ?? CPMM_PROGRAM_ID,
93
93
  commitment,
94
94
  refreshInterval,
95
95
  defaultSlippageBps
@@ -841,7 +841,7 @@ function usePosition(poolAddress, positionId = 0n, options = {}) {
841
841
  setLoading(true);
842
842
  setError(null);
843
843
  try {
844
- const { getPositionAddress } = await import('../../pda-LKHUH6JK.js');
844
+ const { getPositionAddress } = await import('../../pda-TXZDXZZ4.js');
845
845
  const [posAddr] = await getPositionAddress(
846
846
  poolAddress,
847
847
  ownerAddress,