Skip to content

Add Canton Send and Execute#234

Merged
RodrigoAD merged 6 commits intomainfrom
canton-initial-sdk
Apr 30, 2026
Merged

Add Canton Send and Execute#234
RodrigoAD merged 6 commits intomainfrom
canton-initial-sdk

Conversation

@RodrigoAD
Copy link
Copy Markdown
Member

@RodrigoAD RodrigoAD commented Apr 23, 2026

  • Add Canton JSON ledger API Client wrapper
  • Add Canton contract discovery through ACS and EDS
  • Add CCV verifications fetch through CCIP Indexer
  • Add Manual Execution SDK
  • Add Send Message SDK

@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 30, 2026 1:49pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

Coverage Report

ℹ tests 807
ℹ suites 234
ℹ pass 805
ℹ fail 0
ℹ cancelled 0
ℹ skipped 2
ℹ todo 0
ℹ duration_ms 129838.166063

> @chainlink/ccip-cli@1.5.1 test
> node --test

Verbose mode enabled
▶ getCtx
  ▶ output — always stdout
    ✔ output.write goes to stdout (1.768884ms)
    ✔ output.table goes to stdout (1.205558ms)
  ✔ output — always stdout (4.600316ms)
  ▶ logger — always stderr
    ✔ logger.info goes to stderr (0.665042ms)
    ✔ logger.warn goes to stderr (0.379493ms)
    ✔ logger.error goes to stderr (0.515843ms)
  ✔ logger — always stderr (1.804518ms)
  ▶ verbose mode
    ✔ logger.debug is a no-op when verbose is false (0.472447ms)
    ✔ logger.debug goes to stderr when verbose is true (2.403193ms)
  ✔ verbose mode (3.922285ms)
  ▶ destroy signal
    ✔ returns a working destroy function (11.385716ms)
    ✔ calling destroy twice does not throw (0.821854ms)
  ✔ destroy signal (12.433348ms)
✔ getCtx (23.702122ms)
▶ lane-latency command
  ✔ should output JSON format correctly (7.046144ms)
  ✔ should resolve chain IDs to chain selectors (0.789433ms)
  ✔ should use custom API URL when provided (2.864599ms)
  ✔ should output log format correctly (1.812046ms)
  ✔ should handle chain IDs as input (0.673688ms)
  ✔ should handle chain selectors as input (0.72334ms)
  ✔ should throw CCIPApiClientNotAvailableError when --no-api flag is set (2.108053ms)
  ✔ should work normally when --no-api flag is false (0.851688ms)
  ✔ should forward blockConfirmations to API URL (0.643408ms)
  ✔ should not include numOfBlocks when blockConfirmations is not provided (0.618504ms)
  ▶ CCIP_API environment variable integration
    ✔ should respect CCIP_API=false environment variable (1.200148ms)
  ✔ CCIP_API environment variable integration (2.029612ms)
✔ lane-latency command (22.390915ms)
▶ selectRequest non-interactive behavior
  ✔ returns the single request without prompting (1.446397ms)
  ✔ returns the request matching logIndex (0.246994ms)
  ✔ throws CCIPInteractiveRequiredError for multiple requests without logIndex (2.301823ms)
✔ selectRequest non-interactive behavior (5.701042ms)
▶ CCIPInteractiveRequiredError
  ✔ has correct code and is not transient (0.279364ms)
  ✔ uses default recovery when none provided (0.35933ms)
  ✔ preserves context fields (0.216782ms)
✔ CCIPInteractiveRequiredError (1.245126ms)
▶ preprocessArgv TTY auto-detection
  ✔ --interactive flag is defined in globalOpts (0.217361ms)
✔ preprocessArgv TTY auto-detection (0.347085ms)
▶ search messages command
  ✔ should throw CCIPApiClientNotAvailableError when --no-api flag is set (2.442922ms)
  ✔ should output JSON format correctly (12.050496ms)
  ✔ should pass sender filter to API (2.756863ms)
  ✔ should pass receiver filter to API (3.534336ms)
  ✔ should resolve source chain to selector (5.017404ms)
  ✔ should resolve dest chain to selector (2.567793ms)
  ✔ should pass manual-exec-only filter to API (3.699802ms)
  ✔ should treat limit 0 as unlimited (4.998477ms)
  ✔ should respect limit parameter (7.242178ms)
  ✔ should warn when no results found (1.959691ms)
  ✔ should use custom API URL when provided (2.819075ms)
  ✔ should warn on negative limit and fall back to default (1.535963ms)
  ✔ should output log format (1.603479ms)
