Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Pali Wallet v3.0.0 #641

Merged
merged 203 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
48043c9
feat: initial changes for mv3
lucasgabrielgsp Nov 29, 2023
ad56408
feat: add function to generate manifest file
lucasgabrielgsp Nov 30, 2023
f81a581
feat: implement mv2 and mv3 manifests
lucasgabrielgsp Dec 2, 2023
a6a9d29
feat: inject manifest v2 or v3 in build folder
lucasgabrielgsp Dec 6, 2023
e3768d0
chore: merge changes from develop
lucasgabrielgsp Dec 12, 2023
554c365
feat[wip]: use package with mv3 support
lucasgabrielgsp Dec 14, 2023
78f06ca
feat[wip]: comment code structure to run pali in mv3
lucasgabrielgsp Dec 18, 2023
133b40c
chore[wip]: use mainController inside files to validate if it works
lucasgabrielgsp Jan 16, 2024
e55c6b6
feat[wip]: change structure to access controller methods
lucasgabrielgsp Jan 22, 2024
84ab818
chore: remove changes from manifest
lucasgabrielgsp Jan 23, 2024
b0f8aac
feat[wip]: create function to handle data storage
lucasgabrielgsp Jan 30, 2024
0d8003b
feat[wip]: create function to handle state in service worker side
lucasgabrielgsp Feb 6, 2024
d44a9fe
feat[wip]: update UI with state changes
lucasgabrielgsp Feb 8, 2024
5e16ea0
feat[wip]: use getController from scripts/background and change code …
lucasgabrielgsp Feb 25, 2024
b2ea0aa
feat(importSeed): new import seed UI/UX
GabrielPrediger Mar 5, 2024
8394908
feat(createPass): new UI/UX
GabrielPrediger Mar 5, 2024
c41e883
feat(home): new modals flow
GabrielPrediger Mar 5, 2024
9cfe21a
fix(translate): key name
GabrielPrediger Mar 6, 2024
3d04298
fix(ImportPhrase): warn modal dynamic value
GabrielPrediger Mar 8, 2024
3fb5890
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Mar 8, 2024
4ae19f7
fix(Confirm):icon was the same color at the button
GabrielPrediger Mar 8, 2024
d19440b
chore: merge changes from develop
lucasgabrielgsp Mar 8, 2024
229364e
chore: update pali version
lucasgabrielgsp Mar 8, 2024
b23bcff
fix(ForgetWallet): changed validations on inset seed
GabrielPrediger Mar 8, 2024
dacf8df
chore(ForgetWallet): remove clg
GabrielPrediger Mar 8, 2024
baf2a4f
feat[wip]: improve code structure to inject pali script in browser
lucasgabrielgsp Mar 11, 2024
ed2eee1
style(ScrollBar): changed style
Gabriel-Prediger Mar 26, 2024
f23ca04
style(SeeAllTxLabel): changed style
Gabriel-Prediger Mar 26, 2024
3cf8bc2
style(NetworkMenu): changed style
Gabriel-Prediger Mar 26, 2024
7451212
style(GeneralMenu): changed style
Gabriel-Prediger Mar 26, 2024
8f5a1ec
style(GeneralMenu): changed style
Gabriel-Prediger Mar 26, 2024
6c7fa60
style(ManageNetwork): changed style
Gabriel-Prediger Mar 26, 2024
749dd6c
style(Accounts): new style
Gabriel-Prediger Mar 26, 2024
ef68f7b
style(WalletPhrase): new style
Gabriel-Prediger Mar 26, 2024
29f2c52
style(TrustedWebsites): new style
GabrielPrediger Mar 28, 2024
95b0254
chore: removed clg
GabrielPrediger Mar 28, 2024
fe47ca1
feat[wip]: improve comunication between pali and service worker
lucasgabrielgsp Mar 29, 2024
72d5897
chore: removed unnused imports
GabrielPrediger Apr 1, 2024
6cb5044
chore: removed unnused imports
GabrielPrediger Apr 1, 2024
737fc44
chore: removed unnused imports
GabrielPrediger Apr 1, 2024
e12019d
style(app): improved code
GabrielPrediger Apr 1, 2024
31e60b8
fix(NetWorkList): remove window.close
GabrielPrediger Apr 3, 2024
987bdd7
remove manifest
GabrielPrediger Apr 3, 2024
229ea9f
fix(SwitchNetwork: error on dapps)
GabrielPrediger Apr 4, 2024
0e9d521
fix: avoid adding rpcs with the same chain id
lucaslovato Apr 7, 2024
c6cbb5f
chore: move to constants file
lucaslovato Apr 7, 2024
6b863d5
chore: initialize syscoin main net from a const
lucaslovato Apr 7, 2024
e22b497
chore: remove unused imports
GabrielPrediger Apr 8, 2024
d7d00a4
remove manifest
GabrielPrediger Apr 8, 2024
df18759
fix: add isEdit param and change inverted values
lucasgabrielgsp Apr 8, 2024
ee061e7
chore: change dispatch location to avoid infinite true value
lucasgabrielgsp Apr 9, 2024
785a43d
fix: remove unnecessary .trim() and put submit button inside form
lucasgabrielgsp Apr 9, 2024
59f085d
chore: merge changes from develop
lucasgabrielgsp Apr 9, 2024
8e02522
fix: solve ui bug in account list
lucasgabrielgsp Apr 10, 2024
7a6c13e
chore: merge changes from develop
lucasgabrielgsp Apr 10, 2024
01c532c
chore: merge changes from develop
lucasgabrielgsp Apr 10, 2024
f03bb71
chore: update pali version
lucasgabrielgsp Apr 10, 2024
6e322fb
Merge pull request #560 from syscoin/feat/new-import-wallet-UI-UX
lucasgabrielgsp Apr 10, 2024
9aed724
Merge branch 'develop' into ll-fix-avoid-adding-rpc-w-same-chain
lucasgabrielgsp Apr 10, 2024
ea1f8d2
Merge pull request #570 from syscoin/ll-fix-avoid-adding-rpc-w-same-c…
lucasgabrielgsp Apr 10, 2024
1f4a942
Merge branch 'develop' into fix/confirm-tx-button
lucasgabrielgsp Apr 10, 2024
e515a21
Merge pull request #563 from syscoin/fix/confirm-tx-button
lucasgabrielgsp Apr 10, 2024
b597d30
Merge branch 'develop' into fix/forget-wallet-flow-confirm
lucasgabrielgsp Apr 10, 2024
4eaf198
Merge pull request #564 from syscoin/fix/forget-wallet-flow-confirm
lucasgabrielgsp Apr 10, 2024
d5a2e9c
Merge branch 'develop' into style/ui-review
lucasgabrielgsp Apr 10, 2024
d2be21e
Merge pull request #568 from syscoin/style/ui-review
lucasgabrielgsp Apr 10, 2024
c3f528b
Merge branch 'develop' into fix/error-on-switchchain-modal
lucasgabrielgsp Apr 10, 2024
cafcddc
Merge pull request #569 from syscoin/fix/error-on-switchchain-modal
lucasgabrielgsp Apr 10, 2024
f2d82b6
chore: comment code
lucasgabrielgsp Apr 10, 2024
8fcd2e9
chore: merge changes from develop
lucasgabrielgsp Apr 11, 2024
2708222
fix: malformed explorer
lucaslovato Apr 15, 2024
fffae57
fix: manage network list
lucaslovato Apr 15, 2024
b0d40af
chore: allow edit default networks rpc
lucaslovato Apr 16, 2024
9ca4aaf
fix(SendEth): status icon position
GabrielPrediger Apr 16, 2024
fff80c3
fix(SendEth): status icon position
GabrielPrediger Apr 16, 2024
dce5d92
Merge pull request #574 from syscoin/fix-malformed-explorer-url
lucasgabrielgsp Apr 16, 2024
0cff5ba
Merge branch 'develop' into chore-allow-edit-default-networks-rpcs
lucasgabrielgsp Apr 16, 2024
b8446ba
Merge pull request #576 from syscoin/chore-allow-edit-default-network…
lucasgabrielgsp Apr 16, 2024
2f6af58
Merge branch 'develop' into fix/edit-account-input-style
lucasgabrielgsp Apr 16, 2024
50b81a4
Merge pull request #577 from syscoin/fix/edit-account-input-style
lucasgabrielgsp Apr 16, 2024
a1ea60a
Merge branch 'develop' into fix-manage-network-list
lucasgabrielgsp Apr 16, 2024
8c4e9b8
Merge pull request #575 from syscoin/fix-manage-network-list
lucasgabrielgsp Apr 16, 2024
88cd88a
feat: create structure to keep service worker alive [offscreen]
lucasgabrielgsp Apr 26, 2024
f0276e8
feat: new switch provider UI/UX (#573)
GabrielPrediger May 8, 2024
a4caf69
fix: action zone on header (#579)
GabrielPrediger May 8, 2024
44d7ef9
feat: new page Faucet (#580)
GabrielPrediger May 8, 2024
d8a6e8d
chore: update pali version
lucaslovato May 8, 2024
2668393
fix: show modal wallet provider and style adjustments
GabrielPrediger May 10, 2024
a2f44a9
feat: improve code structure for better interaction with browser
lucasgabrielgsp May 17, 2024
1a5f6dc
chore: increase polling timer for utxo networks
lucaslovato May 22, 2024
975129e
Merge pull request #582 from syscoin/chore-update-pali-version
lucasgabrielgsp May 23, 2024
4619969
Merge branch 'develop' into fix/wallet-provider
lucasgabrielgsp May 23, 2024
714b33a
Merge pull request #583 from syscoin/fix/wallet-provider
lucasgabrielgsp May 23, 2024
40f7b58
Merge branch 'develop' into chore-increase-polling-timer-for-utxo-net…
lucasgabrielgsp May 23, 2024
1c4c8e3
Merge pull request #586 from syscoin/chore-increase-polling-timer-for…
lucasgabrielgsp May 23, 2024
2e5fb8a
chore: merge changes from master
lucasgabrielgsp May 23, 2024
81d1ae4
Merge pull request #587 from syscoin/chore/update-pali-w-master
lucasgabrielgsp May 23, 2024
254808e
chore: merge changes from master
lucasgabrielgsp May 23, 2024
988e710
Merge branch 'develop' into chore/update-pali-w-master
lucasgabrielgsp May 23, 2024
95b7f17
Merge pull request #588 from syscoin/chore/update-pali-w-master
lucasgabrielgsp May 23, 2024
f372bb3
chore: merge changes from develop
lucasgabrielgsp May 28, 2024
61e7ebe
hotfix: implement migration
lucasgabrielgsp Jun 5, 2024
08d8716
Merge pull request #590 from syscoin/hotfix/2.0.19
lucasgabrielgsp Jun 5, 2024
fd6d393
feat: update state handler in pali
lucasgabrielgsp Jun 12, 2024
d70490f
feat[wip]: remove webext-redux and handle chrome storage api in Pali
lucasgabrielgsp Jun 13, 2024
689d9f9
fix: solve bug in pali <-> browser interaction
lucasgabrielgsp Jun 13, 2024
ec4fa58
feat: improve controller instance handling in service worker
lucasgabrielgsp Jun 21, 2024
e82712f
chore: merge changes from develop
lucasgabrielgsp Jun 24, 2024
00ecbcd
fix: use external store
lucasgabrielgsp Jun 24, 2024
3909ef6
chore: remove webextension-polyfill-ts
lucasgabrielgsp Jun 26, 2024
0d352ed
fix[wip]: solve issue related to dapp interaction
lucasgabrielgsp Jun 26, 2024
51d983b
fix[wip]: solve event emit bug [pali <-> browser]
lucasgabrielgsp Jun 27, 2024
d434669
chore: wip - build updates
lucaslovato Jun 27, 2024
a01c220
chore: improve webpack files readability
lucaslovato Jun 28, 2024
05eba98
fix: sync infos between pali <-> serviceWorker
lucasgabrielgsp Jun 28, 2024
ae7ef11
chore: remove unnecessaries console.log
lucasgabrielgsp Jun 30, 2024
f437856
chore: remove unnecessaries console.log
lucasgabrielgsp Jun 30, 2024
d02c9db
revert commit, adjust package
lucaslovato Jul 8, 2024
970bbdb
chore: migrate accounts from mv2 to mv3 state
vieiraricardo Aug 1, 2024
fc307d6
Merge branch 'feat/mv3-migration' into mv3-migration-build-updates
lucaslovato Aug 1, 2024
3648033
Merge branch 'mv3-migration-build-updates' into feat/mv3-account-migr…
lucaslovato Aug 1, 2024
35fff4b
chore: change structure to test migration behavior
lucasgabrielgsp Aug 2, 2024
98fbb84
chore: injects MV2 state
vieiraricardo Aug 2, 2024
dfea9b2
chore: increase main yml node v
lucaslovato Aug 5, 2024
23b67ed
chore: avoid lint errors
lucaslovato Aug 5, 2024
539a46d
Merge branch 'mv3-migration-build-updates' into feat/mv3-account-migr…
lucaslovato Aug 5, 2024
d5435a2
chore: move wallet state migration code into a function
vieiraricardo Aug 6, 2024
86f17a5
fix: solve bugs related to hardwallet connection
lucasgabrielgsp Aug 9, 2024
cd703b8
Merge branch 'feat/mv3-migration' into mv3-migration-build-updates
lucaslovato Aug 9, 2024
88e28b1
chore: initial changes to share background controller state using events
vieiraricardo Aug 13, 2024
4642d0f
chore: remove faucet
lucasgabrielgsp Aug 15, 2024
ab3d727
chore: change getController to controllerEmitter
vieiraricardo Aug 21, 2024
0196fdc
fix: signing messages and dapps connection
vieiraricardo Aug 22, 2024
6f0f67d
feat: add support for trezor in pali mv3
lucasgabrielgsp Aug 22, 2024
2d0fd87
feat: add pathIn param in sys_sign method
lucasgabrielgsp Aug 23, 2024
40b07d1
Merge pull request #611 from syscoin/feat/trezor-mv3
lucasgabrielgsp Aug 26, 2024
78c72a1
chore: update .env.example
lucasgabrielgsp Aug 26, 2024
e80ef50
fix: issues sending transactions
vieiraricardo Aug 27, 2024
4e1f8a7
chore: remove unused vars
vieiraricardo Aug 28, 2024
5500b8d
fix: solve bug in SwitchNetworkUtxoEvm page and fix event emission issue
lucasgabrielgsp Aug 28, 2024
d29f214
chore: increase UTXO polling value
lucasgabrielgsp Aug 29, 2024
ddbfd7e
Merge pull request #612 from syscoin/feat/add-param-sign-method
lucasgabrielgsp Aug 29, 2024
6d1bc9d
Merge pull request #609 from syscoin/feat/background-controller-state…
lucasgabrielgsp Aug 29, 2024
e4e8985
chore: resolve conflicts
lucasgabrielgsp Aug 29, 2024
219cb86
Merge pull request #607 from syscoin/feat/mv3-account-migration
lucasgabrielgsp Aug 29, 2024
d079001
chore: resolve conflicts
lucasgabrielgsp Aug 29, 2024
f2b421b
Merge pull request #594 from syscoin/mv3-migration-build-updates
lucasgabrielgsp Aug 29, 2024
fd8d952
chore: update sysweb3 and pali version
lucasgabrielgsp Aug 29, 2024
2eccc2a
chore: update polling time and pali version
lucasgabrielgsp Aug 29, 2024
cf04bc1
chore: update pali version in package json
lucasgabrielgsp Aug 29, 2024
9b12cef
fix: solve bug on import custom token flow
lucasgabrielgsp Aug 29, 2024
c4666f6
chore: update manifest version
lucasgabrielgsp Aug 30, 2024
3d76d5b
Merge pull request #589 from syscoin/feat/mv3-migration
lucasgabrielgsp Aug 30, 2024
1ab9f7b
feat: add your keys option on general menu
lucasgabrielgsp Sep 3, 2024
f87e826
feat: add action to move tasks on clickup
lucasgabrielgsp Sep 3, 2024
e481d50
Merge branch 'develop' into feat/xprv-page
lucasgabrielgsp Sep 3, 2024
6bbeba1
chore: remove yaml file
lucasgabrielgsp Sep 3, 2024
f6d6337
Merge branch 'develop' into feat/xprv-page
lucasgabrielgsp Sep 3, 2024
4e092c3
feat: create move-clickup-task.yml
lucasgabrielgsp Sep 3, 2024
a027986
Merge branch 'develop' into feat/xprv-page
lucasgabrielgsp Sep 3, 2024
ba30b5d
fix: Bug - 'from' and 'to' showing the same value on utxo
vieiraricardo Sep 4, 2024
a00f425
fix: change endpoint on yml file
lucasgabrielgsp Sep 4, 2024
df8b9e9
Merge branch 'develop' into fix/utxo-details
lucasgabrielgsp Sep 4, 2024
eee32aa
Merge branch 'develop' into feat/xprv-page
lucasgabrielgsp Sep 4, 2024
26da1aa
Merge pull request #615 from syscoin/fix/utxo-details
lucasgabrielgsp Sep 6, 2024
129ee54
Merge branch 'develop' into feat/xprv-page
lucasgabrielgsp Sep 6, 2024
98b2ac9
Merge pull request #614 from syscoin/feat/xprv-page
lucasgabrielgsp Sep 6, 2024
b27e160
fix: Wrong URL construction in UTXO asset
vieiraricardo Sep 6, 2024
d753af7
fix: hide menu when selecting new account
vieiraricardo Sep 9, 2024
d43fc7d
chore: add function to adjust url
vieiraricardo Sep 9, 2024
ffc18f0
chore: rename file
vieiraricardo Sep 9, 2024
bcb2f20
fix: solve tx issue on trezor
lucasgabrielgsp Sep 10, 2024
40b7a4b
chore: update sysweb3-keyring version
lucasgabrielgsp Sep 10, 2024
ea158cf
fix: Imported wallets do not appear in the managed accounts list
vieiraricardo Sep 10, 2024
257d7d8
fix: modal issue when restoring Wallet from locked state
vieiraricardo Sep 10, 2024
1794ded
fix: solve connection issue on ledger
lucasgabrielgsp Sep 10, 2024
e0b505a
chore: update sysweb3 version
lucasgabrielgsp Sep 10, 2024
b0f0da4
chore: add github action for Release
vieiraricardo Sep 11, 2024
56fe6f6
fix: solve bug on max button
lucasgabrielgsp Sep 11, 2024
397a1d6
chore: clean code
lucasgabrielgsp Sep 11, 2024
275a62a
Merge pull request #624 from syscoin/fix/menu-account-selection
lucasgabrielgsp Sep 11, 2024
46e52f0
Merge branch 'develop' into fix/trezor-tx
lucasgabrielgsp Sep 11, 2024
4c4a680
Merge pull request #631 from syscoin/fix/trezor-tx
lucasgabrielgsp Sep 11, 2024
617755b
Merge branch 'develop' into fix/manage-imported-accounts
lucasgabrielgsp Sep 11, 2024
f7e16f1
Merge pull request #632 from syscoin/fix/manage-imported-accounts
lucasgabrielgsp Sep 11, 2024
46805fa
Merge branch 'develop' into fix/modal-restore-wallet
lucasgabrielgsp Sep 11, 2024
b6699f9
Merge pull request #633 from syscoin/fix/modal-restore-wallet
lucasgabrielgsp Sep 11, 2024
d2f5203
Merge branch 'develop' into fix/ledger-connect
lucasgabrielgsp Sep 11, 2024
2d1192c
Merge pull request #634 from syscoin/fix/ledger-connect
lucasgabrielgsp Sep 11, 2024
8ed47e4
Merge branch 'develop' into fix/max-value
lucasgabrielgsp Sep 11, 2024
8b8c1e3
Merge pull request #635 from syscoin/fix/max-value
lucasgabrielgsp Sep 11, 2024
9f1d655
Merge branch 'develop' into fix/wrong-url-utxo-asset
lucasgabrielgsp Sep 11, 2024
00e7a25
Merge pull request #621 from syscoin/fix/wrong-url-utxo-asset
lucasgabrielgsp Sep 11, 2024
e539e78
hotfix: migration mv2 -> mv3
lucasgabrielgsp Sep 11, 2024
7794e4a
chore: update release action (#636)
lucaslovato Sep 11, 2024
4a7338a
fix: Error importing tokens
vieiraricardo Sep 13, 2024
93e155e
fix: lint warnings
vieiraricardo Sep 16, 2024
4e53719
Merge pull request #637 from syscoin/fix/import-token-error
lucasgabrielgsp Sep 16, 2024
e1d7298
feat: add migrationController on Pali
lucasgabrielgsp Sep 16, 2024
72cb457
chore: update minimun_chrome_version value
lucasgabrielgsp Sep 18, 2024
0fddb8a
chore: use package version to trigger migration
lucasgabrielgsp Sep 26, 2024
9ac6eb6
Merge branch 'develop' into feat/add-migration-controller
lucasgabrielgsp Sep 26, 2024
daf51eb
Merge pull request #638 from syscoin/feat/add-migration-controller
lucasgabrielgsp Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# MANIFEST_TYPE values: MV2 or MV3
MANIFEST_TYPE=MV3
NODE_ENV=development
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
check-latest: true
- run: yarn install
- run: yarn test-all
Expand All @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
check-latest: true
- run: yarn install
- run: |
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/move-clickup-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Move ClickUp Task to CODE REVIEW and Add PR Link as Comment

on:
pull_request:
types: [opened, closed]

jobs:
update_task_status:
runs-on: ubuntu-latest
steps:
- name: Extract ClickUp Task ID from PR Title
id: extract_task_id
run: echo "::set-output name=task_id::$(echo ${{ github.event.pull_request.title }} | grep -o '[a-zA-Z0-9]\{9\}')"

- name: Move Task to CODE REVIEW
if: github.event.action == 'opened' && steps.extract_task_id.outputs.task_id != ''
run: |
curl -X PUT "https://api.clickup.com/api/v2/task/${{ steps.extract_task_id.outputs.task_id }}" \
-H "Authorization: ${{ secrets.CLICKUP_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"status": "CODE REVIEW"}'

- name: Add PR Link as Comment
if: github.event.action == 'opened' && steps.extract_task_id.outputs.task_id != ''
run: |
curl -X POST "https://api.clickup.com/api/v2/task/${{ steps.extract_task_id.outputs.task_id }}/comment" \
-H "Authorization: ${{ secrets.CLICKUP_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"comment_text": "PR: ${{ github.event.pull_request.html_url }}", "notify_all": false }'

- name: Move Task to READY FOR PUBLISHING
if: github.event.action == 'closed' && github.event.pull_request.merged == true && steps.extract_task_id.outputs.task_id != ''
run: |
curl -X PUT "https://api.clickup.com/api/v2/task/${{ steps.extract_task_id.outputs.task_id }}" \
-H "Authorization: ${{ secrets.CLICKUP_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"status": "READY FOR PUBLISHING"}'
62 changes: 62 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Release

on:
push:
branches:
- pre-release
- master
- develop

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: yarn install

- name: Set TARGET_BROWSER environment variable
run: echo "TARGET_BROWSER=chrome" >> $GITHUB_ENV

- name: Build project for Chrome
run: yarn run build:chrome

- name: List files in build directory
run: ls -l ./build

- name: Set asset name
id: set_asset_name
run: echo "ASSET_NAME=$(ls build | grep 'pali-wallet-chrome' | grep '.zip')" >> $GITHUB_ENV

- name: Get package version
id: get_version
run: echo "PACKAGE_VERSION=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV

- name: Create a draft release
id: create_release
uses: actions/create-release@v1
with:
tag_name: v${{ github.event.repository.name }}-${{ github.ref_name }}-release
release_name: Release ${{ github.event.repository.name }} for ${{ github.ref_name }} (v${{ env.PACKAGE_VERSION }})
draft: true
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload zip to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/${{ env.ASSET_NAME }}
asset_name: ${{ env.ASSET_NAME }}
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65 changes: 30 additions & 35 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "Pali Wallet",
"version": "2.0.18",
"version": "3.0.0",
"icons": {
"16": "assets/icons/favicon-16.png",
"32": "assets/icons/favicon-32.png",
Expand All @@ -11,48 +11,38 @@
"description": "A Non-Custodial Crypto Wallet",
"short_name": "pali",
"permissions": [
"http://*/*",
"https://*/*",
"*://connect.trezor.io/9/*",
"tabs",
"storage",
"activeTab",
"*://*.eth/",
"clipboardWrite",
"unlimitedStorage",
"http://localhost:8545/",
"offscreen",
"scripting",
"webRequest"
],
"content_security_policy": "script-src 'self'; object-src 'self'",
"__chrome|firefox__author": "pollum labs",
"__opera__developer": {
"name": "pollum labs"
},
"__firefox__applications": {
"gecko": {
"id": "{b3e96b5f-b5bf-8b48-846b-52f430365e80}"
}
"host_permissions": [
"http://*/*",
"https://*/*",
"*://connect.trezor.io/9/*",
"*://*.eth/",
"http://localhost:8545/"
],
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'"
},
"__chrome__minimum_chrome_version": "49",
"__opera__minimum_opera_version": "36",
"browser_action": {
"author": "pollum labs",
"minimum_chrome_version": "88",
"action": {
"default_popup": "app.html",
"default_icon": {
"16": "assets/icons/favicon-16.png",
"32": "assets/icons/favicon-32.png",
"48": "assets/icons/favicon-48.png",
"128": "assets/icons/favicon-128.png"
},
"default_title": "Pali Wallet",
"__chrome|opera__chrome_style": false,
"__firefox__browser_style": false
"default_title": "Pali Wallet"
},
"background": {
"scripts": [
"js/webextension.bundle.js",
"js/background.bundle.js"
],
"__chrome|opera__persistent": true
"service_worker": "js/background.bundle.js"
},
"content_scripts": [
{
Expand All @@ -64,7 +54,6 @@
],
"run_at": "document_start",
"js": [
"js/webextension.bundle.js",
"js/contentScript.bundle.js"
]
},
Expand All @@ -74,21 +63,27 @@
"https://localhost:8088/*"
],
"js": [
"js/webextension.bundle.js",
"js/trezorScript.bundle.js"
]
}
],
"web_accessible_resources": [
"js/inpage.bundle.js",
"js/handleWindowProperties.bundle.js",
"js/pali.bundle.js"
{
"resources": [
"js/inpage.bundle.js",
"js/handleWindowProperties.bundle.js",
"js/pali.bundle.js"
],
"matches": [
"<all_urls>"
]
}
],
"commands": {
"_execute_browser_action": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Shift+P"
}
}
}
}
}
22 changes: 15 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paliwallet",
"version": "2.0.18",
"version": "3.0.0",
"description": "A Non-Custodial Crypto Wallet",
"private": true,
"repository": {
Expand All @@ -13,11 +13,12 @@
"yarn": ">= 1.0.0"
},
"scripts": {
"dev:chrome": "jq 'del(.environment) | .permissions = if .permissions then (if (.permissions | index(\"webRequest\")) == null then .permissions + [\"webRequest\"] else .permissions end) else [\"webRequest\"] end' manifest.json > modified_manifest.json && mv modified_manifest.json manifest.json && cross-env NODE_ENV=development cross-env TARGET_BROWSER=chrome webpack --watch",
"generate-manifest": "node ./source/config/generateManifest.js",
"dev:chrome": "yarn generate-manifest && cross-env NODE_ENV=development cross-env TARGET_BROWSER=chrome webpack --config source/config/webpack.dev.js --watch",
"build:chrome": "yarn generate-manifest && cross-env NODE_ENV=production cross-env TARGET_BROWSER=chrome webpack --config source/config/webpack.prod.js",
"dev-watch-requests:chrome": "jq '.permissions = if .permissions then (if (.permissions | index(\"webRequest\")) == null then .permissions + [\"webRequest\"] else .permissions end) else [\"webRequest\"] end | .environment = {\"WATCH_REQUESTS\": \"active\"}' manifest.json > modified_manifest.json && mv modified_manifest.json manifest.json && cross-env NODE_ENV=development cross-env TARGET_BROWSER=chrome webpack --watch",
"dev:firefox": "jq '.permissions = if .permissions then (if (.permissions | index(\"webRequest\")) == null then .permissions + [\"webRequest\"] else .permissions end) else [\"webRequest\"] end' manifest.json > modified_manifest.json && mv modified_manifest.json manifest.json && cross-env NODE_ENV=development cross-env TARGET_BROWSER=firefox webpack --watch",
"dev:opera": "jq '.permissions = if .permissions then (if (.permissions | index(\"webRequest\")) == null then .permissions + [\"webRequest\"] else .permissions end) else [\"webRequest\"] end' manifest.json > modified_manifest.json && mv modified_manifest.json manifest.json && cross-env NODE_ENV=development cross-env TARGET_BROWSER=opera webpack --watch",
"build:chrome": "jq '.permissions = if .permissions then (.permissions | map(select(. != \"webRequest\"))) else .permissions end' manifest.json > modified_manifest.json && mv modified_manifest.json manifest.json && cross-env NODE_ENV=production cross-env TARGET_BROWSER=chrome webpack",
"build:firefox": "jq '.permissions = if .permissions then (.permissions | map(select(. != \"webRequest\"))) else .permissions end' manifest.json > modified_manifest.json && mv modified_manifest.json manifest.json && cross-env NODE_ENV=production cross-env TARGET_BROWSER=firefox webpack",
"build:opera": "jq '.permissions = if .permissions then (.permissions | map(select(. != \"webRequest\"))) else .permissions end' manifest.json > modified_manifest.json && mv modified_manifest.json manifest.json && cross-env NODE_ENV=production cross-env TARGET_BROWSER=opera webpack",
"build": "yarn run build:chrome && yarn run build:firefox && yarn run build:opera",
Expand Down Expand Up @@ -48,12 +49,13 @@
"@babel/runtime": "^7.21.5",
"@headlessui/react": "^1.6.0",
"@heroicons/react": "^1.0.5",
"@pollum-io/sysweb3-keyring": "^1.0.479",
"@pollum-io/sysweb3-core": "^1.0.27",
"@pollum-io/sysweb3-keyring": "^1.0.482",
"@pollum-io/sysweb3-network": "^1.0.95",
"@pollum-io/sysweb3-utils": "^1.1.232",
"@reduxjs/toolkit": "^1.4.0",
"@tippyjs/react": "^4.2.6",
"@types/chrome": "^0.0.235",
"@types/chrome": "^0.0.268",
"@types/copy-paste": "^1.1.30",
"@types/crypto-js": "^4.0.2",
"@types/jest": "^29.5.1",
Expand All @@ -78,6 +80,7 @@
"currency-symbol-map": "^5.0.1",
"currency.js": "^2.0.4",
"date-fns": "^2.16.1",
"dotenv": "^16.3.1",
"emoji-log": "^1.0.2",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.23.3",
Expand All @@ -87,6 +90,7 @@
"ethers-eip712": "^0.2.0",
"fast-deep-equal": "^3.1.3",
"fast-safe-stringify": "^2.1.1",
"framer-motion": "6.5.1",
"i18next": "^23.4.4",
"i18next-http-backend": "^2.2.1",
"jdenticon": "^3.1.1",
Expand All @@ -108,7 +112,9 @@
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-persist-webextension-storage": "^1.0.2",
"redux-thunk": "^3.1.0",
"redux-watch": "^1.2.0",
"reduxed-chrome-storage": "^3.0.10",
"sass": "^1.62.1",
"selenium-webdriver": "^4.1.1",
"syscoinjs-lib": "1.0.218",
Expand Down Expand Up @@ -165,15 +171,17 @@
"ts-jest": "^27.1.3",
"typescript": "4.1.5",
"webpack": "^5.82.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.0.2",
"webpack-dev-server": "^4.13.3",
"webpack-merge": "^5.10.0",
"wext-manifest-loader": "^3.0.0",
"wext-manifest-webpack-plugin": "^1.2.1"
"wext-manifest-webpack-plugin": "^1.4.1"
},
"main": "index.js",
"bugs": {
"url": "https://github.com/syscoin/pali_wallet/issues"
},
"homepage": "https://github.com/syscoin/pali_wallet#readme",
"author": "pollum labs"
}
}
1 change: 1 addition & 0 deletions palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ module.exports = {
pink200: '#FF3E91',
blue: '#4D76B8',
blue100: '#C9DEFF',
blueAlpha: '#476DAA',
blue200: '#4CA1CF',
blue400: '#4d76b8',
blue500: '#1E365C',
Expand Down
21 changes: 0 additions & 21 deletions patches/webextension-polyfill+0.8.0.patch

This file was deleted.

This file was deleted.

Loading
Loading