-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from bobanetwork/main
New Release : v0.11.0
- Loading branch information
Showing
205 changed files
with
9,469 additions
and
3,027 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
:clipboard: Add associated issues, tickets, docs URL here. | ||
|
||
closes: | ||
:clipboard: closes: | ||
|
||
## Overview | ||
|
||
Describe what your Pull Request is about in a few sentences. | ||
|
||
## Tasks | ||
|
||
- [ ] No debug console statement added | ||
- [ ] Should use only typescript. | ||
- [ ] Does have unit test for each touched file with 90% coverage | ||
- [ ] Does have an integration test if any UI changes. | ||
|
||
|
||
## Changes | ||
|
||
Describe your changes and implementation choices. More details make PRs easier to review. | ||
Describe your changes and implementation choices | ||
|
||
- Change 1 | ||
- Change 2 | ||
- ... | ||
|
||
## Testing | ||
|
||
Describe how to test your new feature/bug fix and if possible, a step by step guide on how to demo this. | ||
Snapshots for test coverage for changed files. | ||
|
||
|
||
## UI Snaps | ||
|
||
Add screenshots or video if any visuals changes are there so would be helpful for review. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ jobs: | |
- name: Run Yelp's detect-secrets | ||
uses: RobertFischer/[email protected] | ||
- name: Commit back .secrets.baseline (if it was missing) | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "build(detect-secrets): Commit the newly-generated .secrets.baseline file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ coverage | |
*.log | ||
|
||
# gateway | ||
/build | ||
/build | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
Since we've installed @walletconnect/ethereum-provider, | ||
it has led to dependency issues during Jest testing. | ||
To resolve this, we need to mock the entire 'node_modules' itself, | ||
as unit testing focuses solely on our code | ||
sample crash report. | ||
``` | ||
TypeError: Cannot read properties of undefined (reading 'base16') | ||
15 | limitations under the License. | ||
16 | | ||
> 17 | import {EthereumProvider} from '@walletconnect/ethereum-provider' | ||
| ^ | ||
at Object.<anonymous> (node_modules/uint8arrays/cjs/src/util/bases.js:42:21) | ||
at Object.<anonymous> (node_modules/uint8arrays/cjs/src/from-string.js:5:13) | ||
at Object.<anonymous> (node_modules/uint8arrays/cjs/src/index.js:8:18) | ||
at Object.<anonymous> (node_modules/@walletconnect/utils/dist/index.cjs.js:1:324) | ||
at Object.<anonymous> (node_modules/@walletconnect/ethereum-provider/dist/index.cjs.js:1:177) | ||
at Object.<anonymous> (src/services/wallet.service.js:17:1) | ||
at Object.<anonymous> (src/services/networkService.js:86:1) | ||
at Object.<anonymous> (src/components/global/addToMetamask/index.tsx:4:1) | ||
at Object.<anonymous>(src / components / global / index.ts: 1: 1) | ||
``` | ||
*/ | ||
|
||
export const EthereumProvider = jest.fn() | ||
|
||
EthereumProvider.mockImplementation(() => { | ||
return { | ||
on: jest.fn(), | ||
connect: jest.fn(), | ||
enable: jest.fn(), | ||
disconnect: jest.fn(), | ||
} | ||
}) | ||
|
||
export default EthereumProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
nodejs: 18 | ||
commands: | ||
- n 16 | ||
- yarn | ||
|
||
build: | ||
commands: | ||
- REACT_APP_WALLET_VERSION=$(git rev-parse --short HEAD) yarn build:prod | ||
|
||
artifacts: | ||
# include all files required to run the application | ||
files: | ||
- '**/*' | ||
discard-paths: no | ||
base-directory: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ export default defineConfig({ | |
env: { | ||
target_hash: process.env.CYPRESS_TEST_HASH, | ||
}, | ||
includeShadowDom: true, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.