Skip to content

improvements post release#235

Merged
aelmanaa merged 2 commits into
mainfrom
post-1.5.0-cleanup
Apr 24, 2026
Merged

improvements post release#235
aelmanaa merged 2 commits into
mainfrom
post-1.5.0-cleanup

Conversation

@aelmanaa
Copy link
Copy Markdown
Collaborator

No description provided.

@aelmanaa aelmanaa requested review from a team and PabloMansanet as code owners April 23, 2026 14:34
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ccip-tools-ts Ready Ready Preview, Comment Apr 23, 2026 3:14pm

Request Review

@aelmanaa aelmanaa force-pushed the post-1.5.0-cleanup branch from 4805c8c to a5073b5 Compare April 23, 2026 14:39
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
Comment thread ccip-sdk/src/chain.ts Outdated
Comment thread ccip-cli/src/index.ts
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

Coverage Report

ℹ tests 791
ℹ suites 230
ℹ pass 789
ℹ fail 0
ℹ cancelled 0
ℹ skipped 2
ℹ todo 0
ℹ duration_ms 106089.084593

> @chainlink/[email protected] test
> node --test

Verbose mode enabled
▶ getCtx
  ▶ output — always stdout
    ✔ output.write goes to stdout (1.967756ms)
    ✔ output.table goes to stdout (1.204523ms)
  ✔ output — always stdout (4.619525ms)
  ▶ logger — always stderr
    ✔ logger.info goes to stderr (0.578287ms)
    ✔ logger.warn goes to stderr (0.42379ms)
    ✔ logger.error goes to stderr (0.481377ms)
  ✔ logger — always stderr (1.724212ms)
  ▶ verbose mode
    ✔ logger.debug is a no-op when verbose is false (0.494291ms)
    ✔ logger.debug goes to stderr when verbose is true (1.578931ms)
  ✔ verbose mode (2.313088ms)
  ▶ destroy signal
    ✔ returns a working destroy function (13.240123ms)
    ✔ calling destroy twice does not throw (0.793458ms)
  ✔ destroy signal (14.251737ms)
✔ getCtx (23.863201ms)
▶ lane-latency command
  ✔ should output JSON format correctly (6.486343ms)
  ✔ should resolve chain IDs to chain selectors (3.174172ms)
  ✔ should use custom API URL when provided (1.591053ms)
  ✔ should output log format correctly (3.079547ms)
  ✔ should handle chain IDs as input (1.734271ms)
  ✔ should handle chain selectors as input (2.639526ms)
  ✔ should throw CCIPApiClientNotAvailableError when --no-api flag is set (1.177393ms)
  ✔ should work normally when --no-api flag is false (0.682582ms)
  ✔ should forward blockConfirmations to API URL (0.591521ms)
  ✔ should not include numOfBlocks when blockConfirmations is not provided (1.093857ms)
  ▶ CCIP_API environment variable integration
    ✔ should respect CCIP_API=false environment variable (18.888694ms)
  ✔ CCIP_API environment variable integration (19.630396ms)
✔ lane-latency command (44.044594ms)
▶ selectRequest non-interactive behavior
  ✔ returns the single request without prompting (1.585053ms)
  ✔ returns the request matching logIndex (0.278779ms)
  ✔ throws CCIPInteractiveRequiredError for multiple requests without logIndex (2.650808ms)
✔ selectRequest non-interactive behavior (6.526637ms)
▶ CCIPInteractiveRequiredError
  ✔ has correct code and is not transient (0.267738ms)
  ✔ uses default recovery when none provided (0.339292ms)
  ✔ preserves context fields (0.242903ms)
✔ CCIPInteractiveRequiredError (1.074501ms)
▶ preprocessArgv TTY auto-detection
  ✔ --interactive flag is defined in globalOpts (0.506644ms)
✔ preprocessArgv TTY auto-detection (0.636746ms)
▶ search messages command
  ✔ should throw CCIPApiClientNotAvailableError when --no-api flag is set (2.584665ms)
  ✔ should output JSON format correctly (15.370212ms)
  ✔ should pass sender filter to API (3.459958ms)
  ✔ should pass receiver filter to API (12.423484ms)
  ✔ should resolve source chain to selector (9.298413ms)
  ✔ should resolve dest chain to selector (5.499966ms)
  ✔ should pass manual-exec-only filter to API (3.111136ms)
  ✔ should treat limit 0 as unlimited (5.005805ms)
  ✔ should respect limit parameter (6.523713ms)
  ✔ should warn when no results found (1.146506ms)
  ✔ should use custom API URL when provided (2.313962ms)
  ✔ should warn on negative limit and fall back to default (2.361249ms)
  ✔ should output log format (2.850921ms)
