@drift-labs/sdk-browser 2.111.0-beta.4 → 2.111.0-beta.6
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/VERSION +1 -1
- package/lib/browser/constants/perpMarkets.js +6 -6
- package/lib/browser/constants/spotMarkets.js +8 -8
- package/lib/browser/tx/txHandler.js +4 -4
- package/lib/node/constants/perpMarkets.js +6 -6
- package/lib/node/constants/spotMarkets.js +8 -8
- package/lib/node/tx/txHandler.js +4 -4
- package/package.json +1 -1
- package/src/constants/perpMarkets.ts +6 -6
- package/src/constants/spotMarkets.ts +8 -8
- package/src/tx/txHandler.ts +6 -5
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.111.0-beta.
|
|
1
|
+
2.111.0-beta.6
|
|
@@ -350,9 +350,9 @@ exports.MainnetPerpMarkets = [
|
|
|
350
350
|
symbol: 'SOL-PERP',
|
|
351
351
|
baseAssetSymbol: 'SOL',
|
|
352
352
|
marketIndex: 0,
|
|
353
|
-
oracle: new web3_js_1.PublicKey('
|
|
353
|
+
oracle: new web3_js_1.PublicKey('3m6i4RFWEDw2Ft4tFHPJtYgmpPe21k56M3FHeWYrgGBz'),
|
|
354
354
|
launchTs: 1667560505000,
|
|
355
|
-
oracleSource: __1.OracleSource.
|
|
355
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
356
356
|
pythFeedId: '0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d',
|
|
357
357
|
pythLazerId: 6,
|
|
358
358
|
},
|
|
@@ -362,9 +362,9 @@ exports.MainnetPerpMarkets = [
|
|
|
362
362
|
symbol: 'BTC-PERP',
|
|
363
363
|
baseAssetSymbol: 'BTC',
|
|
364
364
|
marketIndex: 1,
|
|
365
|
-
oracle: new web3_js_1.PublicKey('
|
|
365
|
+
oracle: new web3_js_1.PublicKey('35MbvS1Juz2wf7GsyHrkCw8yfKciRLxVpEhfZDZFrB4R'),
|
|
366
366
|
launchTs: 1670347281000,
|
|
367
|
-
oracleSource: __1.OracleSource.
|
|
367
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
368
368
|
pythFeedId: '0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43',
|
|
369
369
|
pythLazerId: 1,
|
|
370
370
|
},
|
|
@@ -398,9 +398,9 @@ exports.MainnetPerpMarkets = [
|
|
|
398
398
|
symbol: '1MBONK-PERP',
|
|
399
399
|
baseAssetSymbol: '1MBONK',
|
|
400
400
|
marketIndex: 4,
|
|
401
|
-
oracle: new web3_js_1.PublicKey('
|
|
401
|
+
oracle: new web3_js_1.PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
402
402
|
launchTs: 1677690149000,
|
|
403
|
-
oracleSource: __1.OracleSource.
|
|
403
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_1M,
|
|
404
404
|
pythFeedId: '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
|
|
405
405
|
pythLazerId: 9,
|
|
406
406
|
},
|
|
@@ -109,8 +109,8 @@ exports.MainnetSpotMarkets = [
|
|
|
109
109
|
symbol: 'SOL',
|
|
110
110
|
marketIndex: 1,
|
|
111
111
|
poolId: 0,
|
|
112
|
-
oracle: new web3_js_1.PublicKey('
|
|
113
|
-
oracleSource: __1.OracleSource.
|
|
112
|
+
oracle: new web3_js_1.PublicKey('3m6i4RFWEDw2Ft4tFHPJtYgmpPe21k56M3FHeWYrgGBz'),
|
|
113
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
114
114
|
mint: new web3_js_1.PublicKey(exports.WRAPPED_SOL_MINT),
|
|
115
115
|
precision: numericConstants_1.LAMPORTS_PRECISION,
|
|
116
116
|
precisionExp: numericConstants_1.LAMPORTS_EXP,
|
|
@@ -443,13 +443,13 @@ exports.MainnetSpotMarkets = [
|
|
|
443
443
|
symbol: 'cbBTC',
|
|
444
444
|
marketIndex: 27,
|
|
445
445
|
poolId: 0,
|
|
446
|
-
oracle: new web3_js_1.PublicKey('
|
|
446
|
+
oracle: new web3_js_1.PublicKey('9jPy6EHpLkXaMdvfkoVnRnSdJoQysQDKKj3bW5Amz4Ci'),
|
|
447
447
|
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
448
448
|
mint: new web3_js_1.PublicKey('cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij'),
|
|
449
449
|
precision: new __1.BN(10).pow(numericConstants_1.EIGHT),
|
|
450
450
|
precisionExp: numericConstants_1.EIGHT,
|
|
451
451
|
openbookMarket: new web3_js_1.PublicKey('2HXgKaXKsMUEzQaSBZiXSd54eMHaS3roiefyGWtkW97W'),
|
|
452
|
-
pythFeedId: '
|
|
452
|
+
pythFeedId: '0x2817d7bfe5c64b8ea956e9a26f573ef64e72e4d7891f2d6af9bcc93f7aff9a97',
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
symbol: 'USDS',
|
|
@@ -500,8 +500,8 @@ exports.MainnetSpotMarkets = [
|
|
|
500
500
|
symbol: 'BONK',
|
|
501
501
|
marketIndex: 32,
|
|
502
502
|
poolId: 0,
|
|
503
|
-
oracle: new web3_js_1.PublicKey('
|
|
504
|
-
oracleSource: __1.OracleSource.
|
|
503
|
+
oracle: new web3_js_1.PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
504
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
505
505
|
mint: new web3_js_1.PublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'),
|
|
506
506
|
precision: new __1.BN(10).pow(numericConstants_1.FIVE),
|
|
507
507
|
precisionExp: numericConstants_1.FIVE,
|
|
@@ -526,8 +526,8 @@ exports.MainnetSpotMarkets = [
|
|
|
526
526
|
symbol: 'USDC-1',
|
|
527
527
|
marketIndex: 34,
|
|
528
528
|
poolId: 1,
|
|
529
|
-
oracle: new web3_js_1.PublicKey('
|
|
530
|
-
oracleSource: __1.OracleSource.
|
|
529
|
+
oracle: new web3_js_1.PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
530
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
531
531
|
mint: new web3_js_1.PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
532
532
|
precision: new __1.BN(10).pow(numericConstants_1.SIX),
|
|
533
533
|
precisionExp: numericConstants_1.SIX,
|
|
@@ -279,6 +279,10 @@ class TxHandler {
|
|
|
279
279
|
var _a;
|
|
280
280
|
const { txVersion, txParams, connection: _connection, preFlightCommitment: _preFlightCommitment, fetchAllMarketLookupTableAccounts, forceVersionedTransaction, instructions, } = props;
|
|
281
281
|
let { lookupTables } = props;
|
|
282
|
+
const marketLookupTables = await fetchAllMarketLookupTableAccounts();
|
|
283
|
+
lookupTables = lookupTables
|
|
284
|
+
? [...lookupTables, ...marketLookupTables]
|
|
285
|
+
: marketLookupTables;
|
|
282
286
|
// # Collect and process Tx Params
|
|
283
287
|
let baseTxParams = {
|
|
284
288
|
computeUnits: txParams === null || txParams === void 0 ? void 0 : txParams.computeUnits,
|
|
@@ -337,10 +341,6 @@ class TxHandler {
|
|
|
337
341
|
}
|
|
338
342
|
}
|
|
339
343
|
else {
|
|
340
|
-
const marketLookupTables = await fetchAllMarketLookupTableAccounts();
|
|
341
|
-
lookupTables = lookupTables
|
|
342
|
-
? [...lookupTables, ...marketLookupTables]
|
|
343
|
-
: marketLookupTables;
|
|
344
344
|
return this.generateVersionedTransaction(recentBlockhash, allIx, lookupTables);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -350,9 +350,9 @@ exports.MainnetPerpMarkets = [
|
|
|
350
350
|
symbol: 'SOL-PERP',
|
|
351
351
|
baseAssetSymbol: 'SOL',
|
|
352
352
|
marketIndex: 0,
|
|
353
|
-
oracle: new web3_js_1.PublicKey('
|
|
353
|
+
oracle: new web3_js_1.PublicKey('3m6i4RFWEDw2Ft4tFHPJtYgmpPe21k56M3FHeWYrgGBz'),
|
|
354
354
|
launchTs: 1667560505000,
|
|
355
|
-
oracleSource: __1.OracleSource.
|
|
355
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
356
356
|
pythFeedId: '0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d',
|
|
357
357
|
pythLazerId: 6,
|
|
358
358
|
},
|
|
@@ -362,9 +362,9 @@ exports.MainnetPerpMarkets = [
|
|
|
362
362
|
symbol: 'BTC-PERP',
|
|
363
363
|
baseAssetSymbol: 'BTC',
|
|
364
364
|
marketIndex: 1,
|
|
365
|
-
oracle: new web3_js_1.PublicKey('
|
|
365
|
+
oracle: new web3_js_1.PublicKey('35MbvS1Juz2wf7GsyHrkCw8yfKciRLxVpEhfZDZFrB4R'),
|
|
366
366
|
launchTs: 1670347281000,
|
|
367
|
-
oracleSource: __1.OracleSource.
|
|
367
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
368
368
|
pythFeedId: '0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43',
|
|
369
369
|
pythLazerId: 1,
|
|
370
370
|
},
|
|
@@ -398,9 +398,9 @@ exports.MainnetPerpMarkets = [
|
|
|
398
398
|
symbol: '1MBONK-PERP',
|
|
399
399
|
baseAssetSymbol: '1MBONK',
|
|
400
400
|
marketIndex: 4,
|
|
401
|
-
oracle: new web3_js_1.PublicKey('
|
|
401
|
+
oracle: new web3_js_1.PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
402
402
|
launchTs: 1677690149000,
|
|
403
|
-
oracleSource: __1.OracleSource.
|
|
403
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_1M,
|
|
404
404
|
pythFeedId: '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
|
|
405
405
|
pythLazerId: 9,
|
|
406
406
|
},
|
|
@@ -109,8 +109,8 @@ exports.MainnetSpotMarkets = [
|
|
|
109
109
|
symbol: 'SOL',
|
|
110
110
|
marketIndex: 1,
|
|
111
111
|
poolId: 0,
|
|
112
|
-
oracle: new web3_js_1.PublicKey('
|
|
113
|
-
oracleSource: __1.OracleSource.
|
|
112
|
+
oracle: new web3_js_1.PublicKey('3m6i4RFWEDw2Ft4tFHPJtYgmpPe21k56M3FHeWYrgGBz'),
|
|
113
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
114
114
|
mint: new web3_js_1.PublicKey(exports.WRAPPED_SOL_MINT),
|
|
115
115
|
precision: numericConstants_1.LAMPORTS_PRECISION,
|
|
116
116
|
precisionExp: numericConstants_1.LAMPORTS_EXP,
|
|
@@ -443,13 +443,13 @@ exports.MainnetSpotMarkets = [
|
|
|
443
443
|
symbol: 'cbBTC',
|
|
444
444
|
marketIndex: 27,
|
|
445
445
|
poolId: 0,
|
|
446
|
-
oracle: new web3_js_1.PublicKey('
|
|
446
|
+
oracle: new web3_js_1.PublicKey('9jPy6EHpLkXaMdvfkoVnRnSdJoQysQDKKj3bW5Amz4Ci'),
|
|
447
447
|
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
448
448
|
mint: new web3_js_1.PublicKey('cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij'),
|
|
449
449
|
precision: new __1.BN(10).pow(numericConstants_1.EIGHT),
|
|
450
450
|
precisionExp: numericConstants_1.EIGHT,
|
|
451
451
|
openbookMarket: new web3_js_1.PublicKey('2HXgKaXKsMUEzQaSBZiXSd54eMHaS3roiefyGWtkW97W'),
|
|
452
|
-
pythFeedId: '
|
|
452
|
+
pythFeedId: '0x2817d7bfe5c64b8ea956e9a26f573ef64e72e4d7891f2d6af9bcc93f7aff9a97',
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
symbol: 'USDS',
|
|
@@ -500,8 +500,8 @@ exports.MainnetSpotMarkets = [
|
|
|
500
500
|
symbol: 'BONK',
|
|
501
501
|
marketIndex: 32,
|
|
502
502
|
poolId: 0,
|
|
503
|
-
oracle: new web3_js_1.PublicKey('
|
|
504
|
-
oracleSource: __1.OracleSource.
|
|
503
|
+
oracle: new web3_js_1.PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
504
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
505
505
|
mint: new web3_js_1.PublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'),
|
|
506
506
|
precision: new __1.BN(10).pow(numericConstants_1.FIVE),
|
|
507
507
|
precisionExp: numericConstants_1.FIVE,
|
|
@@ -526,8 +526,8 @@ exports.MainnetSpotMarkets = [
|
|
|
526
526
|
symbol: 'USDC-1',
|
|
527
527
|
marketIndex: 34,
|
|
528
528
|
poolId: 1,
|
|
529
|
-
oracle: new web3_js_1.PublicKey('
|
|
530
|
-
oracleSource: __1.OracleSource.
|
|
529
|
+
oracle: new web3_js_1.PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
530
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
531
531
|
mint: new web3_js_1.PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
532
532
|
precision: new __1.BN(10).pow(numericConstants_1.SIX),
|
|
533
533
|
precisionExp: numericConstants_1.SIX,
|
package/lib/node/tx/txHandler.js
CHANGED
|
@@ -279,6 +279,10 @@ class TxHandler {
|
|
|
279
279
|
var _a;
|
|
280
280
|
const { txVersion, txParams, connection: _connection, preFlightCommitment: _preFlightCommitment, fetchAllMarketLookupTableAccounts, forceVersionedTransaction, instructions, } = props;
|
|
281
281
|
let { lookupTables } = props;
|
|
282
|
+
const marketLookupTables = await fetchAllMarketLookupTableAccounts();
|
|
283
|
+
lookupTables = lookupTables
|
|
284
|
+
? [...lookupTables, ...marketLookupTables]
|
|
285
|
+
: marketLookupTables;
|
|
282
286
|
// # Collect and process Tx Params
|
|
283
287
|
let baseTxParams = {
|
|
284
288
|
computeUnits: txParams === null || txParams === void 0 ? void 0 : txParams.computeUnits,
|
|
@@ -337,10 +341,6 @@ class TxHandler {
|
|
|
337
341
|
}
|
|
338
342
|
}
|
|
339
343
|
else {
|
|
340
|
-
const marketLookupTables = await fetchAllMarketLookupTableAccounts();
|
|
341
|
-
lookupTables = lookupTables
|
|
342
|
-
? [...lookupTables, ...marketLookupTables]
|
|
343
|
-
: marketLookupTables;
|
|
344
344
|
return this.generateVersionedTransaction(recentBlockhash, allIx, lookupTables);
|
|
345
345
|
}
|
|
346
346
|
}
|
package/package.json
CHANGED
|
@@ -389,9 +389,9 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
389
389
|
symbol: 'SOL-PERP',
|
|
390
390
|
baseAssetSymbol: 'SOL',
|
|
391
391
|
marketIndex: 0,
|
|
392
|
-
oracle: new PublicKey('
|
|
392
|
+
oracle: new PublicKey('3m6i4RFWEDw2Ft4tFHPJtYgmpPe21k56M3FHeWYrgGBz'),
|
|
393
393
|
launchTs: 1667560505000,
|
|
394
|
-
oracleSource: OracleSource.
|
|
394
|
+
oracleSource: OracleSource.PYTH_LAZER,
|
|
395
395
|
pythFeedId:
|
|
396
396
|
'0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d',
|
|
397
397
|
pythLazerId: 6,
|
|
@@ -402,9 +402,9 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
402
402
|
symbol: 'BTC-PERP',
|
|
403
403
|
baseAssetSymbol: 'BTC',
|
|
404
404
|
marketIndex: 1,
|
|
405
|
-
oracle: new PublicKey('
|
|
405
|
+
oracle: new PublicKey('35MbvS1Juz2wf7GsyHrkCw8yfKciRLxVpEhfZDZFrB4R'),
|
|
406
406
|
launchTs: 1670347281000,
|
|
407
|
-
oracleSource: OracleSource.
|
|
407
|
+
oracleSource: OracleSource.PYTH_LAZER,
|
|
408
408
|
pythFeedId:
|
|
409
409
|
'0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43',
|
|
410
410
|
pythLazerId: 1,
|
|
@@ -441,9 +441,9 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
441
441
|
symbol: '1MBONK-PERP',
|
|
442
442
|
baseAssetSymbol: '1MBONK',
|
|
443
443
|
marketIndex: 4,
|
|
444
|
-
oracle: new PublicKey('
|
|
444
|
+
oracle: new PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
445
445
|
launchTs: 1677690149000,
|
|
446
|
-
oracleSource: OracleSource.
|
|
446
|
+
oracleSource: OracleSource.PYTH_LAZER_1M,
|
|
447
447
|
pythFeedId:
|
|
448
448
|
'0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
|
|
449
449
|
pythLazerId: 9,
|
|
@@ -147,8 +147,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
147
147
|
symbol: 'SOL',
|
|
148
148
|
marketIndex: 1,
|
|
149
149
|
poolId: 0,
|
|
150
|
-
oracle: new PublicKey('
|
|
151
|
-
oracleSource: OracleSource.
|
|
150
|
+
oracle: new PublicKey('3m6i4RFWEDw2Ft4tFHPJtYgmpPe21k56M3FHeWYrgGBz'),
|
|
151
|
+
oracleSource: OracleSource.PYTH_LAZER,
|
|
152
152
|
mint: new PublicKey(WRAPPED_SOL_MINT),
|
|
153
153
|
precision: LAMPORTS_PRECISION,
|
|
154
154
|
precisionExp: LAMPORTS_EXP,
|
|
@@ -534,7 +534,7 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
534
534
|
symbol: 'cbBTC',
|
|
535
535
|
marketIndex: 27,
|
|
536
536
|
poolId: 0,
|
|
537
|
-
oracle: new PublicKey('
|
|
537
|
+
oracle: new PublicKey('9jPy6EHpLkXaMdvfkoVnRnSdJoQysQDKKj3bW5Amz4Ci'),
|
|
538
538
|
oracleSource: OracleSource.PYTH_PULL,
|
|
539
539
|
mint: new PublicKey('cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij'),
|
|
540
540
|
precision: new BN(10).pow(EIGHT),
|
|
@@ -543,7 +543,7 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
543
543
|
'2HXgKaXKsMUEzQaSBZiXSd54eMHaS3roiefyGWtkW97W'
|
|
544
544
|
),
|
|
545
545
|
pythFeedId:
|
|
546
|
-
'
|
|
546
|
+
'0x2817d7bfe5c64b8ea956e9a26f573ef64e72e4d7891f2d6af9bcc93f7aff9a97',
|
|
547
547
|
},
|
|
548
548
|
{
|
|
549
549
|
symbol: 'USDS',
|
|
@@ -597,8 +597,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
597
597
|
symbol: 'BONK',
|
|
598
598
|
marketIndex: 32,
|
|
599
599
|
poolId: 0,
|
|
600
|
-
oracle: new PublicKey('
|
|
601
|
-
oracleSource: OracleSource.
|
|
600
|
+
oracle: new PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
601
|
+
oracleSource: OracleSource.PYTH_LAZER,
|
|
602
602
|
mint: new PublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'),
|
|
603
603
|
precision: new BN(10).pow(FIVE),
|
|
604
604
|
precisionExp: FIVE,
|
|
@@ -627,8 +627,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
627
627
|
symbol: 'USDC-1',
|
|
628
628
|
marketIndex: 34,
|
|
629
629
|
poolId: 1,
|
|
630
|
-
oracle: new PublicKey('
|
|
631
|
-
oracleSource: OracleSource.
|
|
630
|
+
oracle: new PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
631
|
+
oracleSource: OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
632
632
|
mint: new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
633
633
|
precision: new BN(10).pow(SIX),
|
|
634
634
|
precisionExp: SIX,
|
package/src/tx/txHandler.ts
CHANGED
|
@@ -482,6 +482,12 @@ export class TxHandler {
|
|
|
482
482
|
|
|
483
483
|
let { lookupTables } = props;
|
|
484
484
|
|
|
485
|
+
const marketLookupTables = await fetchAllMarketLookupTableAccounts();
|
|
486
|
+
|
|
487
|
+
lookupTables = lookupTables
|
|
488
|
+
? [...lookupTables, ...marketLookupTables]
|
|
489
|
+
: marketLookupTables;
|
|
490
|
+
|
|
485
491
|
// # Collect and process Tx Params
|
|
486
492
|
let baseTxParams: BaseTxParams = {
|
|
487
493
|
computeUnits: txParams?.computeUnits,
|
|
@@ -561,11 +567,6 @@ export class TxHandler {
|
|
|
561
567
|
return this.generateLegacyTransaction(allIx, recentBlockhash);
|
|
562
568
|
}
|
|
563
569
|
} else {
|
|
564
|
-
const marketLookupTables = await fetchAllMarketLookupTableAccounts();
|
|
565
|
-
lookupTables = lookupTables
|
|
566
|
-
? [...lookupTables, ...marketLookupTables]
|
|
567
|
-
: marketLookupTables;
|
|
568
|
-
|
|
569
570
|
return this.generateVersionedTransaction(
|
|
570
571
|
recentBlockhash,
|
|
571
572
|
allIx,
|