Skip to content

Commit

Permalink
Direct import & config overhaul (#1698)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
artursapek committed Mar 18, 2024
1 parent f06c070 commit 4dfd8c9
Show file tree
Hide file tree
Showing 111 changed files with 2,471 additions and 2,622 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Build

on:
pull_request:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
- run: npm run lint:ci
- run: |
IFS='@' read -a strarr <<< $(git describe --tags)
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect-loader/package.json
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect/package.json
npm run build
cd wormhole-connect-loader
cp README.md wormhole-connect/
cp wormhole-connect.png wormhole-connect/
cd wormhole-connect
npm publish --tag $(echo $([ ${strarr[0]} == "production" ] && echo "latest" || echo ${strarr[0]})) --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
30 changes: 29 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## Contributing

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.

### Setup

1) Install

Run `npm i` at the root of the repo

2) Build

Run `npm run build` at the root fo the repo

3) Start

Start wormhole-connect UI and view in browser at localhost:3000
```bash
# in /wormhole-connect
npm run start # testnet
```

Start builder UI and view in browser at localhost:3000
```bash
# in /builder
npm run start
```

## Add a token

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

1. Make a GitHub release
2. Tag it `[email protected]`
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
Loading

0 comments on commit 4dfd8c9

Please sign in to comment.