✔ search messages command (73.917685ms)
▶ e2e command show EVM
  ▶ pretty format (default)
    ✔ should show complete CCIP transaction details EVM to EVM (10291.073274ms)
  ✔ pretty format (default) (10292.205874ms)
  ▶ json format
    ✔ should output a single valid JSON envelope with all expected fields (7942.187843ms)
  ✔ json format (7942.480398ms)
  ▶ log format
    ✔ should output in log format with object assignments (7829.135424ms)
  ✔ log format (7829.400227ms)
  ▶ verbose flag
    ✔ should work with verbose flag enabled (9092.490043ms)
  ✔ verbose flag (9092.74128ms)
  ▶ error handling
    ✔ should handle invalid transaction hash gracefully (6709.436438ms)
    ✔ should require transaction hash argument (1637.039318ms)
  ✔ error handling (8346.841638ms)
  ✔ should show complete CCIP transaction details EVM to Aptos (7935.809532ms)
  ✔ should show complete CCIP transaction details EVM to Solana (5718.914012ms)
✔ e2e command show EVM (57161.443187ms)
▶ e2e command show Solana
  ✔ should show complete CCIP transaction details Solana to EVM (8634.068233ms)
✔ e2e command show Solana (8634.397036ms)
▶ e2e command show Aptos
  ✔ should show complete CCIP transaction details Aptos to EVM (8689.139492ms)
✔ e2e command show Aptos (8689.314499ms)
﹣ e2e command show TON (0.056245ms) # SKIP
▶ formatCCIPError
  ✔ should return null for non-CCIPError instances (1.727227ms)
  ✔ should format CCIPError with code and message (0.656403ms)
  ✔ should include help section with recovery hint (0.231772ms)
  ✔ should include note section for transient errors (0.39151ms)
  ✔ should include retry timing for transient errors with retryAfterMs (0.407329ms)
  ✔ should not include note section for permanent errors (0.286534ms)
  ✔ should format error with structured output (0.264322ms)
  ✔ should include stack trace when verbose is true (0.452002ms)
  ✔ should not include stack trace when verbose is false (0.239726ms)