✔ search messages command (54.111206ms)
▶ e2e command show EVM
  ▶ pretty format (default)
    ✔ should show complete CCIP transaction details EVM to EVM (8594.236584ms)
  ✔ pretty format (default) (8595.266216ms)
  ▶ json format
    ✔ should output a single valid JSON envelope with all expected fields (6699.201652ms)
  ✔ json format (6699.534111ms)
  ▶ log format
    ✔ should output in log format with object assignments (6495.753248ms)
  ✔ log format (6495.988042ms)
  ▶ verbose flag
    ✔ should work with verbose flag enabled (7591.531375ms)
  ✔ verbose flag (7591.76621ms)
  ▶ error handling
    ✔ should handle invalid transaction hash gracefully (5537.52987ms)
    ✔ should require transaction hash argument (1600.260815ms)
  ✔ error handling (7138.070738ms)
  ✔ should show complete CCIP transaction details EVM to Aptos (13721.33752ms)
  ✔ should show complete CCIP transaction details EVM to Solana (5560.698269ms)
✔ e2e command show EVM (55808.229703ms)
▶ e2e command show Solana
  ✔ should show complete CCIP transaction details Solana to EVM (6938.852866ms)
✔ e2e command show Solana (6939.088947ms)
▶ e2e command show Aptos
  ✔ should show complete CCIP transaction details Aptos to EVM (8008.788053ms)
✔ e2e command show Aptos (8008.982409ms)
﹣ e2e command show TON (0.060946ms) # SKIP
▶ formatCCIPError
  ✔ should return null for non-CCIPError instances (1.008002ms)
  ✔ should format CCIPError with code and message (0.399919ms)
  ✔ should include help section with recovery hint (0.170628ms)
  ✔ should include note section for transient errors (0.231114ms)
  ✔ should include retry timing for transient errors with retryAfterMs (0.280938ms)
  ✔ should not include note section for permanent errors (0.179489ms)
  ✔ should format error with structured output (0.248057ms)
  ✔ should include stack trace when verbose is true (0.335982ms)
  ✔ should not include stack trace when verbose is false (0.154384ms)
