Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Dec 10, 2024
1 parent f524c36 commit baf4c2d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions tests/mocks/solana/orca.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ async function mockPool({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenA }},
{ memcmp: { offset: 181, bytes: tokenB }},
]},
Expand All @@ -80,7 +79,6 @@ async function mockPool({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenB }},
{ memcmp: { offset: 181, bytes: tokenA }},
]},
Expand Down Expand Up @@ -189,7 +187,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenA }},
{ memcmp: { offset: 181, bytes: stable }},
]},
Expand All @@ -205,7 +202,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: stable }},
{ memcmp: { offset: 181, bytes: tokenA }},
]},
Expand All @@ -221,7 +217,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenB }},
{ memcmp: { offset: 181, bytes: stable }},
]},
Expand All @@ -237,7 +232,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: stable }},
{ memcmp: { offset: 181, bytes: tokenB }},
]},
Expand All @@ -254,7 +248,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenA }},
{ memcmp: { offset: 181, bytes: tokenB }},
]},
Expand All @@ -270,7 +263,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenB }},
{ memcmp: { offset: 181, bytes: tokenA }},
]},
Expand Down Expand Up @@ -310,7 +302,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenA }},
{ memcmp: { offset: 181, bytes: tokenMiddle }},
]},
Expand All @@ -326,7 +317,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenMiddle }},
{ memcmp: { offset: 181, bytes: tokenA }},
]},
Expand All @@ -342,7 +332,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenA }},
{ memcmp: { offset: 181, bytes: Blockchains.solana.wrapped.address }},
]},
Expand All @@ -358,7 +347,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: Blockchains.solana.wrapped.address }},
{ memcmp: { offset: 181, bytes: tokenA }},
]},
Expand Down Expand Up @@ -473,7 +461,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenB }},
{ memcmp: { offset: 181, bytes: tokenMiddle }},
]},
Expand All @@ -489,7 +476,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenMiddle }},
{ memcmp: { offset: 181, bytes: tokenB }},
]},
Expand All @@ -505,7 +491,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenB }},
{ memcmp: { offset: 181, bytes: Blockchains.solana.wrapped.address }},
]},
Expand All @@ -521,7 +506,6 @@ async function mockPools({
to: exchange('solana').solana.router.address,
params: { filters: [
{ dataSize: exchange('solana').solana.router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: Blockchains.solana.wrapped.address }},
{ memcmp: { offset: 181, bytes: tokenB }},
]},
Expand Down
1 change: 0 additions & 1 deletion tests/units/exchanges/orca/route.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ describe('orca', () => {
to: exchange[blockchain].router.address,
params: { filters: [
{ dataSize: exchange[blockchain].router.api.span },
{ memcmp: { offset: 8, bytes: '2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ' }},
{ memcmp: { offset: 101, bytes: tokenOut }},
{ memcmp: { offset: 181, bytes: tokenIn }},
]},
Expand Down

0 comments on commit baf4c2d

Please sign in to comment.