Skip to content

Commit

Permalink
Merge branch 'main' into fraud-proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed Aug 6, 2024
2 parents ce0b60b + 69fba68 commit 3d4ceb3
Show file tree
Hide file tree
Showing 1,711 changed files with 194,634 additions and 47,069 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["@hyperlane-xyz/*"]],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/fast-schools-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': patch
---

Require at least 1 chain selection in warp init
5 changes: 5 additions & 0 deletions .codespell/.codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
skip = .git,node_modules,yarn.lock,Cargo.lock,./typescript/helloworld
count =
quiet-level = 3
ignore-words = ./.codespell/ignore.txt
7 changes: 7 additions & 0 deletions .codespell/ignore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
crate
receipient
received
receivedFrom
ser
readded
re-use
1 change: 1 addition & 0 deletions .codespell/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
codespell==2.2.6
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
coverage
coverage
*.cts
29 changes: 27 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint","jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand All @@ -23,11 +23,36 @@
"no-extra-boolean-cast": ["error"],
"no-ex-assign": ["error"],
"no-constant-condition": ["off"],
"no-return-await": ["error"],
"guard-for-in": ["error"],
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-require-imports": ["warn"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
// Unban the {} type which is a useful shorthand for non-nullish value
"{}": false
},
"extendDefaults": true
}
],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
}
}
}
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
typescript/sdk/src/cw-types/*.types.ts linguist-generated=true
rust/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: 12 additions & 9 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
# File extension owners

*.sol @yorhodes @asaj @tkporter
*.ts @yorhodes @jmrossy @nambrot
*.rs @mattiecnvr @tkporter @asaj
*.md @Skunkchain @asaj
*.sol @yorhodes @tkporter @aroralanuk @nbayindirli
*.ts @yorhodes @jmrossy @nbayindirli
*.rs @tkporter @daniel-savu
*.md @Skunkchain @avious00

# Package owners

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

## Agents
rust/ @mattiecnvr @tkporter @asaj
rust/ @tkporter @daniel-savu

## SDK
typescript/sdk @yorhodes @jmrossy

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

## Hello World
typescript/helloworld @yorhodes @nambrot
typescript/helloworld @yorhodes

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

## Infra
typescript/infra @tkporter @asaj @mattiecnvr
typescript/infra @tkporter
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---

## Problem

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Additional context**
Add any other context or screenshots about the feature request here.

## Solution

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

## Nice to Have

**Describe non-essential extensions to the solution**
Additional features which should be implemented if they are easy to accommodate but otherwise can be skipped
28 changes: 28 additions & 0 deletions .github/actions/checkout-registry/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Checkout Registry'
description: 'Checkout the hyperlane-registry repository and move it to the parent directory'
inputs:
registry_version:
description: 'Override the version of the hyperlane-registry to checkout'
runs:
using: 'composite'
steps:
- name: Read .registryrc if registry_version not provided
shell: bash
run: |
if [ -z "${{ inputs.registry_version }}" ]; then
REGISTRY_VERSION=$(cat .registryrc)
echo "REGISTRY_VERSION=$REGISTRY_VERSION" >> $GITHUB_ENV
else
echo "REGISTRY_VERSION=${{ inputs.registry_version }}" >> $GITHUB_ENV
fi
- name: Checkout hyperlane-registry
uses: actions/checkout@v4
with:
repository: hyperlane-xyz/hyperlane-registry
ref: ${{ env.REGISTRY_VERSION }}
path: ./hyperlane-registry

- name: Move hyperlane-registry to parent directory
shell: bash
run: mv ./hyperlane-registry ../
31 changes: 16 additions & 15 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
### Description

_What's included in this PR?_
<!--
What's included in this PR?
-->

### Drive-by changes

_Are there any minor or drive-by changes also included?_
<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

_Are these changes backward compatible?_

Yes
No

_Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling?_

None
Yes
<!--
Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling?
Yes/No
-->

### Testing

_What kind of testing have these changes undergone?_
<!--
What kind of testing have these changes undergone?
None
Manual
Unit Tests
None/Manual/Unit Tests
-->
14 changes: 7 additions & 7 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: ubuntu-latest
runs-on: larger-runner
outputs:
tag_date: ${{ steps.taggen.outputs.TAG_DATE }}
tag_sha: ${{ steps.taggen.outputs.TAG_SHA }}
Expand All @@ -33,7 +33,7 @@ jobs:
matrix:
include:
- TARGET: x86_64-unknown-linux-gnu
OS: ubuntu-latest
OS: larger-runner
- TARGET: x86_64-apple-darwin
OS: macos-latest
- TARGET: aarch64-apple-darwin
Expand All @@ -43,13 +43,13 @@ jobs:
runs-on: ${{ matrix.OS }}
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: ubuntu setup
if: ${{ matrix.OS == 'ubuntu-latest' }}
if: ${{ matrix.OS == 'larger-runner' }}
run: |
sudo apt-get update -qq
sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf
# some additional configuration for cross-compilation on linux
cat >>~/.cargo/config <<EOF
[target.aarch64-unknown-linux-gnu]
Expand All @@ -70,11 +70,11 @@ jobs:
run: cargo build --release --target ${{ matrix.TARGET }} --bin relayer --bin scraper --bin validator
working-directory: ./rust
- name: make executable
if: ${{ matrix.OS == 'ubuntu-latest' || matrix.OS == 'macos-latest' }}
if: ${{ matrix.OS == 'larger-runner' || matrix.OS == 'macos-latest' }}
run: chmod ug+x,-w relayer scraper validator
working-directory: rust/target/${{ matrix.TARGET }}/release
- name: upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.TARGET }}-${{ needs.prepare.outputs.tag_sha }}-${{ needs.prepare.outputs.tag_date }}
path: |
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# A Github action that using codespell to check spelling.
# see .codespell/* for configs
# https://github.com/codespell-project/codespell

name: codespell

on:
# Triggers the workflow on push or pull request against main
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
codespell:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-

- name: Install prerequisites
run: sudo pip install -r ./.codespell/requirements.txt

- name: Spell check
run: codespell --config=./.codespell/.codespellrc
Loading

0 comments on commit 3d4ceb3

Please sign in to comment.