Skip to content

Commit 6384a11

Browse files
authored
Merge pull request #64 from BootNodeDev/move-ui-into-workspace-clean-history
2 parents 6669ddb + 70353f8 commit 6384a11

File tree

125 files changed

+30946
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+30946
-0
lines changed

typescript/ui/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_WALLET_CONNECT_ID=12345678901234567890123456789012
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: ci
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main branch
5+
push:
6+
branches: [main, nautilus, nexus, injective, ezeth]
7+
pull_request:
8+
branches: [main, nautilus, nexus, injective, ezeth]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
install:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/cache@v3
19+
with:
20+
path: |
21+
**/node_modules
22+
.yarn/cache
23+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
24+
- name: yarn-install
25+
# Check out the lockfile from main, reinstall, and then
26+
# verify the lockfile matches what was committed.
27+
run: |
28+
yarn install
29+
CHANGES=$(git status -s)
30+
if [[ ! -z $CHANGES ]]; then
31+
echo "Changes found: $CHANGES"
32+
git diff
33+
exit 1
34+
fi
35+
36+
build:
37+
runs-on: ubuntu-latest
38+
needs: [install]
39+
steps:
40+
- uses: actions/checkout@v3
41+
- uses: actions/cache@v3
42+
with:
43+
path: |
44+
**/node_modules
45+
.yarn/cache
46+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
47+
- name: build
48+
run: yarn run build
49+
env:
50+
NEXT_PUBLIC_WALLET_CONNECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_ID }}
51+
52+
prettier:
53+
runs-on: ubuntu-latest
54+
needs: [install]
55+
steps:
56+
- uses: actions/checkout@v3
57+
- uses: actions/cache@v3
58+
with:
59+
path: |
60+
**/node_modules
61+
.yarn/cache
62+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
63+
- name: prettier
64+
run: |
65+
yarn run prettier
66+
CHANGES=$(git status -s)
67+
if [[ ! -z $CHANGES ]]; then
68+
echo "Changes found: $CHANGES"
69+
exit 1
70+
fi
71+
72+
lint:
73+
runs-on: ubuntu-latest
74+
needs: [install]
75+
steps:
76+
- uses: actions/checkout@v3
77+
- uses: actions/cache@v3
78+
with:
79+
path: |
80+
**/node_modules
81+
.yarn/cache
82+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
83+
- name: lint
84+
run: yarn run lint
85+
86+
test:
87+
runs-on: ubuntu-latest
88+
needs: [build]
89+
steps:
90+
- uses: actions/checkout@v3
91+
- uses: actions/cache@v3
92+
with:
93+
path: |
94+
**/node_modules
95+
.yarn/cache
96+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
97+
- name: test
98+
run: yarn run test
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Merge Main to Other Branches
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
create-merge-prs:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
name: [ezeth, injective, nexus]
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Configure Git
21+
run: |
22+
git config user.name "GitHub Actions Bot"
23+
git config user.email "github-actions[bot]@users.noreply.github.com"
24+
25+
- name: Create and push merge branch
26+
run: |
27+
git checkout ${{ matrix.name }}
28+
git merge origin/main
29+
git checkout -b main-to-${{ matrix.name }}
30+
git push -fu origin main-to-${{ matrix.name }}
31+
32+
- name: Check and Create Pull Request
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: |
36+
PR_EXISTS=$(gh pr list --base ${{ matrix.name }} --head main-to-${{ matrix.name }} --json number --jq length)
37+
if [ "$PR_EXISTS" -eq "0" ]; then
38+
gh pr create \
39+
--base ${{ matrix.name }} \
40+
--head main-to-${{ matrix.name }} \
41+
--title "chore: merge main into ${{ matrix.name }}" \
42+
--body "This PR was automatically created to merge changes from \`main\` into \`${{ matrix.name }}\`." \
43+
--draft
44+
else
45+
echo "Pull request already exists. Skipping creation."
46+
fi

