Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/GitHub registry authentication #1

Open
wants to merge 103 commits into
base: feat/github-registry-authentication
Choose a base branch
from

Conversation

mshojaei-txfusion
Copy link

@mshojaei-txfusion mshojaei-txfusion commented Feb 20, 2025

Description

Improve GitHub registry authentication tests and refactor authentication handling:

  • Add type annotations for better type safety in test setup
  • Restructure rate limit tests into a dedicated describe block
  • Enhance rate limit stub with more detailed response structure
  • Improve test readability and organization for authentication scenarios
  • Simplify GitHub registry authentication and fetch methods

Related Issues

hyperlane-xyz/hyperlane-monorepo#5501

Backward compatibility

Yes

Testing

Tests have been updated and expanded to cover:

  • GitHub API authentication with valid/invalid tokens
  • Rate limit handling and proxy fallback behavior
  • Chain data fetching with authentication

paulbalaji and others added 30 commits January 20, 2025 16:22
### Description

feat: deploy to trumpchain

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

manual

---------

Signed-off-by: pbio <[email protected]>
### Description

Add more chains to TRUMP
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

-   0797d4d: Deploy to flametestnet, sonicblaze.
-   3334558: Deploy to trumpchain.

### Patch Changes

-   fb0fcd6: feat: Add more chains to TRUMP

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

- Add OP extension
- Trumpchain warp route

---------

Co-authored-by: Trevor Porter <[email protected]>
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Patch Changes

-   80023dd: Add OP extension and Trumpchain warp route

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

<!--
Summary of change.
Example: Add sepolia chain
-->

Update stride fees with most up to date

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->
Yes
### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
Manual
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

-   4cb64c5: Update Stride fees

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…rlane-xyz#514)

### Description

- A UI here
hyperlane-xyz/hyperlane-warp-ui-template#393 is
available for anyone remaining who needs to unwind

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Major Changes

-   2b3f78f: Replace old TONY with the new TONY deploy

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description
Add warp config writer Registry logic

Generated by
hyperlane-xyz/hyperlane-monorepo#5235
### Backward compatibility
Yes

Fixes hyperlane-xyz/hyperlane-monorepo#5260
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

- d3a6517: Add `addWarpRouteConfig()` to allow writing of warp deploy
configs into the existing `deployments/warp_configs` dir
-   d3a6517: Add existing warp deploy configs generated by infra Getters

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

Deploy to abstract, glue, matchain, unitzero.

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

manual

---------

Signed-off-by: pbio <[email protected]>
### Description

Adds deployment results for an EVM to SVM warp route of LOGX token
between arbitrum and sollanamainnet.

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
### Description
Add Warp Deploy Config reader functions `getWarpDeployConfigs()` and
`getWarpDeployConfig()` as well DRY out logic that is shared with
`getWarpRoute()`

### Backward compatibility
Yes

### Testing
Unit tests

Fixes: hyperlane-xyz/hyperlane-monorepo#5261
### Description

- Deploys Sonic SVM
- Adds the SOL/solanamainnet-sonic warp route

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

-   528011e: Deploy Sonic SVM
- a589dad: Add warp deploy configs reader functions
`getWarpDeployConfigs()` and `getWarpDeployConfig()` within Partial,
Github, Filesystem, Merged Registries. Refactor duplicate logic with
existing warpRoute functions
-   944f99c: Deploy to abstract, glue, matchain, unitzero.
-   8d3f1e4: adds LOGX EVM - SVM route

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…xyz#524)

### Description
This fixes the error that has been hard to debug:
```
Error: Error: Unresolved alias (the anchor must be set before the alias): a1
    at Alias.toString (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/nodes/Alias.js:72:23)
    at Object.stringify (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/stringify/stringify.js:93:25)
    at Object.stringifyPair (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/stringify/stringifyPair.js:97:32)
    at Pair.toString (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/nodes/Pair.js:33:29)
    at Object.stringify (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/stringify/stringify.js:90:21)
    at stringifyBlockCollection (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/stringify/stringifyCollection.js:36:29)
    at Object.stringifyCollection (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/stringify/stringifyCollection.js:10:12)
    at YAMLMap.toString (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/nodes/YAMLMap.js:136:36)
    at Object.stringify (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/stringify/stringify.js:118:20)
    at Object.stringifyPair (/Users/leyu/Desktop/Code/hyperlane/hyperlane-monorepo/node_modules/yaml/dist/stringify/stringifyPair.js:97:32)
```

### Backward compatibility
Yes

### Testing
Tested with `yarn link`
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Patch Changes

- 4b5d60f: Update toYamlString to not use aliasDuplicateObjects due to
alias errors.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description
Updates some existing configs

