@raydium-io/raydium-sdk-v2 0.2.6-alpha → 0.2.7-alpha
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/lib/api/api.d.ts +1 -1
- package/lib/api/index.d.ts +1 -1
- package/lib/api/type.d.ts +1 -1
- package/lib/{api-c81dd6be.d.ts → api-92e9adc3.d.ts} +3 -3
- package/lib/common/accountInfo.d.ts +1 -1
- package/lib/common/bignumber.d.ts +1 -1
- package/lib/common/constant.d.ts +1 -1
- package/lib/common/fractionUtil.d.ts +1 -1
- package/lib/common/index.d.ts +1 -1
- package/lib/common/transfer.d.ts +1 -1
- package/lib/common/txTool/txTool.d.ts +1 -1
- package/lib/common/txTool/txUtils.d.ts +1 -1
- package/lib/common/utility.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/module/amount.d.ts +1 -1
- package/lib/module/fraction.d.ts +1 -1
- package/lib/module/index.d.ts +1 -1
- package/lib/module/percent.d.ts +1 -1
- package/lib/module/price.d.ts +1 -1
- package/lib/raydium/account/account.d.ts +3 -3
- package/lib/raydium/account/index.d.ts +1 -1
- package/lib/raydium/account/instruction.d.ts +1 -1
- package/lib/raydium/account/types.d.ts +1 -1
- package/lib/raydium/account/util.d.ts +1 -1
- package/lib/raydium/clmm/clmm.d.ts +3 -3
- package/lib/raydium/clmm/index.d.ts +3 -3
- package/lib/raydium/clmm/instrument.d.ts +2 -2
- package/lib/raydium/clmm/layout.d.ts +5 -5
- package/lib/raydium/clmm/type.d.ts +2 -2
- package/lib/raydium/clmm/utils/math.d.ts +2 -2
- package/lib/raydium/clmm/utils/pool.d.ts +2 -2
- package/lib/raydium/clmm/utils/position.d.ts +2 -2
- package/lib/raydium/clmm/utils/tick.d.ts +2 -2
- package/lib/raydium/clmm/utils/tickQuery.d.ts +2 -2
- package/lib/raydium/clmm/utils/tickarrayBitmap.d.ts +2 -2
- package/lib/raydium/cpmm/cpmm.d.ts +3 -3
- package/lib/raydium/cpmm/cpmm.js +1 -1
- package/lib/raydium/cpmm/cpmm.js.map +1 -1
- package/lib/raydium/cpmm/cpmm.mjs +1 -1
- package/lib/raydium/cpmm/cpmm.mjs.map +1 -1
- package/lib/raydium/cpmm/curve/calculator.d.ts +1 -1
- package/lib/raydium/cpmm/curve/constantProduct.d.ts +1 -1
- package/lib/raydium/cpmm/index.d.ts +1 -1
- package/lib/raydium/cpmm/instruction.d.ts +1 -1
- package/lib/raydium/cpmm/type.d.ts +1 -1
- package/lib/raydium/farm/config.d.ts +1 -1
- package/lib/raydium/farm/farm.d.ts +3 -3
- package/lib/raydium/farm/index.d.ts +1 -1
- package/lib/raydium/farm/instruction.d.ts +1 -1
- package/lib/raydium/farm/layout.d.ts +1 -1
- package/lib/raydium/farm/type.d.ts +1 -1
- package/lib/raydium/farm/util.d.ts +1 -1
- package/lib/raydium/ido/ido.d.ts +3 -3
- package/lib/raydium/ido/index.d.ts +3 -3
- package/lib/raydium/ido/instruction.d.ts +1 -1
- package/lib/raydium/ido/type.d.ts +1 -1
- package/lib/raydium/index.d.ts +3 -3
- package/lib/raydium/index.js +1 -1
- package/lib/raydium/index.js.map +1 -1
- package/lib/raydium/index.mjs +1 -1
- package/lib/raydium/index.mjs.map +1 -1
- package/lib/raydium/launchpad/curve/curve.d.ts +1 -1
- package/lib/raydium/launchpad/index.d.ts +3 -3
- package/lib/raydium/launchpad/launchpad.d.ts +3 -3
- package/lib/raydium/launchpad/layout.d.ts +2 -2
- package/lib/raydium/launchpad/pda.d.ts +1 -1
- package/lib/raydium/launchpad/type.d.ts +1 -1
- package/lib/raydium/liquidity/index.d.ts +1 -1
- package/lib/raydium/liquidity/instruction.d.ts +1 -1
- package/lib/raydium/liquidity/liquidity.d.ts +3 -3
- package/lib/raydium/liquidity/type.d.ts +1 -1
- package/lib/raydium/liquidity/utils.d.ts +1 -1
- package/lib/raydium/marketV2/createMarket.d.ts +3 -3
- package/lib/raydium/marketV2/index.d.ts +3 -3
- package/lib/raydium/moduleBase.d.ts +3 -3
- package/lib/raydium/raydium.d.ts +3 -3
- package/lib/raydium/raydium.js +1 -1
- package/lib/raydium/raydium.js.map +1 -1
- package/lib/raydium/raydium.mjs +1 -1
- package/lib/raydium/raydium.mjs.map +1 -1
- package/lib/raydium/token/constant.d.ts +1 -1
- package/lib/raydium/token/index.d.ts +1 -1
- package/lib/raydium/token/token.d.ts +3 -3
- package/lib/raydium/token/type.d.ts +1 -1
- package/lib/raydium/token/utils.d.ts +1 -1
- package/lib/raydium/tradeV2/index.d.ts +2 -2
- package/lib/raydium/tradeV2/instrument.d.ts +2 -2
- package/lib/raydium/tradeV2/trade.d.ts +3 -3
- package/lib/raydium/tradeV2/type.d.ts +2 -2
- package/lib/raydium/type.d.ts +1 -1
- package/lib/raydium/utils1216/index.d.ts +3 -3
- package/lib/raydium/utils1216/utils1216.d.ts +3 -3
- package/lib/{raydium-0ce2c946.d.ts → raydium-bd752ae1.d.ts} +2 -2
- package/lib/{type-dabc7a99.d.ts → type-f95c297a.d.ts} +1 -1
- package/package.json +1 -1
- package/src/raydium/cpmm/cpmm.ts +70 -65
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { i as ApiV3Token } from '../../../api-
|
|
3
|
+
import { i as ApiV3Token } from '../../../api-92e9adc3.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../../solana/type.js';
|
|
6
6
|
import '@solana/spl-token';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BN__default from 'bn.js';
|
|
2
2
|
import { SwapWithoutFeesResult, RoundDirection, TradingTokenResult } from './calculator.js';
|
|
3
3
|
import '@solana/web3.js';
|
|
4
|
-
import '../../../api-
|
|
4
|
+
import '../../../api-92e9adc3.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../../solana/type.js';
|
|
7
7
|
import '@solana/spl-token';
|
|
@@ -10,7 +10,7 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'bn.js';
|
|
11
11
|
import '../../marshmallow/buffer-layout.js';
|
|
12
12
|
import 'decimal.js';
|
|
13
|
-
import '../../api-
|
|
13
|
+
import '../../api-92e9adc3.js';
|
|
14
14
|
import 'axios';
|
|
15
15
|
import '../../solana/type.js';
|
|
16
16
|
import '@solana/spl-token';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BN__default from 'bn.js';
|
|
2
2
|
import { PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
3
|
-
import { r as ApiV3PoolInfoStandardItemCpmm, z as CpmmKeys, bO as ReturnTypeMakeInstructions } from '../../api-
|
|
3
|
+
import { r as ApiV3PoolInfoStandardItemCpmm, z as CpmmKeys, bO as ReturnTypeMakeInstructions } from '../../api-92e9adc3.js';
|
|
4
4
|
import { CpmmLockExtInfo } from './type.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PublicKey, EpochInfo } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
3
|
import Decimal from 'decimal.js';
|
|
4
|
-
import { i as ApiV3Token, f as ApiCpmmConfigInfo, bU as ComputeBudgetConfig, bV as TxTipConfig, r as ApiV3PoolInfoStandardItemCpmm, z as CpmmKeys, ci as Percent, bY as GetTransferAmountFee } from '../../api-
|
|
4
|
+
import { i as ApiV3Token, f as ApiCpmmConfigInfo, bU as ComputeBudgetConfig, bV as TxTipConfig, r as ApiV3PoolInfoStandardItemCpmm, z as CpmmKeys, ci as Percent, bY as GetTransferAmountFee } from '../../api-92e9adc3.js';
|
|
5
5
|
import { TxVersion } from '../../common/txTool/txType.js';
|
|
6
6
|
import { SwapResult } from './curve/calculator.js';
|
|
7
7
|
import { CpmmPoolInfoLayout } from './layout.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
export { bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, bz as FarmVersion, bG as isValidFarmVersion, bI as poolTypeV6, bH as validateFarmRewards } from '../../api-
|
|
2
|
+
export { bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, bz as FarmVersion, bG as isValidFarmVersion, bI as poolTypeV6, bH as validateFarmRewards } from '../../api-92e9adc3.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import '../../solana/type.js';
|
|
5
5
|
import 'bn.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
import '../../api-
|
|
2
|
+
import '../../api-92e9adc3.js';
|
|
3
3
|
import '../../common/txTool/txType.js';
|
|
4
|
-
export { F as default } from '../../raydium-
|
|
4
|
+
export { F as default } from '../../raydium-bd752ae1.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
7
7
|
import 'bn.js';
|
|
@@ -22,7 +22,7 @@ import '../liquidity/stable.js';
|
|
|
22
22
|
import '../liquidity/type.js';
|
|
23
23
|
import '../liquidity/layout.js';
|
|
24
24
|
import '../clmm/layout.js';
|
|
25
|
-
import '../../type-
|
|
25
|
+
import '../../type-f95c297a.js';
|
|
26
26
|
import '../cpmm/type.js';
|
|
27
27
|
import '../cpmm/curve/calculator.js';
|
|
28
28
|
import '../cpmm/layout.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bn as APIRewardInfo, bt as CreateFarm, bu as CreateFarmExtInfo, bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, bx as FarmDWParam, bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, bs as FarmPoolInfoV6, by as FarmPoolKeys, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, bz as FarmVersion, br as RewardInfoKey, bo as RewardInfoWithKey, bm as RewardType, bv as UpdateFarmReward, bw as UpdateFarmRewards, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, aH as associatedLedgerAccountLayout, bg as dwLayout, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, bG as isValidFarmVersion, bI as poolTypeV6, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, bH as validateFarmRewards, aI as withdrawRewardLayout } from '../../api-
|
|
1
|
+
export { bn as APIRewardInfo, bt as CreateFarm, bu as CreateFarmExtInfo, bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, bx as FarmDWParam, bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, bs as FarmPoolInfoV6, by as FarmPoolKeys, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, bz as FarmVersion, br as RewardInfoKey, bo as RewardInfoWithKey, bm as RewardType, bv as UpdateFarmReward, bw as UpdateFarmRewards, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, aH as associatedLedgerAccountLayout, bg as dwLayout, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, bG as isValidFarmVersion, bI as poolTypeV6, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, bH as validateFarmRewards, aI as withdrawRewardLayout } from '../../api-92e9adc3.js';
|
|
2
2
|
export { FarmFetchMultipleInfoParams, calFarmRewardAmount, farmRewardInfoToConfig, fetchMultipleFarmInfoAndUpdate, getAssociatedAuthority, getAssociatedLedgerAccount, getAssociatedLedgerPoolAccount, getDepositEntryIndex, getFarmLedgerLayout, getFarmStateLayout, judgeFarmType, updateFarmPoolInfo } from './util.js';
|
|
3
3
|
export { createAssociatedLedgerAccountInstruction, governanceCreateTokenOwnerRecord, makeAddNewRewardInstruction, makeCreateFarmInstruction, makeCreatorWithdrawFarmRewardInstruction, makeDepositInstructionV3, makeDepositInstructionV5, makeDepositInstructionV6, makeDepositTokenInstruction, makeDepositWithdrawInstruction, makeRestartRewardInstruction, makeWithdrawInstructionV3, makeWithdrawInstructionV4, makeWithdrawInstructionV5, makeWithdrawInstructionV6, makeWithdrawTokenInstruction, voterStakeRegistryCreateDepositEntry, voterStakeRegistryCreateVoter, voterStakeRegistryDeposit, voterStakeRegistryUpdateVoterWeightRecord, voterStakeRegistryWithdraw } from './instruction.js';
|
|
4
4
|
export { getRegistrarAddress, getTokenOwnerRecordAddress, getVoterAddress, getVoterWeightRecordAddress, getVotingMintAuthority, getVotingTokenMint } from './pda.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey, TransactionInstruction, Connection } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { bT as InstructionReturn, bm as RewardType, U as FormatFarmKeyOut, br as RewardInfoKey, bq as FarmRewardInfoConfig } from '../../api-
|
|
3
|
+
import { bT as InstructionReturn, bm as RewardType, U as FormatFarmKeyOut, br as RewardInfoKey, bq as FarmRewardInfoConfig } from '../../api-92e9adc3.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../solana/type.js';
|
|
6
6
|
import '@solana/spl-token';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../marshmallow/index.js';
|
|
2
2
|
import '@solana/web3.js';
|
|
3
3
|
import 'bn.js';
|
|
4
|
-
export { bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, aH as associatedLedgerAccountLayout, bg as dwLayout, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, aI as withdrawRewardLayout } from '../../api-
|
|
4
|
+
export { bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, aH as associatedLedgerAccountLayout, bg as dwLayout, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, aI as withdrawRewardLayout } from '../../api-92e9adc3.js';
|
|
5
5
|
import '../../marshmallow/buffer-layout.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../../solana/type.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import 'bn.js';
|
|
3
|
-
export { bn as APIRewardInfo, bt as CreateFarm, bu as CreateFarmExtInfo, bx as FarmDWParam, bs as FarmPoolInfoV6, by as FarmPoolKeys, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, br as RewardInfoKey, bo as RewardInfoWithKey, bm as RewardType, bv as UpdateFarmReward, bw as UpdateFarmRewards } from '../../api-
|
|
3
|
+
export { bn as APIRewardInfo, bt as CreateFarm, bu as CreateFarmExtInfo, bx as FarmDWParam, bs as FarmPoolInfoV6, by as FarmPoolKeys, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, br as RewardInfoKey, bo as RewardInfoWithKey, bm as RewardType, bv as UpdateFarmReward, bw as UpdateFarmRewards } from '../../api-92e9adc3.js';
|
|
4
4
|
import '../../common/txTool/txType.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey, Connection } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { bp as FarmRewardInfo, bq as FarmRewardInfoConfig, W as RewardInfoV6, b9 as FarmLedgerLayout, a_ as FarmStateLayout, aZ as FarmState, bf as FarmLedger } from '../../api-
|
|
3
|
+
import { bp as FarmRewardInfo, bq as FarmRewardInfoConfig, W as RewardInfoV6, b9 as FarmLedgerLayout, a_ as FarmStateLayout, aZ as FarmState, bf as FarmLedger } from '../../api-92e9adc3.js';
|
|
4
4
|
import { GetMultipleAccountsInfoConfig } from '../../common/accountInfo.js';
|
|
5
5
|
import { DateParam } from '../../common/date.js';
|
|
6
6
|
import { ProgramAddress } from '../../common/txTool/txUtils.js';
|
package/lib/raydium/ido/ido.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
import '../../api-
|
|
2
|
+
import '../../api-92e9adc3.js';
|
|
3
3
|
import '../../common/txTool/txType.js';
|
|
4
|
-
export { f as default } from '../../raydium-
|
|
4
|
+
export { f as default } from '../../raydium-bd752ae1.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
7
7
|
import 'bn.js';
|
|
@@ -22,7 +22,7 @@ import '../liquidity/stable.js';
|
|
|
22
22
|
import '../liquidity/type.js';
|
|
23
23
|
import '../liquidity/layout.js';
|
|
24
24
|
import '../clmm/layout.js';
|
|
25
|
-
import '../../type-
|
|
25
|
+
import '../../type-f95c297a.js';
|
|
26
26
|
import '../cpmm/type.js';
|
|
27
27
|
import '../cpmm/curve/calculator.js';
|
|
28
28
|
import '../cpmm/layout.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { f as default } from '../../raydium-
|
|
1
|
+
export { f as default } from '../../raydium-bd752ae1.js';
|
|
2
2
|
export { makeClaimInstruction, makeClaimInstructionV4, makePurchaseInstruction } from './instruction.js';
|
|
3
3
|
export { ClaimInstructionKeys, ClaimInstructionKeysV3, IdoClaimInstructionParams, IdoPoolConfig, IdoUserKeys, IdoVersion, PurchaseInstructionKeys, SnapshotVersion } from './type.js';
|
|
4
4
|
export { claimLayout, purchaseLayout } from './layout.js';
|
|
5
5
|
import '@solana/web3.js';
|
|
6
|
-
import '../../api-
|
|
6
|
+
import '../../api-92e9adc3.js';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import '../../solana/type.js';
|
|
9
9
|
import 'bn.js';
|
|
@@ -25,7 +25,7 @@ import '../liquidity/stable.js';
|
|
|
25
25
|
import '../liquidity/type.js';
|
|
26
26
|
import '../liquidity/layout.js';
|
|
27
27
|
import '../clmm/layout.js';
|
|
28
|
-
import '../../type-
|
|
28
|
+
import '../../type-f95c297a.js';
|
|
29
29
|
import '../cpmm/type.js';
|
|
30
30
|
import '../cpmm/curve/calculator.js';
|
|
31
31
|
import '../cpmm/layout.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
2
2
|
import { PurchaseInstructionKeys, ClaimInstructionKeysV3, ClaimInstructionKeys, IdoClaimInstructionParams } from './type.js';
|
|
3
|
-
import '../../api-
|
|
3
|
+
import '../../api-92e9adc3.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../solana/type.js';
|
|
6
6
|
import 'bn.js';
|
package/lib/raydium/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { C as Clmm, L as LaunchpadPoolInitParam, M as MarketExtInfo, c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams, S as SHOW_INFO, e as SwapInfoReturnExt, d as canClaimErrorType } from '../raydium-
|
|
1
|
+
export { C as Clmm, L as LaunchpadPoolInitParam, M as MarketExtInfo, c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams, S as SHOW_INFO, e as SwapInfoReturnExt, d as canClaimErrorType } from '../raydium-bd752ae1.js';
|
|
2
2
|
export { splAccountLayout } from './account/layout.js';
|
|
3
3
|
export { GetOrCreateTokenAccountParams, HandleTokenAccountParams, SplAccount, SplAccountLayout, TokenAccount, TokenAccountRaw, getCreatedTokenAccountParams } from './account/types.js';
|
|
4
4
|
export { ParseTokenAccount, generatePubKey, parseTokenAccountResp } from './account/util.js';
|
|
5
5
|
export { closeAccountInstruction, createWSolAccountInstructions, initTokenAccountInstruction, makeTransferInstruction } from './account/instruction.js';
|
|
6
|
-
export { bn as APIRewardInfo, d as ApiClmmConfigInfo, c3 as ArrayItem, bU as ComputeBudgetConfig, ca as Cover, bt as CreateFarm, bu as CreateFarmExtInfo, bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, c4 as ExactPartial, c5 as ExactRequired, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, c9 as Fallback, bx as FarmDWParam, bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, bs as FarmPoolInfoV6, by as FarmPoolKeys, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, bz as FarmVersion, bY as GetTransferAmountFee, c7 as GetValue, bT as InstructionReturn, bW as LoadParams, bN as LpToken, bS as MakeMultiTransaction, bQ as MakeTransaction, bR as MakeV0Transaction, c0 as MayArray, c1 as MayDeepArray, c2 as MayFunction, b$ as ReplaceType, bZ as ReturnTypeFetchMultipleMintInfo, b_ as ReturnTypeFetchMultipleMintInfos, bO as ReturnTypeMakeInstructions, br as RewardInfoKey, bo as RewardInfoWithKey, bm as RewardType, c6 as SKeyof, c8 as SOR, bP as SignAllTransactions, bM as SplToken, bK as TokenInfo, bL as TokenJson, bX as TransferAmountFee, bV as TxTipConfig, cb as UnionCover, bv as UpdateFarmReward, bw as UpdateFarmRewards, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, aH as associatedLedgerAccountLayout, bg as dwLayout, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, bG as isValidFarmVersion, bI as poolTypeV6, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, cc as unionArr, bH as validateFarmRewards, aI as withdrawRewardLayout } from '../api-
|
|
6
|
+
export { bn as APIRewardInfo, d as ApiClmmConfigInfo, c3 as ArrayItem, bU as ComputeBudgetConfig, ca as Cover, bt as CreateFarm, bu as CreateFarmExtInfo, bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, c4 as ExactPartial, c5 as ExactRequired, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, c9 as Fallback, bx as FarmDWParam, bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, bs as FarmPoolInfoV6, by as FarmPoolKeys, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, bz as FarmVersion, bY as GetTransferAmountFee, c7 as GetValue, bT as InstructionReturn, bW as LoadParams, bN as LpToken, bS as MakeMultiTransaction, bQ as MakeTransaction, bR as MakeV0Transaction, c0 as MayArray, c1 as MayDeepArray, c2 as MayFunction, b$ as ReplaceType, bZ as ReturnTypeFetchMultipleMintInfo, b_ as ReturnTypeFetchMultipleMintInfos, bO as ReturnTypeMakeInstructions, br as RewardInfoKey, bo as RewardInfoWithKey, bm as RewardType, c6 as SKeyof, c8 as SOR, bP as SignAllTransactions, bM as SplToken, bK as TokenInfo, bL as TokenJson, bX as TransferAmountFee, bV as TxTipConfig, cb as UnionCover, bv as UpdateFarmReward, bw as UpdateFarmRewards, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, aH as associatedLedgerAccountLayout, bg as dwLayout, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, bG as isValidFarmVersion, bI as poolTypeV6, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, cc as unionArr, bH as validateFarmRewards, aI as withdrawRewardLayout } from '../api-92e9adc3.js';
|
|
7
7
|
export { FarmFetchMultipleInfoParams, calFarmRewardAmount, farmRewardInfoToConfig, fetchMultipleFarmInfoAndUpdate, getAssociatedAuthority, getAssociatedLedgerAccount, getAssociatedLedgerPoolAccount, getDepositEntryIndex, getFarmLedgerLayout, getFarmStateLayout, judgeFarmType, updateFarmPoolInfo } from './farm/util.js';
|
|
8
8
|
export { createAssociatedLedgerAccountInstruction, governanceCreateTokenOwnerRecord, makeAddNewRewardInstruction, makeCreateFarmInstruction, makeCreatorWithdrawFarmRewardInstruction, makeDepositInstructionV3, makeDepositInstructionV5, makeDepositInstructionV6, makeDepositTokenInstruction, makeDepositWithdrawInstruction, makeRestartRewardInstruction, makeWithdrawInstructionV3, makeWithdrawInstructionV4, makeWithdrawInstructionV5, makeWithdrawInstructionV6, makeWithdrawTokenInstruction, voterStakeRegistryCreateDepositEntry, voterStakeRegistryCreateVoter, voterStakeRegistryDeposit, voterStakeRegistryUpdateVoterWeightRecord, voterStakeRegistryWithdraw } from './farm/instruction.js';
|
|
9
9
|
export { getRegistrarAddress, getTokenOwnerRecordAddress, getVoterAddress, getVoterWeightRecordAddress, getVotingMintAuthority, getVotingTokenMint } from './farm/pda.js';
|
|
10
10
|
export { SOL_INFO, TOKEN_WSOL } from './token/constant.js';
|
|
11
11
|
export { SPL_MINT_LAYOUT, SplMintLayout } from './token/layout.js';
|
|
12
12
|
export { parseTokenInfo, solToWSolToken, toApiV3Token, toFeeConfig, toToken, toTokenAmount, toTokenInfo, wSolToSolToken } from './token/utils.js';
|
|
13
|
-
export { a as ApiClmmConfigInfos, A as ApiClmmPoint, C as ClmmConfigInfo, J as ClmmLockAddress, c as ClmmPoolInfo, e as ClmmPoolPersonalPosition, b as ClmmPoolRewardInfo, o as ClmmPoolRewardLayoutInfo, F as ClmmRpcData, B as ClosePositionExtInfo, w as CollectRewardParams, x as CollectRewardsParams, d as ComputeClmmPoolInfo, m as CreateConcentratedPool, D as DecreaseLiquidity, G as GetAmountParams, y as HarvestAllRewardsParams, H as HarvestLockPosition, n as IncreasePositionFromBase, I as IncreasePositionFromLiquidity, E as InitRewardExtInfo, s as InitRewardParams, t as InitRewardsParams, L as LockPosition, M as ManipulateLiquidityExtInfo, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, j as ReturnTypeComputeAmountOut, k as ReturnTypeComputeAmountOutBaseOut, i as ReturnTypeComputeAmountOutFormat, z as ReturnTypeFetchExBitmaps, l as ReturnTypeFetchMultiplePoolTickArrays, h as ReturnTypeGetAmountsFromLiquidity, g as ReturnTypeGetLiquidityAmountOut, Q as ReturnTypeGetPriceAndTick, P as ReturnTypeGetTickPrice, f as ReturnTypeMakeCreatePoolTransaction, R as ReturnTypeMakeHarvestTransaction, S as SDKParsedConcentratedInfo, u as SetRewardParams, v as SetRewardsParams, N as TICK_ARRAY_BITMAP_SIZE, K as TICK_ARRAY_SIZE, V as Tick, W as TickArray, T as TickArrayBitmapExtensionType, Y as TickArrayState, X as TickState, Z as TickUtils, U as UserPositionAccount } from '../type-
|
|
13
|
+
export { a as ApiClmmConfigInfos, A as ApiClmmPoint, C as ClmmConfigInfo, J as ClmmLockAddress, c as ClmmPoolInfo, e as ClmmPoolPersonalPosition, b as ClmmPoolRewardInfo, o as ClmmPoolRewardLayoutInfo, F as ClmmRpcData, B as ClosePositionExtInfo, w as CollectRewardParams, x as CollectRewardsParams, d as ComputeClmmPoolInfo, m as CreateConcentratedPool, D as DecreaseLiquidity, G as GetAmountParams, y as HarvestAllRewardsParams, H as HarvestLockPosition, n as IncreasePositionFromBase, I as IncreasePositionFromLiquidity, E as InitRewardExtInfo, s as InitRewardParams, t as InitRewardsParams, L as LockPosition, M as ManipulateLiquidityExtInfo, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, j as ReturnTypeComputeAmountOut, k as ReturnTypeComputeAmountOutBaseOut, i as ReturnTypeComputeAmountOutFormat, z as ReturnTypeFetchExBitmaps, l as ReturnTypeFetchMultiplePoolTickArrays, h as ReturnTypeGetAmountsFromLiquidity, g as ReturnTypeGetLiquidityAmountOut, Q as ReturnTypeGetPriceAndTick, P as ReturnTypeGetTickPrice, f as ReturnTypeMakeCreatePoolTransaction, R as ReturnTypeMakeHarvestTransaction, S as SDKParsedConcentratedInfo, u as SetRewardParams, v as SetRewardsParams, N as TICK_ARRAY_BITMAP_SIZE, K as TICK_ARRAY_SIZE, V as Tick, W as TickArray, T as TickArrayBitmapExtensionType, Y as TickArrayState, X as TickState, Z as TickUtils, U as UserPositionAccount } from '../type-f95c297a.js';
|
|
14
14
|
export { ClmmConfigLayout, ClmmPositionLayout, LockClPositionLayoutV2, LockPositionLayout, ObservationInfoLayout, ObservationLayout, OperationLayout, PoolInfoLayout, PositionInfoLayout, PositionRewardInfoLayout, ProtocolPositionLayout, RewardInfo, TickArrayBitmapExtensionLayout, TickArrayLayout, TickLayout } from './clmm/layout.js';
|
|
15
15
|
export { ClmmInstrument } from './clmm/instrument.js';
|
|
16
16
|
export { BIT_PRECISION, FEE_RATE_DENOMINATOR, Fee, LOG_B_2_X32, LOG_B_P_ERR_MARGIN_LOWER_X64, LOG_B_P_ERR_MARGIN_UPPER_X64, MAX_SQRT_PRICE_X64, MAX_SQRT_PRICE_X64_SUB_ONE, MAX_TICK, MIN_SQRT_PRICE_X64, MIN_SQRT_PRICE_X64_ADD_ONE, MIN_TICK, MaxU64, MaxUint128, NEGATIVE_ONE, ONE, Q128, Q64, TICK_SPACINGS, U64Resolution, U64_IGNORE_RANGE, ZERO, mockCreatePoolInfo, mockV3CreatePoolInfo } from './clmm/utils/constants.js';
|