✔ formatCCIPError (7.678915ms)
ℹ tests 59
ℹ suites 21
ℹ pass 59
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 76826.869542
-------------------------------|---------|----------|---------|---------|---------------------------
File                           | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s         
-------------------------------|---------|----------|---------|---------|---------------------------
All files                      |   74.85 |    76.66 |   61.83 |   74.85 |                           
 ccip-cli/src                  |   89.47 |    61.53 |      75 |   89.47 |                           
  index.ts                     |   89.47 |    61.53 |      75 |   89.47 | ...47-151,157-158,163-168 
 ccip-cli/src/commands         |   51.08 |    72.45 |   52.72 |   51.08 |                           
  index.ts                     |     100 |      100 |     100 |     100 |                           
  lane-latency.ts              |   72.56 |     90.9 |   33.33 |   72.56 | 41-56,63-70,105-111       
  manual-exec.ts               |   25.36 |      100 |       0 |   25.36 | 62-116,123-133,135-274    
  parse.ts                     |   57.14 |      100 |       0 |   57.14 | 46-50,57-64,66-91         
  search.ts                    |   81.25 |      100 |       0 |   81.25 | 24-29                     
  send.ts                      |   15.06 |      100 |       0 |   15.06 | ...72-179,189-220,222-458 
  show.ts                      |   77.62 |    61.42 |   66.66 |   77.62 | ...49-257,261-274,305-306 
  supported-tokens.ts          |   17.66 |      100 |       0 |   17.66 | ...11-243,245-319,321-334 
  token.ts                     |   22.72 |      100 |       0 |   22.72 | 24-53,60-67,69-132        
  types.ts                     |     100 |      100 |     100 |     100 |                           
  utils.ts                     |   85.94 |    74.82 |    92.3 |   85.94 | ...99-609,617-625,635-641 
 ccip-cli/src/commands/search  |   49.39 |    83.33 |   14.28 |   49.39 |                           
  messages.ts                  |   49.39 |    83.33 |   14.28 |   49.39 | ...86-188,190-212,214-249 
 ccip-cli/src/providers        |   49.46 |    75.51 |      16 |   49.46 |                           
  aptos.ts                     |   51.47 |      100 |       0 |   51.47 | ...74,82-89,95-96,105-136 
  evm.ts                       |    36.3 |      100 |       0 |    36.3 | 27,47-63,69-104,116-168   
  index.ts                     |   80.16 |    72.72 |      80 |   80.16 | 51-52,193-237             
  solana.ts                    |   47.44 |      100 |       0 |   47.44 | ...,92-98,102-103,112-137 
  sui.ts                       |   64.28 |      100 |       0 |   64.28 | 10-14                     
  ton.ts                       |   15.03 |      100 |       0 |   15.03 | 24-153                    
 ccip-sdk/src                  |   94.44 |    82.15 |   92.77 |   94.44 |                           
  chain.ts                     |   93.04 |    81.01 |   71.42 |   93.04 | ...58,1708-1709,1742-1743 
  commits.ts                   |     100 |    95.23 |     100 |     100 | 52                        
  execution.ts                 |   92.19 |     92.3 |     100 |   92.19 | 130-137,149-156           
  explorer.ts                  |     100 |      100 |     100 |     100 |                           
  extra-args.ts                |      99 |    86.11 |     100 |      99 | 282-284                   
  gas.ts                       |   89.75 |       40 |     100 |   89.75 | 108-119,147-151           
  http-status.ts               |     100 |      100 |     100 |     100 |                           
  index.ts                     |     100 |      100 |     100 |     100 |                           
  messages.ts                  |   88.53 |    45.09 |     100 |   88.53 | ...20-221,230-231,255-256 
  offchain.ts                  |   94.14 |    79.54 |     100 |   94.14 | ...90,208,223-225,234-235 
  requests.ts                  |   90.63 |    80.55 |     100 |   90.63 | ...82-283,351-364,366-370 
  supported-chains.ts          |     100 |      100 |     100 |     100 |                           
  types.ts                     |     100 |      100 |     100 |     100 |                           
  utils.ts                     |   96.36 |    90.32 |     100 |   96.36 | ...67,783,884-885,892-900 
 ccip-sdk/src/api              |   93.75 |       85 |   94.11 |   93.75 |                           
  index.ts                     |   93.75 |       85 |   94.11 |   93.75 | ...39-744,755-758,761-764 
 ccip-sdk/src/aptos            |    55.7 |    69.23 |   55.73 |    55.7 |                           
  exec.ts                      |   29.31 |      100 |       0 |   29.31 | 18-58                     
  hasher.ts                    |   76.31 |       80 |   66.66 |   76.31 | 19-38,52-58               
  index.ts                     |    56.4 |    74.64 |   58.13 |    56.4 | ...26-828,832-858,862-873 
  logs.ts                      |   78.52 |    57.44 |      75 |   78.52 | ...90-196,200-233,264-268 
  send.ts                      |    25.2 |      100 |       0 |    25.2 | 10-51,62-79,92-123        
  token.ts                     |   23.75 |       75 |     100 |   23.75 | 35-156                    
  types.ts                     |   65.62 |      100 |       0 |   65.62 | 25-32,64-88               
 ccip-sdk/src/errors           |   87.41 |    76.16 |   48.38 |   87.41 |                           
  CCIPError.ts                 |     100 |      100 |     100 |     100 |                           
  codes.ts                     |     100 |      100 |     100 |     100 |                           
  index.ts                     |     100 |      100 |     100 |     100 |                           
  recovery.ts                  |     100 |      100 |     100 |     100 |                           
  specialized.ts               |   84.66 |    71.25 |   45.76 |   84.66 | ...27,3348-3357,3378-3387 
  utils.ts                     |   94.44 |    81.48 |     100 |   94.44 | 15,17,22,24               
 ccip-sdk/src/evm              |   82.79 |    74.13 |   89.02 |   82.79 |                           
  const.ts                     |     100 |      100 |     100 |     100 |                           
  errors.ts                    |   84.61 |    78.82 |     100 |   84.61 | ...56-161,170-172,215-233 
  extra-args.ts                |   94.47 |    61.01 |     100 |   94.47 | ...85-186,211-212,328-340 
  fork.test.data.ts            |     100 |      100 |     100 |     100 |                           
  gas.ts                       |   97.97 |    53.33 |     100 |   97.97 | 72-73,75                  
  hasher.ts                    |     100 |     92.3 |     100 |     100 | 134                       
  index.ts                     |   79.73 |    74.69 |   90.16 |   79.73 | ...65,2129-2145,2171-2178 
  logs.ts                      |   34.32 |    68.42 |      25 |   34.32 | ...13-214,229-258,275-302 
  messages.ts                  |     100 |      100 |     100 |     100 |                           
  offchain.ts                  |   81.25 |    33.33 |     100 |   81.25 | 11,13-14                  
  types.ts                     |     100 |      100 |     100 |     100 |                           
 ccip-sdk/src/evm/viem         |   77.72 |       92 |   69.23 |   77.72 |                           
  client-adapter.ts            |     100 |     92.3 |     100 |     100 | 48                        
  index.ts                     |     100 |      100 |     100 |     100 |                           
  wallet-adapter.ts            |   63.09 |     90.9 |   55.55 |   63.09 | ...6,53-73,91-124,131-157 
 ccip-sdk/src/hasher           |   94.29 |    78.94 |     100 |   94.29 |                           
  common.ts                    |     100 |      100 |     100 |     100 |                           
  hasher.ts                    |     100 |    66.66 |     100 |     100 | 19                        
  index.ts                     |     100 |      100 |     100 |     100 |                           
  merklemulti.ts               |   93.43 |       78 |     100 |   93.43 | ...59-260,306-307,315-316 
 ccip-sdk/src/shared           |   88.05 |    69.23 |     100 |   88.05 |                           
  bcs-codecs.ts                |   87.87 |    66.66 |     100 |   87.87 | 75-87,104-106             
  constants.ts                 |     100 |      100 |     100 |     100 |                           
 ccip-sdk/src/solana           |   73.14 |    68.13 |   77.01 |   73.14 |                           
  cleanup.ts                   |   26.63 |    66.66 |   33.33 |   26.63 | 43-53,59-101,113-226      
  exec.ts                      |   69.05 |    62.96 |   66.66 |   69.05 | ...61-463,468-472,512-513 
  fork.test.data.ts            |     100 |      100 |     100 |     100 |                           
  hasher.ts                    |   96.58 |    81.81 |     100 |   96.58 | 67-70                     
  index.ts                     |   76.68 |       75 |   78.84 |   76.68 | ...58,1562-1583,1587-1620 
  logs.ts                      |   74.83 |    38.88 |     100 |   74.83 | 38-39,50-51,53-54,56-88   
  offchain.ts                  |     100 |      100 |     100 |     100 |                           
  patchBorsh.ts                |   78.31 |       50 |     100 |   78.31 | 34-35,41-47,65-66,72-78   
  send.ts                      |   77.55 |    33.33 |      80 |   77.55 | ...45-346,351-359,402-441 
  types.ts                     |     100 |      100 |     100 |     100 |                           
  utils.ts                     |   67.41 |    68.96 |   63.63 |   67.41 | ...36-439,442-444,476-491 
 ccip-sdk/src/sui              |   32.62 |    89.47 |   17.24 |   32.62 |                           
  discovery.ts                 |   14.86 |      100 |       0 |   14.86 | 20-36,49-185,188-222      
  events.ts                    |    19.9 |      100 |       0 |    19.9 | ...18-275,280-397,406-427 
  exec.ts                      |   31.29 |      100 |       0 |   31.29 | 31-74,86-131              
  hasher.ts                    |   98.16 |    66.66 |     100 |   98.16 | 33,49                     
  index.ts                     |   40.44 |    93.18 |   17.94 |   40.44 | ...12-813,817-818,822-823 
  objects.ts                   |   18.93 |      100 |       0 |   18.93 | ...04-119,133-184,195-338 
 ccip-sdk/src/sui/manuallyExec |   39.63 |      100 |       0 |   39.63 |                           
  encoder.ts                   |   47.67 |      100 |       0 |   47.67 | 42-86                     
  index.ts                     |   34.35 |      100 |       0 |   34.35 | 46-131                    
 ccip-sdk/src/ton              |   76.52 |    80.63 |   71.42 |   76.52 |                           
  exec.ts                      |     100 |      100 |     100 |     100 |                           
  extra-args.ts                |   98.66 |    72.72 |     100 |   98.66 | 156-157,222               
  hasher.ts                    |   77.95 |    77.77 |      75 |   77.95 | 99-107,155-186            
  index.ts                     |   70.86 |    76.72 |   55.55 |   70.86 | ...05,1212-1213,1220-1221 
  logs.ts                      |     100 |    98.43 |     100 |     100 | 56                        
  send.ts                      |   95.93 |       70 |     100 |   95.93 | 37-44                     
  types.ts                     |   77.94 |    69.23 |   66.66 |   77.94 | ...-73,91,118-131,133-136 
  utils.ts                     |   63.02 |    78.18 |    90.9 |   63.02 | ...22-328,336-394,396-399 
-------------------------------|---------|----------|---------|---------|---------------------------

@aelmanaa aelmanaa merged commit 45e292a into main Apr 24, 2026
13 checks passed
@aelmanaa aelmanaa deleted the post-1.5.0-cleanup branch April 24, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants