Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat/starknet
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Nov 4, 2024
2 parents cd48ea4 + ffbc13c commit 4fe269d
Show file tree
Hide file tree
Showing 1,180 changed files with 64,735 additions and 34,605 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-turkeys-march.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/clean-dingos-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

re-enable space key for multiselect cli prompt
5 changes: 5 additions & 0 deletions .changeset/cold-dingos-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': patch
---

Optimize HyperlaneRelayer routing config derivation
4 changes: 2 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["@hyperlane-xyz/*"]],
"commit": true,
"fixed": [["@hyperlane-xyz/!(core)|*"]],
"linked": [],
"access": "public",
"baseBranch": "main",
Expand Down
6 changes: 6 additions & 0 deletions .changeset/cuddly-baboons-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/sdk': minor
'@hyperlane-xyz/core': minor
---

Checking for sufficient fees in `AbstractMessageIdAuthHook` and refund surplus
8 changes: 0 additions & 8 deletions .changeset/dirty-cameras-breathe.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-items-sparkle.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/dirty-swans-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/utils': patch
'@hyperlane-xyz/sdk': patch
---

Dedupe internals of hook and ISM module deploy code
5 changes: 0 additions & 5 deletions .changeset/fast-schools-battle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-chefs-visit.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/four-years-tease.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/fresh-pigs-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Deploy to apechain, arbitrumnova, b3, fantom, gravity, harmony, kaia, morph, orderly, snaxchain, zeronetwork, zksync. Update default metadata in `HyperlaneCore` to `0x00001` to ensure empty metadata does not break on zksync.
7 changes: 0 additions & 7 deletions .changeset/gorgeous-shirts-film.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/healthy-boats-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/utils': patch
---

fix median utils func + add test
6 changes: 6 additions & 0 deletions .changeset/long-queens-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/cli': minor
'@hyperlane-xyz/sdk': minor
---

Add feat to allow updates to destination gas using warp apply
5 changes: 5 additions & 0 deletions .changeset/neat-sloths-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/core': minor
---

Added msg.value to preverifyMessage to commit it as part of external hook payload
6 changes: 6 additions & 0 deletions .changeset/pink-bats-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/cli': minor
'@hyperlane-xyz/sdk': minor
---

Add optional proxy admin reuse in warp route deployments and admin proxy ownership transfer in warp apply
5 changes: 0 additions & 5 deletions .changeset/pink-poets-think.md

This file was deleted.

11 changes: 11 additions & 0 deletions .changeset/plenty-pens-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@hyperlane-xyz/widgets': minor
---

Update widgets with components from explorer and warp ui

- Add icons: Discord, Docs, Github, History, LinkedIn, Medium, Twitter, Wallet and Web
- Add animation component: Fade component
- Add components: DatetimeField and SelectField
- New stories: IconList and Fade
- Add "Icon" suffix for icons that did not have it
5 changes: 0 additions & 5 deletions .changeset/pretty-dots-look.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/proud-horses-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/widgets': patch
---

- Update ChainSearchMenu with improvements
5 changes: 5 additions & 0 deletions .changeset/proud-turkeys-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Update default validator sets. Throw in `InterchainAccount.getOrDeployAccount` if the origin router is the zero address.
5 changes: 0 additions & 5 deletions .changeset/real-guests-search.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/rich-donkeys-visit.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/shaggy-shrimps-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/cli': minor
'@hyperlane-xyz/sdk': minor
---

Add `hyperlane warp verify` to allow post-deployment verification.
5 changes: 0 additions & 5 deletions .changeset/short-cobras-wink.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/silent-berries-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/core': minor
---

disabled the ICARouter's ability to change hook given that the user doesn't expect the hook to change after they deploy their ICA account. Hook is not part of the derivation like ism on the destination chain and hence, cannot be configured custom by the user.
5 changes: 5 additions & 0 deletions .changeset/sixty-eggs-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Enable configuration of IGP hooks in the CLI
5 changes: 0 additions & 5 deletions .changeset/sour-ladybugs-appear.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/sweet-houses-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': patch
---

Fix ICA ISM self relay
5 changes: 5 additions & 0 deletions .changeset/thin-tips-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Introduce utils that can be reused by the CLI and Infra for fetching token prices from Coingecko and gas prices from EVM/Cosmos chains.
5 changes: 5 additions & 0 deletions .changeset/tidy-meals-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/utils': patch
---

Filter undefined/null values in invertKeysAndValues function
5 changes: 0 additions & 5 deletions .changeset/two-tigers-sniff.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-foxes-jam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-zoos-smell.md

This file was deleted.

2 changes: 1 addition & 1 deletion .codespell/.codespellrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[codespell]
skip = .git,node_modules,yarn.lock,Cargo.lock,./typescript/helloworld,./rust/config
skip = .git,node_modules,yarn.lock,Cargo.lock,./typescript/helloworld,./rust/main/config,./rust/sealevel/environments/mainnet3/chain-config.json
count =
quiet-level = 3
ignore-words = ./.codespell/ignore.txt
2 changes: 1 addition & 1 deletion .codespell/ignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ received
receivedFrom
ser
readded
re-use
re-use
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"no-ex-assign": ["error"],
"no-constant-condition": ["off"],
"no-return-await": ["error"],
"no-restricted-imports": ["error", {
"name": "console",
"message": "Please use a logger and/or the utils' package assert"
}, {
"name": "fs",
"message": "Avoid use of node-specific libraries"
}],
"guard-for-in": ["error"],
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
typescript/sdk/src/cw-types/*.types.ts linguist-generated=true
rust/chains/hyperlane-ethereum/abis/*.abi.json linguist-generated=true
rust/main/chains/hyperlane-ethereum/abis/*.abi.json linguist-generated=true
solidity/contracts/interfaces/avs/*.sol linguist-vendored=true
solidity/contracts/avs/ECDSA*.sol linguist-vendored=true
21 changes: 7 additions & 14 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
# File extension owners

*.sol @yorhodes @tkporter @aroralanuk @nbayindirli
*.ts @yorhodes @jmrossy @nbayindirli
*.rs @tkporter @daniel-savu
*.md @Skunkchain @avious00
*.sol @yorhodes @aroralanuk @ltyu
*.ts @yorhodes @jmrossy
*.rs @tkporter @daniel-savu @ameten

# Package owners

## Contracts
solidity/ @yorhodes @tkporter @aroralanuk @nbayindirli
solidity/ @yorhodes @tkporter @aroralanuk @ltyu

## Agents
rust/ @tkporter @daniel-savu

## SDK
typescript/sdk @yorhodes @jmrossy

## Token
typescript/token @yorhodes @jmrossy @tkporter @aroralanuk @nbayindirli

## Hello World
typescript/helloworld @yorhodes
typescript/sdk @yorhodes @jmrossy @ltyu @paulbalaji

## CLI
typescript/cli @jmrossy @yorhodes @aroralanuk @nbayindirli
typescript/cli @jmrossy @yorhodes @ltyu

## Infra
typescript/infra @tkporter
typescript/infra @tkporter @paulbalaji @Mo-Hussain
37 changes: 37 additions & 0 deletions .github/actions/yarn-build-with-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'Yarn Build with Cache'
description: 'Run yarn build using yarn cache'

inputs:
ref:
description: 'The Git ref to checkout'
required: true

runs:
using: "composite"
steps:
- name: Cache
uses: buildjet/cache@v4
id: cache
with:
path: |
**/node_modules
.yarn
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}

# Typically, the cache will be hit, but if there's a network error when
# restoring the cache, let's run the install step ourselves.
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: |
yarn install
CHANGES=$(git status -s --ignore-submodules)
if [[ ! -z $CHANGES ]]; then
echo "Changes found: $CHANGES"
git diff
exit 1
fi
- name: Build
shell: bash
run: yarn build
24 changes: 11 additions & 13 deletions .github/workflows/agent-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
prepare:
runs-on: larger-runner
runs-on: ubuntu-latest
outputs:
tag_date: ${{ steps.taggen.outputs.TAG_DATE }}
tag_sha: ${{ steps.taggen.outputs.TAG_SHA }}
Expand Down Expand Up @@ -58,30 +58,28 @@ jobs:
linker = "aarch64-linux-gnu-gcc"
EOF
- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
target: ${{ matrix.TARGET }}
- name: setup target
run: rustup target add ${{ matrix.TARGET }}
working-directory: ./rust
working-directory: ./rust/main
- name: build
run: cargo build --release --target ${{ matrix.TARGET }} --bin relayer --bin scraper --bin validator
working-directory: ./rust
working-directory: ./rust/main
- name: make executable
if: ${{ matrix.OS == 'larger-runner' || matrix.OS == 'macos-latest' }}
run: chmod ug+x,-w relayer scraper validator
working-directory: rust/target/${{ matrix.TARGET }}/release
working-directory: rust/main/target/${{ matrix.TARGET }}/release
- name: upload binaries
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.TARGET }}-${{ needs.prepare.outputs.tag_sha }}-${{ needs.prepare.outputs.tag_date }}
path: |
rust/target/${{ matrix.TARGET }}/release/relayer
rust/target/${{ matrix.TARGET }}/release/relayer.exe
rust/target/${{ matrix.TARGET }}/release/scraper
rust/target/${{ matrix.TARGET }}/release/scraper.exe
rust/target/${{ matrix.TARGET }}/release/validator
rust/target/${{ matrix.TARGET }}/release/validator.exe
rust/main/target/${{ matrix.TARGET }}/release/relayer
rust/main/target/${{ matrix.TARGET }}/release/relayer.exe
rust/main/target/${{ matrix.TARGET }}/release/scraper
rust/main/target/${{ matrix.TARGET }}/release/scraper.exe
rust/main/target/${{ matrix.TARGET }}/release/validator
rust/main/target/${{ matrix.TARGET }}/release/validator.exe
if-no-files-found: error
Loading

0 comments on commit 4fe269d

Please sign in to comment.