Skip to content

Commit 4dfd8c9

Browse files
authored
Direct import & config overhaul (#1698)
* refactor config, export as library * wip: update builder to this version of connect * handle config in AppRouter so we can dispatch * remove unused key * clean up confusing env/network mess * update network selector to pull from connect lib * previewMode config setting disables transfers * revert changes to builder * revert package-lock * remove BackgroundImage * change default dark mode bg to black
1 parent f06c070 commit 4dfd8c9

File tree

111 files changed

+2471
-2622
lines changed

Some content is hidden

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

111 files changed

+2471
-2622
lines changed

.github/workflows/lint.yml .github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint
1+
name: Build
22

33
on:
44
pull_request:

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ jobs:
2525
- run: npm run lint:ci
2626
- run: |
2727
IFS='@' read -a strarr <<< $(git describe --tags)
28-
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect-loader/package.json
28+
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect/package.json
2929
npm run build
30-
cd wormhole-connect-loader
30+
cp README.md wormhole-connect/
31+
cp wormhole-connect.png wormhole-connect/
32+
cd wormhole-connect
3133
npm publish --tag $(echo $([ ${strarr[0]} == "production" ] && echo "latest" || echo ${strarr[0]})) --access public
3234
env:
3335
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CONTRIBUTING.md

+29-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## Contributing
2+
3+
Contributions are welcome! To work on wormhole-connect locally you'll want to use `npm link` to make the changes to the SDK immediately available.
4+
5+
### Setup
6+
7+
1) Install
8+
9+
Run `npm i` at the root of the repo
10+
11+
2) Build
12+
13+
Run `npm run build` at the root fo the repo
14+
15+
3) Start
16+
17+
Start wormhole-connect UI and view in browser at localhost:3000
18+
```bash
19+
# in /wormhole-connect
20+
npm run start # testnet
21+
```
22+
23+
Start builder UI and view in browser at localhost:3000
24+
```bash
25+
# in /builder
26+
npm run start
27+
```
28+
129
## Add a token
230

331
### Fill out token config
@@ -52,4 +80,4 @@ Copy the outputted list and paste it into `src/consts/wallet.ts` as the value of
5280

5381
1. Make a GitHub release
5482
2. Tag it `production@0.1.3`
55-
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
83+
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM

0 commit comments

Comments
 (0)