-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add ChainName type for wallet network data #13497
Merged
Merged
Changes from 16 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
611a59a
feat: add ChainIdNetworkResponse type
wackerow 729e1dd
feat: add update-chains.ts script
wackerow d1c419b
chore: commit generated chains.ts
wackerow d0d30c6
feat: create ChainName type from chains.ts data
wackerow d5ff390
feat: add weekly workflow to update chains data
wackerow 7f8dc7d
feat: add supported_chains data for Rabby
wackerow bd59fdc
chore: add supported_chains placeholder array with TODO
wackerow 998597e
fix: workflow syntax
wackerow d0fc5fd
test: workflow run
wackerow c1de7db
fix: exit successfully if no changes
wackerow 0f96193
refactor: extract chain constants
wackerow 41d6168
feat: parse/simplify data before saving chains.ts
wackerow 48bf423
chore: update chains.ts
wackerow f89209e
chore: add Ethereum Mainnet as default for all
wackerow c0911df
feat: use v6, rm manual git flow
wackerow 3ae5286
chore: update dependencies
wackerow 014abe2
Merge branch 'dev' into wallet-network-schema
wackerow 973d645
Merge branch 'dev' into wallet-network-schema
corwintines File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Update Chains | ||
|
||
on: | ||
schedule: | ||
- cron: '20 16 * * FRI' # Runs every Friday at 16:20 UTC | ||
workflow_dispatch: # Can be dispatched manually | ||
|
||
jobs: | ||
update-chains: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Install ts-node | ||
run: yarn global add ts-node | ||
|
||
- name: Update chains data | ||
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/update-chains.ts | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: update-chains | ||
branch-suffix: timestamp | ||
commit-message: | | ||
Update chains data | ||
base: dev | ||
title: Update chains data | ||
body: Automated update of chains data from https://chainid.network/chains.json | ||
labels: update 🔄 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More info on usage: https://github.com/peter-evans/create-pull-request?tab=readme-ov-file#usage