Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6b47d3d
fix: use ccip-sdk instead of ccip-js
liu-zhipeng Jan 8, 2026
30d4064
Merge pull request #476 from everclearorg/main
liu-zhipeng Jan 8, 2026
aa49610
fix: pendle api
liu-zhipeng Jan 8, 2026
c52c440
feat: move ccip-sdk to ccip adapter
liu-zhipeng Jan 9, 2026
9e90a08
feat: ccip leg2 works
liu-zhipeng Jan 9, 2026
14c9304
fix: int
liu-zhipeng Jan 9, 2026
d920977
fix: ccip unit tests
liu-zhipeng Jan 9, 2026
7597bec
fix: ccip unit tests
liu-zhipeng Jan 9, 2026
ff94c43
test: ccip coverage
liu-zhipeng Jan 9, 2026
9297560
test: add ccip unit
liu-zhipeng Jan 9, 2026
acecebc
fix: to solana message status
liu-zhipeng Jan 9, 2026
487f767
fix: ccip unit tests coverage
liu-zhipeng Jan 9, 2026
ec7f9c3
Merge pull request #478 from everclearorg/refactor-ccip
liu-zhipeng Jan 9, 2026
c3fdbfd
fix: handle circular references when calling json stringify
jintukumardas Jan 12, 2026
1344b24
Merge pull request #479 from everclearorg/fix/circular-log-ref
liu-zhipeng Jan 12, 2026
0cd38be
fix: max retries to 2 for evm
liu-zhipeng Jan 12, 2026
b5ca9f0
Merge pull request #480 from everclearorg/fix-evm-retries
liu-zhipeng Jan 12, 2026
ccc5cc7
feat: use ccip api to check status
liu-zhipeng Jan 12, 2026
bd09cee
test: fix ccip unit
liu-zhipeng Jan 12, 2026
39b7b15
fix: lint
liu-zhipeng Jan 12, 2026
8a3bf13
Merge pull request #481 from everclearorg/use-ccip-api
liu-zhipeng Jan 12, 2026
02b4947
fix: pendle pricing and move configs
jintukumardas Jan 14, 2026
e26db21
fix: update env and variable namings
jintukumardas Jan 14, 2026
0170fc1
fix: rebalance operation status doesn't have FAILED
liu-zhipeng Jan 14, 2026
a6cb52e
Merge pull request #483 from everclearorg/refactor/solana-rebalance
liu-zhipeng Jan 14, 2026
95112a5
fix: check if solana rebalance enabled
liu-zhipeng Jan 14, 2026
8d36331
Merge pull request #484 from everclearorg/fix-solana-rebalance-enabled
liu-zhipeng Jan 14, 2026
70d6a0f
fix: filter operations by bridge type
liu-zhipeng Jan 14, 2026
e3fa625
fix: ccip unit
liu-zhipeng Jan 14, 2026
cb0c5da
Merge pull request #485 from everclearorg/filter-operations-bridge
liu-zhipeng Jan 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/adapters/database/src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ export async function getRebalanceOperations(
offset?: number,
filter?: {
status?: RebalanceOperationStatus | RebalanceOperationStatus[];
bridge?: string | string[];
chainId?: number;
earmarkId?: string | null;
invoiceId?: string;
Expand All @@ -737,6 +738,17 @@ export async function getRebalanceOperations(
paramCount++;
}

if (filter.bridge) {
if (Array.isArray(filter.bridge)) {
conditions.push(`ro.bridge = ANY($${paramCount})`);
values.push(filter.bridge);
} else {
conditions.push(`ro.bridge = $${paramCount}`);
values.push(filter.bridge);
}
paramCount++;
}

if (filter.chainId !== undefined) {
conditions.push(`ro."origin_chain_id" = $${paramCount}`);
values.push(filter.chainId);
Expand Down
3 changes: 2 additions & 1 deletion packages/adapters/rebalance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
"test:unit": "jest --coverage --testPathIgnorePatterns='.*\\.integration\\.spec\\.ts$'"
},
"dependencies": {
"@chainlink/ccip-js": "^0.2.6",
"@chainlink/ccip-sdk": "^0.93.0",
"@cowprotocol/cow-sdk": "^7.1.2-beta.0",
"@defuse-protocol/one-click-sdk-typescript": "^0.1.5",
"@mark/core": "workspace:*",
"@mark/database": "workspace:*",
"@mark/logger": "workspace:*",
"@solana/web3.js": "^1.98.0",
"@tonappchain/sdk": "0.7.1",
"axios": "1.9.0",
"bs58": "^6.0.0",
Expand Down
Loading
Loading