Skip to content

Commit

Permalink
Feat/81 with multinnet (stacks-network#94)
Browse files Browse the repository at this point in the history
* update

* Enhancement: builds a time locked (OP_CSV) transaction. The id is broadcast to the signers who can clam within 144 blocks. After that the user can reclaim the btc.

* update

* Enhancement: builds invoice screen for op drop transaction and the reclaim / signer transactions plus the code to watch the chain for user invoice payments.

* Bulk of the work for the multinet. Some testing and support for devnnet is still needed.

* Added a network toggle on menu dropdown

* Improvement to network toggler

* Unit test fix

* Fix for issue stacks-network#89

* bug - copy fix

* Fixed tests

* Removed express dependency

* Chore(deps-dev): Bump vitest from 0.29.7 to 0.29.8 (stacks-network#85)

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.29.7 to 0.29.8.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.29.8/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps-dev): Bump @sveltejs/kit from 1.14.0 to 1.15.0 (stacks-network#84)

Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@1.15.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps-dev): Bump @types/node from 18.15.10 to 18.15.11 (stacks-network#83)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.10 to 18.15.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps-dev): Bump @vitest/coverage-c8 from 0.29.7 to 0.29.8 (stacks-network#82)

Bumps [@vitest/coverage-c8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-c8) from 0.29.7 to 0.29.8.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.29.8/packages/coverage-c8)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-c8"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump @noble/secp256k1 from 1.7.1 to 2.0.0 (stacks-network#77)

Bumps [@noble/secp256k1](https://github.com/paulmillr/noble-secp256k1) from 1.7.1 to 2.0.0.
- [Release notes](https://github.com/paulmillr/noble-secp256k1/releases)
- [Commits](paulmillr/noble-secp256k1@1.7.1...2.0.0)

---
updated-dependencies:
- dependency-name: "@noble/secp256k1"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix for breaking change on scure secp update

* clean up build

* clean up build

* clean up build

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Igor Sylvester <igorsyl@fastmail.com>
Co-authored-by: Igor <igor@trustmachines.co>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Apr 16, 2023
1 parent a47185d commit c28ab24
Show file tree
Hide file tree
Showing 74 changed files with 2,103 additions and 553 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.github
node_modules
build
README.md
24 changes: 1 addition & 23 deletions .env
Original file line number Diff line number Diff line change
@@ -1,24 +1,2 @@

NODE_ENV=development

VITE_PUBLIC_APP_NAME=SBTC Bridge
VITE_PUBLIC_APP_VERSION=1.0.0
VITE_ORIGIN=http://localhost
VITE_NETWORK=testnet
# electrum bob
VITE_SBTC_WALLET=tb1q6zlpyrzvzjcrf6dlsctcrh9yl3dwfktsw0nclq
#VITE_SBTC_WALLET=2My16WLPUBXanos9XNVV2X2dD1ivxK2TtqG
#VITE_SBTC_WALLET=tb1q6ue638m4t5knwxl4kwhwyuffttlp0ffee3zn3e
VITE_SBTC_CONTRACT_ID=ST3N4AJFZZYC4BK99H53XP8KDGXFGQ2PRSPNET8TN.sky-blue-elephant
#VITE_SBTC_CONTRACT_ID=ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.sbtc-alpha
VITE_BRIDGE_API=http://localhost:3010/bridge-api/v1
VITE_STACKS_API=https://stacks-node-api.testnet.stacks.co
#VITE_STACKS_API=http://localhost:3999
VITE_STACKS_EXPLORER=https://explorer.stacks.co
#VITE_STACKS_EXPLORER=http://localhost:8000
VITE_BSTREAM_EXPLORER=https://blockstream.info/testnet
VITE_BSTREAM_EXPLORER=https://mempool.space/testnet
#VITE_BSTREAM_EXPLORER=https://blockstream.info/testnet
VITE_MEMPOOL_EXPLORER=https://mempool.space/testnet/api
VITE_BLOCKCYPHER_EXPLORER=https://api.blockcypher.com/v1/btc/test3
#VITE_SBTC_DEPLOYER_ADDRESS=ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
NODE_ENV=development
16 changes: 0 additions & 16 deletions .env.linode-staging

This file was deleted.

16 changes: 0 additions & 16 deletions .env.production

This file was deleted.

14 changes: 0 additions & 14 deletions .env.staging

This file was deleted.

5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/sbtc-bridge-web.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use an official Node.js runtime as a parent image
FROM node:19 as build

WORKDIR /repo

# Copy the package.json and package-lock.json files to the container
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application files to the container
COPY . .

# Build the application using Vite
RUN npm run build

FROM scratch AS export-stage
WORKDIR /
COPY --from=build /repo/build .
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,10 @@ The application can be packaged and uploaded to the npm registry;
cd package
npm publish
```

## Production Deployment
```
DOCKER_BUILDKIT=1 docker build --file Dockerfile --progress=plain --output build .
gcloud storage rm --recursive gs://sbtc-bridge-web/
gcloud storage cp --recursive build/* gs://sbtc-bridge-web/
```
Loading

0 comments on commit c28ab24

Please sign in to comment.