@@ -1620,6 +1620,11 @@ const TICK_ARRAY_LAYOUT$1 = struct([
16201620 publicKey("whirlpool"),
16211621]);
16221622
1623+ var LAYOUTS$1 = {
1624+ TICK_ARRAY_LAYOUT: TICK_ARRAY_LAYOUT$1,
1625+ WHIRLPOOL_LAYOUT,
1626+ };
1627+
16231628const MAX_SWAP_TICK_ARRAYS = 3;
16241629const MAX_TICK_INDEX = 443636; // i32
16251630const MIN_TICK_INDEX = -443636; // i32
@@ -2589,6 +2594,7 @@ var orca = (scope)=>{
25892594 getPrep: (args)=>{},
25902595 getTransaction: (args)=>Orca.getTransaction({ ...args, exchange: exchange$i }),
25912596 getPrice,
2597+ LAYOUTS: LAYOUTS$1,
25922598 })
25932599 )
25942600};
@@ -2730,6 +2736,15 @@ const TICK_ARRAY_BITMAP_EXTENSION_LAYOUT = struct([
27302736 seq(seq(u64$1(), 8), EXTENSION_TICKARRAY_BITMAP_SIZE, "negativeTickArrayBitmap"),
27312737]);
27322738
2739+ var LAYOUTS = {
2740+ CPMM_LAYOUT,
2741+ CPMM_CONFIG_LAYOUT,
2742+ CLMM_LAYOUT,
2743+ CLMM_CONFIG_LAYOUT,
2744+ TICK_ARRAY_LAYOUT,
2745+ TICK_ARRAY_BITMAP_EXTENSION_LAYOUT,
2746+ };
2747+
27332748function BNDivCeil(bn1, bn2) {
27342749 const { div, mod } = bn1.divmod(bn2);
27352750
@@ -5285,6 +5300,7 @@ var raydium_cp = (scope)=>{
52855300 getPrep: (args)=>{},
52865301 getTransaction: (args)=>Raydium.getTransaction({ ...args, exchange: exchange$h }),
52875302 CurveCalculator,
5303+ LAYOUTS,
52885304 })
52895305 )
52905306};
@@ -5322,6 +5338,7 @@ var raydium_cl = (scope)=>{
53225338 getPrep: (args)=>{},
53235339 getTransaction: (args)=>Raydium.getTransaction({ ...args, exchange: exchange$g }),
53245340 SwapMath,
5341+ LAYOUTS,
53255342 })
53265343 )
53275344};
0 commit comments