typescript/ui/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
cache/
6+
.yarn/install-state.gz
7+
8+
# testing
9+
/coverage
10+
coverage.json
11+
/test/outputs
12+
13+
# next.js
14+
/.next/
15+
/out/
16+
17+
# production
18+
/src/context/*.json
19+
/artifacts
20+
/build
21+
/dist
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# local env files
34+
.env*.local
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
42+
.idea

typescript/ui/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test/outputs
2+
public

typescript/ui/.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 2,
3+
"printWidth": 100,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"plugins": [
7+
"prettier-plugin-organize-imports",
8+
"prettier-plugin-tailwindcss"
9+
],
10+
"tailwindFunctions": ["clsx"]
11+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"search.exclude": {
3+
"**/node_modules/**": true
4+
},
5+
"files.exclude": {
6+
"**/*.js.map": true,
7+
"**/*.js": {"when": "$(basename).ts"},
8+
"**/*.map": {"when": "$(basename).map"},
9+
},
10+
"files.watcherExclude": {
11+
"**/.git/objects/**": true,
12+
"**/.git/subtree-cache/**": true,
13+
"**/node_modules/*/**": true
14+
},
15+
"typescript.updateImportsOnFileMove.enabled": "always",
16+
"[typescript]": {
17+
"editor.formatOnSave": true,
18+
"editor.codeActionsOnSave": {
19+
"source.organizeImports": "explicit"
20+
},
21+
"editor.defaultFormatter": "esbenp.prettier-vscode"
22+
},
23+
"[typescriptreact]": {
24+
"editor.formatOnSave": true,
25+
"editor.codeActionsOnSave": {
26+
"source.organizeImports": "explicit"
27+
},
28+
"editor.defaultFormatter": "esbenp.prettier-vscode"
29+
},
30+
"[html]": {
31+
"editor.defaultFormatter": "esbenp.prettier-vscode"
32+
},
33+
"[css]": {
34+
"editor.defaultFormatter": "esbenp.prettier-vscode"
35+
},
36+
"[json]": {
37+
"editor.defaultFormatter": "esbenp.prettier-vscode"
38+
},
39+
"editor.tabSize": 2,
40+
"editor.detectIndentation": false,
41+
"tailwindCSS.experimental.classRegex": [
42+
[
43+
"clsx\\(([^)]*)\\)",
44+
"(?:'|\"|`)([^']*)(?:'|\"|`)"
45+
]
46+
],
47+
"workbench.colorCustomizations": {
48+
"activityBar.activeBackground": "#48237d",
49+
"activityBar.background": "#48237d",
50+
"activityBar.foreground": "#e7e7e7",
51+
"activityBar.inactiveForeground": "#e7e7e799",
52+
"activityBarBadge.background": "#95562a",
53+
"activityBarBadge.foreground": "#e7e7e7",
54+
"commandCenter.border": "#e7e7e799",
55+
"sash.hoverBorder": "#48237d",
56+
"statusBar.background": "#311855",
57+
"statusBar.foreground": "#e7e7e7",
58+
"statusBarItem.hoverBackground": "#48237d",
59+
"statusBarItem.remoteBackground": "#311855",
60+
"statusBarItem.remoteForeground": "#e7e7e7",
61+
"titleBar.activeBackground": "#311855",
62+
"titleBar.activeForeground": "#e7e7e7",
63+
"titleBar.inactiveBackground": "#31185599",
64+
"titleBar.inactiveForeground": "#e7e7e799"
65+
},
66+
"peacock.color": "#311855"
67+
}

typescript/ui/.yarn/patches/@hyperlane-xyz-sdk-npm-7.2.0-84fab5b120.patch

Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.

typescript/ui/.yarn/patches/@hyperlane-xyz-sdk-patch-5a90f5762a.patch

Lines changed: 170 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/token/TokenStandard.js b/dist/token/TokenStandard.js
2+
index 78d7a5b1c3d64fb5d460ba173931a49a9581368a..f30139f1ec2fd93ba60fffeec02491a26620c95d 100644
3+
--- a/dist/token/TokenStandard.js
4+
+++ b/dist/token/TokenStandard.js
5+
@@ -100,6 +100,8 @@ export const XERC20_STANDARDS = [
6+
];
7+
export const MINT_LIMITED_STANDARDS = [...XERC20_STANDARDS];
8+
export const TOKEN_HYP_STANDARDS = [
9+
+ TokenStandard.Intent,
10+
+ TokenStandard.IntentNative,
11+
TokenStandard.EvmHypNative,
12+
TokenStandard.EvmHypCollateral,
13+
TokenStandard.EvmHypCollateralFiat,

0 commit comments

Comments
 (0)