✔ formatCCIPError (4.425647ms)
ℹ tests 59
ℹ suites 21
ℹ pass 59
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 73196.379938
---------------------------------------|---------|----------|---------|---------|-------------------
File                                   | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
---------------------------------------|---------|----------|---------|---------|-------------------
All files                              |   72.36 |    76.78 |   57.18 |   72.36 |                   
 ccip-cli/src                          |   89.47 |    61.53 |      75 |   89.47 |                   
  index.ts                             |   89.47 |    61.53 |      75 |   89.47 | ...57-158,163-168 
 ccip-cli/src/commands                 |   51.08 |    72.68 |   52.72 |   51.08 |                   
  index.ts                             |     100 |      100 |     100 |     100 |                   
  lane-latency.ts                      |   72.56 |     90.9 |   33.33 |   72.56 | ...,63-70,105-111 
  manual-exec.ts                       |   25.36 |      100 |       0 |   25.36 | ...23-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 | ...89-220,222-458 
  show.ts                              |   77.62 |    61.42 |   66.66 |   77.62 | ...61-274,305-306 
  supported-tokens.ts                  |   17.66 |      100 |       0 |   17.66 | ...45-319,321-334 
  token.ts                             |   22.72 |      100 |       0 |   22.72 | ...3,60-67,69-132 
  types.ts                             |     100 |      100 |     100 |     100 |                   
  utils.ts                             |   85.94 |    75.16 |    92.3 |   85.94 | ...17-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 | ...90-212,214-249 
 ccip-cli/src/providers                |   49.46 |    75.51 |      16 |   49.46 |                   
  aptos.ts                             |   51.47 |      100 |       0 |   51.47 | ...,95-96,105-136 
  evm.ts                               |    36.3 |      100 |       0 |    36.3 | ...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 | ...02-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.82 |    81.92 |   93.02 |   94.82 |                   
  chain.ts                             |   93.15 |    78.75 |   71.42 |   93.15 | ...1742,1775-1776 
  commits.ts                           |     100 |    95.23 |     100 |     100 | 54                
  execution.ts                         |   92.19 |     92.3 |     100 |   92.19 | 130-137,149-156   
  explorer.ts                          |     100 |      100 |     100 |     100 |                   
  extra-args.ts                        |   99.01 |    86.11 |     100 |   99.01 | 284-286           
  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 | ...30-231,255-256 
  offchain.ts                          |   94.14 |    79.54 |     100 |   94.14 | ...23-225,234-235 
  requests.ts                          |   94.58 |    82.11 |     100 |   94.58 | ...88-289,355-357 
  supported-chains.ts                  |     100 |      100 |     100 |     100 |                   
  types.ts                             |     100 |      100 |     100 |     100 |                   
  utils.ts                             |   96.34 |    89.83 |     100 |   96.34 | ...81-882,889-897 
 ccip-sdk/src/api                      |   93.75 |       85 |   94.11 |   93.75 |                   
  index.ts                             |   93.75 |       85 |   94.11 |   93.75 | ...55-758,761-764 
 ccip-sdk/src/aptos                    |   56.96 |    68.65 |   56.66 |   56.96 |                   
  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 |       75 |   58.13 |    56.4 | ...32-858,862-873 
  logs.ts                              |   90.32 |       56 |   85.71 |   90.32 | ...89,194,196-202 
  send.ts                              |    25.2 |      100 |       0 |    25.2 | ...1,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/canton                   |   36.89 |    63.63 |    6.45 |   36.89 |                   
  events.ts                            |   35.67 |      100 |       0 |   35.67 | ...71-383,389-398 
  index.ts                             |    33.7 |    55.55 |    8.16 |    33.7 | ...1492,1503-1507 
  types.ts                             |   83.33 |      100 |       0 |   83.33 | 18-25,104-114     
 ccip-sdk/src/canton/client            |   29.85 |      100 |       0 |   29.85 |                   
  client.ts                            |   25.99 |      100 |       0 |   25.99 | ...22-430,445-454 
  index.ts                             |     100 |      100 |     100 |     100 |                   
 ...dk/src/canton/explicit-disclosures |   75.85 |    62.06 |   48.27 |   75.85 |                   
  acs.ts                               |   79.69 |     61.4 |   77.77 |   79.69 | ...43-465,511-522 
  eds.ts                               |   69.56 |      100 |       0 |   69.56 | ...91-303,314-321 
 ccip-sdk/src/canton/token-metadata    |   62.64 |      100 |       0 |   62.64 |                   
  client.ts                            |   62.64 |      100 |       0 |   62.64 | 104-163,170-174   
 ...dk/src/canton/transfer-instruction |   52.15 |      100 |       0 |   52.15 |                   
  client.ts                            |   52.15 |      100 |       0 |   52.15 | 92-175,182-186    
 ccip-sdk/src/errors                   |   87.37 |    76.16 |      48 |   87.37 |                   
  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.59 |    71.25 |   45.37 |   84.59 | ...3374,3395-3404 
  utils.ts                             |   94.44 |    81.48 |     100 |   94.44 | 15,17,22,24       
 ccip-sdk/src/evm                      |   83.53 |    75.91 |   89.02 |   83.53 |                   
  const.ts                             |     100 |      100 |     100 |     100 |                   
  errors.ts                            |   93.16 |    82.41 |     100 |   93.16 | ...61,170-172,219 
  extra-args.ts                        |   94.47 |    61.01 |     100 |   94.47 | ...11-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.78 |    75.52 |   90.16 |   79.78 | ...2145,2171-2178 
  logs.ts                              |    37.5 |    82.35 |      25 |    37.5 | ...32-260,279-303 
  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                 |   79.76 |    90.62 |   69.23 |   79.76 |                   
  client-adapter.ts                    |     100 |       90 |     100 |     100 | 48,74             
  index.ts                             |     100 |      100 |     100 |     100 |                   
  wallet-adapter.ts                    |   63.09 |     90.9 |   55.55 |   63.09 | ...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 | ...06-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.07 |    69.94 |   76.74 |   73.07 |                   
  cleanup.ts                           |   26.95 |    66.66 |   33.33 |   26.95 | ...59-101,114-227 
  exec.ts                              |   69.05 |    62.96 |   66.66 |   69.05 | ...68-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.66 |    74.34 |   78.84 |   76.66 | ...1582,1586-1619 
  logs.ts                              |    73.1 |    60.71 |     100 |    73.1 | 51-52,54-55,62-89 
  offchain.ts                          |     100 |      100 |     100 |     100 |                   
  patchBorsh.ts                        |   78.31 |       50 |     100 |   78.31 | ...47,65-66,72-78 
  send.ts                              |   77.55 |    33.33 |      80 |   77.55 | ...51-359,402-441 
  types.ts                             |     100 |      100 |     100 |     100 |                   
  utils.ts                             |   67.41 |    68.96 |   63.63 |   67.41 | ...42-444,476-491 
 ccip-sdk/src/sui                      |   35.21 |    86.66 |   19.29 |   35.21 |                   
  discovery.ts                         |   14.86 |      100 |       0 |   14.86 | ...49-185,188-222 
  events.ts                            |   31.77 |       50 |      25 |   31.77 | ...18-275,297-298 
  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 | ...17-818,822-823 
  objects.ts                           |   18.93 |      100 |       0 |   18.93 | ...33-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.17 |    79.93 |   71.08 |   76.17 |                   
  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.81 |    77.39 |   55.55 |   70.81 | ...1211,1218-1219 
  logs.ts                              |     100 |    97.91 |     100 |     100 | 53                
  send.ts                              |   95.93 |       70 |     100 |   95.93 | 37-44             
  types.ts                             |   77.94 |    69.23 |   66.66 |   77.94 | ...18-131,133-136 
  utils.ts                             |   63.02 |    78.57 |    90.9 |   63.02 | ...36-394,396-399 
---------------------------------------|---------|----------|---------|---------|-------------------

andrevmatos
andrevmatos previously approved these changes Apr 30, 2026
Copy link
Copy Markdown
Collaborator

@andrevmatos andrevmatos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RodrigoAD RodrigoAD merged commit d7eee04 into main Apr 30, 2026
14 of 15 checks passed
@RodrigoAD RodrigoAD deleted the canton-initial-sdk branch April 30, 2026 14:00
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