Skip to content

Commit fc70c4f

Browse files
authored
Merge pull request #79 from ChainSafe/irubido/revertAddChainsafeScopeBranch
fix: add snap logo to npm files, CD to deploy web wallet
2 parents d0c9e36 + 8b68e53 commit fc70c4f

File tree

8 files changed

+1446
-1486
lines changed

8 files changed

+1446
-1486
lines changed

.github/workflows/deploy-demo.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Web Wallet demo to Netlify
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ['main']
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install Just
17+
uses: extractions/setup-just@v2
18+
19+
- name: install wasm-pack
20+
uses: jetli/wasm-pack-action@v0.4.0
21+
with:
22+
version: latest
23+
24+
- name: build pkg
25+
run: just build
26+
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: lts/*
30+
- run: corepack enable
31+
32+
- name: Install dependencies
33+
run: yarn install --immutable
34+
35+
- name: Build
36+
run: yarn web-wallet:build
37+
38+
- name: Deploy to Netlify
39+
uses: nwtgck/actions-netlify@v3.0
40+
with:
41+
publish-dir: './packages/web-wallet/dist'
42+
production-branch: main
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
deploy-message: "Deploy from GitHub Actions"
45+
enable-pull-request-comment: false
46+
enable-commit-comment: true
47+
overwrites-pull-request-comment: true
48+
env:
49+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
50+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
51+
timeout-minutes: 1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ dist
2121
packages/e2e-tests/dist/*
2222
!/packages/e2e-tests/dist/serve.json
2323

24-
!/packages/web-wallet/dist/_headers
24+

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ yarn dev
110110

111111
### Testing
112112

113+
113114
## Known Issues
114115

116+
Web Wallet may have trouble wasm instantiating. Please refresh the app in that case.
117+
115118
## Security Warnings
116119

117120
These libraries are currently under development, have received no reviews or audit, and come with no guarantees whatsoever.
@@ -130,4 +133,4 @@ at your option.
130133
Unless you explicitly state otherwise, any contribution intentionally
131134
submitted for inclusion in the work by you, as defined in the Apache-2.0
132135
license, shall be dual licensed as above, without any additional terms or
133-
conditions.
136+
conditions.
File renamed without changes.

packages/snap/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "@chainsafe/webzjs-zcash-snap",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Zcash Metmamask Snap that utilizes WebZjs.",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/ChainSafe/WebZjs/tree/main/packages/snap"
7+
"url": "https://github.com/ChainSafe/WebZjs.git"
88
},
99
"license": "(MIT-0 OR Apache-2.0)",
1010
"main": "./dist/bundle.js",
1111
"files": [
1212
"dist/",
13+
"images/logo.svg",
1314
"snap.manifest.json"
1415
],
1516
"scripts": {

packages/snap/snap.manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"version": "0.1.0",
2+
"version": "0.1.1",
33
"description": "WebZjs Snap for demo wallet",
44
"proposedName": "WebZjs Snap",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/ChainSafe/WebZjs/tree/main/packages/snap"
7+
"url": "https://github.com/ChainSafe/WebZjs.git"
88
},
99
"source": {
10-
"shasum": "PMmFAEa2sAfRl+MLgISIiQiGu18ebgtJti3N31i1mng=",
10+
"shasum": "gjWQCyynhkKtUwZ5PUNQq9zfnJRqy0Iwwb7G4hSLVic=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
14-
"iconPath": "images/zcash.svg",
14+
"iconPath": "images/logo.svg",
1515
"packageName": "@chainsafe/webzjs-zcash-snap",
1616
"registry": "https://registry.npmjs.org/"
1717
}
@@ -31,6 +31,6 @@
3131
],
3232
"snap_manageState": {}
3333
},
34-
"platformVersion": "6.22.0",
34+
"platformVersion": "6.17.1",
3535
"manifestVersion": "0.1"
3636
}

packages/web-wallet/dist/_headers

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)