Skip to content

Add getUSDCAttestationStatus command#48

Merged
ogtownsend merged 7 commits intomainfrom
ogt/add-circle-attestation-status-command
Sep 8, 2025
Merged

Add getUSDCAttestationStatus command#48
ogtownsend merged 7 commits intomainfrom
ogt/add-circle-attestation-status-command

Conversation

@ogtownsend
Copy link
Contributor

@ogtownsend ogtownsend commented Jul 31, 2025

  • Adds a new command for fetching USDC attestation data via their API

@github-actions
Copy link

github-actions bot commented Jul 31, 2025

Coverage Report

-----------------------------------|---------|----------|---------|---------|-----------------------------------------------------
File                               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                   
-----------------------------------|---------|----------|---------|---------|-----------------------------------------------------
All files                          |   79.36 |    67.59 |   63.39 |   80.19 |                                                     
 abi                               |     100 |      100 |     100 |     100 |                                                     
  BurnMintERC677Token.ts           |     100 |      100 |     100 |     100 |                                                     
  BurnMintTokenPool_1_5_1.ts       |     100 |      100 |     100 |     100 |                                                     
  BurnMintTokenPool_1_6_1.ts       |     100 |      100 |     100 |     100 |                                                     
  CommitStore_1_2.ts               |     100 |      100 |     100 |     100 |                                                     
  CommitStore_1_5.ts               |     100 |      100 |     100 |     100 |                                                     
  FeeQuoter_1_6.ts                 |     100 |      100 |     100 |     100 |                                                     
  LockReleaseTokenPool_1_5_1.ts    |     100 |      100 |     100 |     100 |                                                     
  OffRamp_1_2.ts                   |     100 |      100 |     100 |     100 |                                                     
  OffRamp_1_5.ts                   |     100 |      100 |     100 |     100 |                                                     
  OffRamp_1_6.ts                   |     100 |      100 |     100 |     100 |                                                     
  OnRamp_1_2.ts                    |     100 |      100 |     100 |     100 |                                                     
  OnRamp_1_5.ts                    |     100 |      100 |     100 |     100 |                                                     
  OnRamp_1_6.ts                    |     100 |      100 |     100 |     100 |                                                     
  Router.ts                        |     100 |      100 |     100 |     100 |                                                     
  TokenAdminRegistry_1_5.ts        |     100 |      100 |     100 |     100 |                                                     
 lib                               |   89.29 |    77.45 |   70.81 |   90.99 |                                                     
  commits.ts                       |   81.25 |     67.5 |     100 |   84.09 | 93,142-150                                          
  errors.ts                        |   94.25 |    87.09 |     100 |   96.25 | 169,188,196                                         
  execution.ts                     |   85.62 |    69.13 |      80 |   89.36 | 128-135,200-201,222-223,273,335-350,383,392         
  extra-args.ts                    |   86.66 |    68.29 |     100 |   88.88 | 51-55,140                                           
  gas.ts                           |   91.66 |    64.28 |     100 |   94.28 | 75,87                                               
  index.ts                         |     100 |      100 |    2.38 |     100 |                                                     
  offchain.ts                      |   95.58 |    90.42 |   96.15 |   96.04 | 21,216,312,356,489,535,568                          
  requests.ts                      |   83.15 |    62.76 |   77.41 |    84.9 | 68-73,430-490,699-702,709,728-732,756               
  selectors.ts                     |     100 |      100 |     100 |     100 |                                                     
  types.ts                         |     100 |      100 |     100 |     100 |                                                     
  utils.ts                         |   91.22 |    86.46 |     100 |   92.41 | 72,85,92-93,207-209,228,259,400,408,506,531,533-535 
 lib/hasher                        |    92.7 |    71.83 |   84.21 |   92.23 |                                                     
  aptos.ts                         |      90 |       60 |   71.42 |   89.28 | 12-13,35                                            
  common.ts                        |     100 |      100 |     100 |     100 |                                                     
  evm.ts                           |   96.87 |       80 |     100 |   96.87 | 99                                                  
  hasher.ts                        |   86.66 |       75 |     100 |   86.66 | 37-41                                               
  index.ts                         |     100 |      100 |   42.85 |     100 |                                                     
  merklemulti.ts                   |   91.15 |    70.21 |     100 |   90.74 | 52,147,210,229,233,239,243,248,295,304              
  solana.ts                        |   95.83 |       75 |     100 |   95.83 | 48                                                  
 lib/solana                        |    21.7 |     4.34 |    12.5 |   21.22 |                                                     
  getAddressLookupTableAccount.ts  |      20 |        0 |       0 |      20 | 10-16                                               
  getClusterByChainSelectorName.ts |    92.3 |       50 |     100 |      90 | 14                                                  
  getManuallyExecuteInputs.ts      |    5.97 |        0 |       0 |    6.25 | 10-19,37-268                                        
  manuallyExecuteSolana.ts         |    20.8 |     9.37 |    7.14 |   21.31 | 38-64,87-280,309,316-318,343-462                    
  simulateManuallyExecute.ts       |   16.66 |        0 |       0 |   11.76 | 25-67                                               
  utils.ts                         |   33.33 |        0 |      10 |   37.03 | 16-24,31-41,50-52,65-75                             
 lib/solana/programs               |   77.77 |      100 |       0 |      75 |                                                     
  getCcipOfframp.ts                |   63.63 |      100 |       0 |   55.55 | 18-24,38-44                                         
  versioning.ts                    |     100 |      100 |     100 |     100 |                                                     
 lib/solana/programs/1.6.0         |     100 |      100 |     100 |     100 |                                                     
  CCIP_CCTP_TOKEN_POOL.ts          |     100 |      100 |     100 |     100 |                                                     
  CCIP_COMMON.ts                   |     100 |      100 |     100 |     100 |                                                     
  CCIP_OFFRAMP.ts                  |     100 |      100 |     100 |     100 |                                                     
  CCIP_ROUTER.ts                   |     100 |      100 |     100 |     100 |                                                     
-----------------------------------|---------|----------|---------|---------|-----------------------------------------------------

Test Suites: 14 passed, 14 total
Tests:       191 passed, 191 total
Snapshots:   0 total
Time:        18.432 s
Ran all test suites.

@ogtownsend ogtownsend force-pushed the ogt/add-circle-attestation-status-command branch from 68c41a6 to 989e8c6 Compare August 28, 2025 19:38
@ogtownsend ogtownsend changed the title Add getUSDCAttestationStatusV1 command Add getUSDCAttestationStatus command Aug 28, 2025
@ogtownsend ogtownsend marked this pull request as ready for review August 28, 2025 19:40
@ogtownsend ogtownsend requested a review from a team as a code owner August 28, 2025 19:40
@ogtownsend ogtownsend force-pushed the ogt/add-circle-attestation-status-command branch from 79ee57a to 0de66f3 Compare September 8, 2025 19:54
import { Format } from './types.ts'
import { withDateTimestamp } from './utils.ts'

// Circle CCTP Domain ID mapping based on https://developers.circle.com/cctp/cctp-supported-blockchains#cctp-v2-supported-domains
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to add a proper // generate to this; it's this templating script I created which allow any JS command to populate this kind of mapping; but I won't require that for now

@ogtownsend ogtownsend merged commit 49800b7 into main Sep 8, 2025
10 checks passed
@ogtownsend ogtownsend deleted the ogt/add-circle-attestation-status-command branch September 8, 2025 22:18
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.

4 participants