@raydium-io/raydium-sdk-v2 0.0.37-alpha → 0.0.38-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 +5 -1
- package/lib/api/api.js +1 -1
- package/lib/api/api.js.map +1 -1
- package/lib/api/api.mjs +1 -1
- package/lib/api/api.mjs.map +1 -1
- package/lib/api/index.d.ts +1 -1
- package/lib/api/index.js +1 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/index.mjs +1 -1
- package/lib/api/index.mjs.map +1 -1
- package/lib/api/type.d.ts +1 -1
- package/lib/api/type.js +1 -1
- package/lib/api/type.js.map +1 -1
- package/lib/api/type.mjs +1 -1
- package/lib/api/type.mjs.map +1 -1
- package/lib/common/accountInfo.d.ts +1 -1
- package/lib/common/bignumber.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/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/index.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/liquidity/index.d.ts +1 -1
- package/lib/raydium/liquidity/instruction.d.ts +1 -1
- package/lib/raydium/liquidity/layout.d.ts +4 -4
- 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/serum/layout.d.ts +2 -2
- 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-3aa078dd.d.ts → raydium-34e76972.d.ts} +2 -2
- package/lib/{type-541fc296.d.ts → type-15746482.d.ts} +5 -2
- package/lib/{type-930256a9.d.ts → type-6d046773.d.ts} +1 -1
- package/package.json +1 -1
- package/src/api/api.ts +35 -0
- package/src/api/type.ts +12 -9
|
@@ -9,7 +9,7 @@ import '../serum/type.js';
|
|
|
9
9
|
import '@solana/web3.js';
|
|
10
10
|
import '../../marshmallow/index.js';
|
|
11
11
|
import '../../marshmallow/buffer-layout.js';
|
|
12
|
-
import '../../type-
|
|
12
|
+
import '../../type-15746482.js';
|
|
13
13
|
import '@solana/spl-token';
|
|
14
14
|
import '../../solana/type.js';
|
|
15
15
|
import '../../common/txTool/txType.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransactionInstruction, PublicKey } from '@solana/web3.js';
|
|
2
|
-
import { bH as InstructionReturn, s as AmmV4Keys, t as AmmV5Keys } from '../../type-
|
|
2
|
+
import { bH as InstructionReturn, s as AmmV4Keys, t as AmmV5Keys } from '../../type-15746482.js';
|
|
3
3
|
import { LiquidityAddInstructionParams, RemoveLiquidityInstruction, SwapFixedInInstructionParamsV4, SwapFixedOutInstructionParamsV4, SwapInstructionParams, InitPoolInstructionParamsV4 } from './type.js';
|
|
4
4
|
import BN__default from 'bn.js';
|
|
5
5
|
import '@solana/spl-token';
|
|
@@ -30,6 +30,8 @@ declare const liquidityStateV4Layout: Structure<_solana_web3_js.PublicKey | BN |
|
|
|
30
30
|
padding: BN[];
|
|
31
31
|
owner: _solana_web3_js.PublicKey;
|
|
32
32
|
status: BN;
|
|
33
|
+
baseMint: _solana_web3_js.PublicKey;
|
|
34
|
+
quoteMint: _solana_web3_js.PublicKey;
|
|
33
35
|
maxOrder: BN;
|
|
34
36
|
depth: BN;
|
|
35
37
|
baseDecimal: BN;
|
|
@@ -67,8 +69,6 @@ declare const liquidityStateV4Layout: Structure<_solana_web3_js.PublicKey | BN |
|
|
|
67
69
|
swapQuote2BaseFee: BN;
|
|
68
70
|
baseVault: _solana_web3_js.PublicKey;
|
|
69
71
|
quoteVault: _solana_web3_js.PublicKey;
|
|
70
|
-
baseMint: _solana_web3_js.PublicKey;
|
|
71
|
-
quoteMint: _solana_web3_js.PublicKey;
|
|
72
72
|
openOrders: _solana_web3_js.PublicKey;
|
|
73
73
|
marketId: _solana_web3_js.PublicKey;
|
|
74
74
|
marketProgramId: _solana_web3_js.PublicKey;
|
|
@@ -85,6 +85,8 @@ declare const liquidityStateV5Layout: Structure<_solana_web3_js.PublicKey | BN |
|
|
|
85
85
|
padding: BN[];
|
|
86
86
|
owner: _solana_web3_js.PublicKey;
|
|
87
87
|
status: BN;
|
|
88
|
+
baseMint: _solana_web3_js.PublicKey;
|
|
89
|
+
quoteMint: _solana_web3_js.PublicKey;
|
|
88
90
|
maxOrder: BN;
|
|
89
91
|
depth: BN;
|
|
90
92
|
baseDecimal: BN;
|
|
@@ -121,8 +123,6 @@ declare const liquidityStateV5Layout: Structure<_solana_web3_js.PublicKey | BN |
|
|
|
121
123
|
swapQuote2BaseFee: BN;
|
|
122
124
|
baseVault: _solana_web3_js.PublicKey;
|
|
123
125
|
quoteVault: _solana_web3_js.PublicKey;
|
|
124
|
-
baseMint: _solana_web3_js.PublicKey;
|
|
125
|
-
quoteMint: _solana_web3_js.PublicKey;
|
|
126
126
|
openOrders: _solana_web3_js.PublicKey;
|
|
127
127
|
marketId: _solana_web3_js.PublicKey;
|
|
128
128
|
marketProgramId: _solana_web3_js.PublicKey;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
import '../../type-
|
|
2
|
+
import '../../type-15746482.js';
|
|
3
3
|
import 'bn.js';
|
|
4
4
|
import 'decimal.js';
|
|
5
5
|
import '../../common/txTool/txType.js';
|
|
6
|
-
export { L as default } from '../../raydium-
|
|
6
|
+
export { L as default } from '../../raydium-34e76972.js';
|
|
7
7
|
import './type.js';
|
|
8
8
|
import '@solana/spl-token';
|
|
9
9
|
import '../../solana/type.js';
|
|
@@ -20,7 +20,7 @@ import 'axios';
|
|
|
20
20
|
import '../../api/url.js';
|
|
21
21
|
import '../account/types.js';
|
|
22
22
|
import '../account/layout.js';
|
|
23
|
-
import '../../type-
|
|
23
|
+
import '../../type-6d046773.js';
|
|
24
24
|
import '../clmm/layout.js';
|
|
25
25
|
import '../cpmm/type.js';
|
|
26
26
|
import '../cpmm/curve/calculator.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
|
2
|
-
import { l as ApiV3PoolInfoStandardItem, c1 as TokenAmount, bI as ComputeBudgetConfig, s as AmmV4Keys, t as AmmV5Keys, a9 as BigNumberish } from '../../type-
|
|
2
|
+
import { l as ApiV3PoolInfoStandardItem, c1 as TokenAmount, bI as ComputeBudgetConfig, s as AmmV4Keys, t as AmmV5Keys, a9 as BigNumberish } from '../../type-15746482.js';
|
|
3
3
|
import { TxVersion } from '../../common/txTool/txType.js';
|
|
4
4
|
import BN__default from 'bn.js';
|
|
5
5
|
import '@solana/spl-token';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicKey, Connection } from '@solana/web3.js';
|
|
2
|
-
import { s as AmmV4Keys, t as AmmV5Keys } from '../../type-
|
|
2
|
+
import { s as AmmV4Keys, t as AmmV5Keys } from '../../type-15746482.js';
|
|
3
3
|
import { LiquidityPoolKeys } from './type.js';
|
|
4
4
|
import BN__default from 'bn.js';
|
|
5
5
|
import '@solana/spl-token';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
export { e as default } from '../../raydium-
|
|
2
|
+
export { e as default } from '../../raydium-34e76972.js';
|
|
3
3
|
import '../../common/txTool/txType.js';
|
|
4
|
-
import '../../type-
|
|
4
|
+
import '../../type-15746482.js';
|
|
5
5
|
import '../../api/api.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../../solana/type.js';
|
|
@@ -20,7 +20,7 @@ import '../../module/currency.js';
|
|
|
20
20
|
import '../account/types.js';
|
|
21
21
|
import '../account/layout.js';
|
|
22
22
|
import '../liquidity/type.js';
|
|
23
|
-
import '../../type-
|
|
23
|
+
import '../../type-6d046773.js';
|
|
24
24
|
import '../clmm/layout.js';
|
|
25
25
|
import '../cpmm/type.js';
|
|
26
26
|
import '../cpmm/curve/calculator.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { e as default } from '../../raydium-
|
|
1
|
+
export { e as default } from '../../raydium-34e76972.js';
|
|
2
2
|
export { initializeMarket, makeCreateMarketInstruction } from './instrument.js';
|
|
3
3
|
export { MARKET_STATE_LAYOUT_V2 } from './layout.js';
|
|
4
4
|
import '@solana/web3.js';
|
|
5
5
|
import '../../api/api.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../../solana/type.js';
|
|
8
|
-
import '../../type-
|
|
8
|
+
import '../../type-15746482.js';
|
|
9
9
|
import 'bn.js';
|
|
10
10
|
import '@solana/spl-token';
|
|
11
11
|
import '../../common/txTool/txType.js';
|
|
@@ -22,7 +22,7 @@ import '../../api/url.js';
|
|
|
22
22
|
import '../account/types.js';
|
|
23
23
|
import '../account/layout.js';
|
|
24
24
|
import '../liquidity/type.js';
|
|
25
|
-
import '../../type-
|
|
25
|
+
import '../../type-6d046773.js';
|
|
26
26
|
import '../clmm/layout.js';
|
|
27
27
|
import '../cpmm/type.js';
|
|
28
28
|
import '../cpmm/curve/calculator.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import '../common/logger.js';
|
|
3
|
-
import '../type-
|
|
4
|
-
export { g as ModuleBaseProps, f as default } from '../raydium-
|
|
3
|
+
import '../type-15746482.js';
|
|
4
|
+
export { g as ModuleBaseProps, f as default } from '../raydium-34e76972.js';
|
|
5
5
|
import 'bn.js';
|
|
6
6
|
import '@solana/spl-token';
|
|
7
7
|
import '../solana/type.js';
|
|
@@ -20,7 +20,7 @@ import '../api/url.js';
|
|
|
20
20
|
import './account/types.js';
|
|
21
21
|
import './account/layout.js';
|
|
22
22
|
import './liquidity/type.js';
|
|
23
|
-
import '../type-
|
|
23
|
+
import '../type-6d046773.js';
|
|
24
24
|
import './clmm/layout.js';
|
|
25
25
|
import './cpmm/type.js';
|
|
26
26
|
import './cpmm/curve/calculator.js';
|
package/lib/raydium/raydium.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import '../api/api.js';
|
|
3
|
-
import '../type-
|
|
3
|
+
import '../type-15746482.js';
|
|
4
4
|
import '../api/url.js';
|
|
5
5
|
import '../common/owner.js';
|
|
6
6
|
import '../solana/type.js';
|
|
7
|
-
export { c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams } from '../raydium-
|
|
7
|
+
export { c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams } from '../raydium-34e76972.js';
|
|
8
8
|
import 'axios';
|
|
9
9
|
import 'bn.js';
|
|
10
10
|
import '@solana/spl-token';
|
|
@@ -20,7 +20,7 @@ import '../module/currency.js';
|
|
|
20
20
|
import './account/types.js';
|
|
21
21
|
import './account/layout.js';
|
|
22
22
|
import './liquidity/type.js';
|
|
23
|
-
import '../type-
|
|
23
|
+
import '../type-6d046773.js';
|
|
24
24
|
import './clmm/layout.js';
|
|
25
25
|
import './cpmm/type.js';
|
|
26
26
|
import './cpmm/curve/calculator.js';
|