### Backward compatibility
Yes
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Patch Changes

- 2459730: Update TRUMP, CBBTC, LUMIA, USDC (zeronetwork), USDC
(zeronetwork) warp configs with the latest changes from Infra Checker

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…yperlane-xyz#528)

### Description

feat: set gnosisSafeTransactionServiceUrl for zksync-stack mainnets

found api urls by looking at per-chain metadata returned by each UI:
- zksync https://app.safe.global/home
- treasure https://app.palmeradao.xyz/welcome
- zklink https://safe.zklink.io/welcome
- abstract https://abstract-safe.protofire.io/welcome

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
### Description
This PR updates several config by remove unused properties. Mostly, if
there is a proxyAdmin object already defined, then remove the overrides.

Each config has been verified with the Checker.

### Backward compatibility
Yes
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

- 83cd45d: Add gnosisSafeTransactionServiceUrl for zksync-stack
mainnets.

### Patch Changes

- b7b0034: Removes ownerOverrides for CBBTC, ETH (viction), PumpBTC
(Sei)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

Add Chronicle Yellowstone chain - not ready yet, need to get a few more
items

### Backward compatibility

Yes

### Testing

No

---------

Co-authored-by: Paul Balaji <[email protected]>
### Description

- Adding metadata.json (adapted from the existing tokens on Solana) for
sSOL, SONIC, and USD*
- Required by Sonic SVM

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
github-actions bot and others added 29 commits February 13, 2025 17:01
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Patch Changes

-   2575aa5: Revert husky.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

chore: add drpc endpoint to default ethereum RPC set

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->

---------

Signed-off-by: pbio <[email protected]>
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

-   7682689: Add drpc fallback rpc to ethereum metadata.

### Patch Changes

-   fd41924: Revert husky.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

- Adds CDX metadata and logo to prepare for the SVM deploy

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
### Description

Adds FORM warp route between ethereum (collateral) and form (synthetic)

### Backward compatibility

Yes

### Testing

Manual
### Description

- Deploys CDX/base-solanamainnet
- tested in local UI already
- ownership transfer already occurred
- no Coingecko ID yet

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

-   f7d238e: Deploy CDX/base-solanamainnet
-   57be335: Add FORM warp route ethereum&lt;>form
-   cc87e1e: Add CDX logo and metadata

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

feat: feb 17 chain deploy batch
- deploy to bouncebit, arcadia, ronin, sophon, story, subtensor

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

manual
### Description

- ~~Not certain about the explorer API - the link still points to the
testnet. Can't seem to find a mainnet one yet~~
- ~~Not sure if we wanna call it "HyperEVM" as they seem to be
branding~~
- have to remove wanchaintestnet to avoid a domain ID clash

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

manual

---------

Signed-off-by: pbio <[email protected]>
Co-authored-by: pbio <[email protected]>
### Description

feat: add gnosis safe API for sophon

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
### Description

<!--
Summary of change.
Example: Add sepolia chain
-->

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->

---------

Co-authored-by: Paul Balaji <[email protected]>
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Major Changes

-   a1758ee: Remove wanchaintestnet. Add hyperevm.

### Minor Changes

- 61ebec2: Deploy to bouncebit, arcadia, ronin, sophon, story,
subtensor.
-   be10c5b: Add Ethereum&lt;>HyperEVM warp routes for ETH, WBTC, USDT

### Patch Changes

-   3bac225: Add gnosis safe URL for sophon.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

- Tested in UI
- Ownership has been transferred
- Settled on 9 decimals for the hyperevm side as this is what the e.g.
wSOL
https://etherscan.io/token/0xd31a59c85ae9d8edefec411d448f90841571b89c
token does

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

<!--
Have any new metadata configs and deployment addresses been used with
any Hyperlane tooling, such as the CLI?
-->
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

-   d474b7f: Add SOL/hyperevm-solanamainnet

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description

Add CCIP Hooks and ISMs
### Description

feat: enroll feb17 batch on default ISMs
- these are artifacts from
hyperlane-xyz/hyperlane-monorepo#5511

drive-bys:
- update fraxtal safe api
- update subtensor rpc list

### Backward compatibility

<!--
Are these changes backward compatible? Note that additions are backwards
compatible.

Yes/No
-->

### Testing

manual
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @hyperlane-xyz/[email protected]

### Minor Changes

- 9b1aae1: Update default ISMs for Feb 17 batch enrollment. Update safe
tx API URLs for fraxtal and hyperevm. Update default RPCs for subtensor.

### Patch Changes

-   2c1cae3: Deployed CCIP Hook/ISMs

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
### Description
- Add safe tx service urls for lisk, worldchain, superseed, soneium and
unichain
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.