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

Dev #5

Merged
merged 111 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
7e00707
feat(tauri): migrate to node-gui-x repo
waytothevenus Nov 28, 2024
161636f
fix(frontend): fix theme issue
waytothevenus Nov 28, 2024
d40a59d
fix(backend): migrate backend to use tokio channel
waytothevenus Dec 2, 2024
d33b435
fix(frontend): migrate frontend for migrated backend
waytothevenus Dec 4, 2024
b17d917
fix(frontend): remove unnecessary files
waytothevenus Dec 4, 2024
c35b65b
fix(frontend): fix issue in console page
waytothevenus Dec 4, 2024
eddbca3
fix(backend): migrate to use backend crate
waytothevenus Dec 6, 2024
4a50f35
fix(backend): migrate to use backend crates
waytothevenus Dec 6, 2024
78e62c6
fix(backend): remove unnecessary dependencies
waytothevenus Dec 6, 2024
4438667
fix(frontend): fix issue related to data type of wallet_id
waytothevenus Dec 10, 2024
c0bc16b
fix(tauri): modify backend and frontend for modification of Transacti…
waytothevenus Dec 11, 2024
06bfd59
fix(frontend): modify frontend for modification of transactionInfo
waytothevenus Dec 12, 2024
47078b3
fix(frontend): fix issue in submitting transaction
waytothevenus Dec 12, 2024
ffb22d9
fix(backend): format backend code again
waytothevenus Dec 12, 2024
af49c52
fix(frontend): modify unsubscribe logic
waytothevenus Dec 13, 2024
371ce33
fix(frontend): change icon
waytothevenus Dec 14, 2024
29f8d65
fix(tauri): add balance, transaction, staking balance, decomission ba…
waytothevenus Dec 17, 2024
23d3327
fix(frontend): modify staking balance and delegation balance handling…
waytothevenus Dec 17, 2024
3c559fb
fix(backend): migrate backend to return normal address
waytothevenus Dec 18, 2024
e47587b
fix(frontend): modify confirm transaction modal
waytothevenus Dec 19, 2024
8dea56e
fix(fronted): fix issues in handling transaction data
waytothevenus Dec 19, 2024
1f22936
fix(tauri): remove unnecessary comments
waytothevenus Dec 20, 2024
61c7ee6
fix(frontend): fix issue in chainInfo event listener
waytothevenus Dec 20, 2024
ca244d3
fix(frontend): fix loading page problem
waytothevenus Dec 23, 2024
4b33b8b
fix(frontend): fix issue in confirming transaction
waytothevenus Dec 23, 2024
08f73ec
fix(backend): migrate from RwLock to Mutex
waytothevenus Dec 23, 2024
32d280b
fix(frontend): fix issue in adding addres
waytothevenus Dec 24, 2024
156f249
fix(backend): modify check script
waytothevenus Dec 24, 2024
76da532
fix(backend): change cargo dependency
waytothevenus Dec 24, 2024
4bcca0e
fix(frontend): fix conflict in resigning
waytothevenus Jan 16, 2025
dd76ca3
fix(frontend): fix issue in creating new account
waytothevenus Dec 24, 2024
f5d1870
fix(frontend): fix conflict in resigning
waytothevenus Jan 16, 2025
a259653
fix(CI/CD): modify publish pipeline
waytothevenus Dec 24, 2024
4079823
fix(CI/CD): fix issue in publish pipeline
waytothevenus Dec 24, 2024
3d4eeea
fix(backend): fix config for target os
waytothevenus Dec 25, 2024
a3d1a6b
fix(backend): removed unnecessary dependency
waytothevenus Dec 26, 2024
b1aac7d
fix(CI/CD): modify CI/CD pipeline
waytothevenus Dec 26, 2024
442bb0b
fix(frontend): fix issue related to loading messages
waytothevenus Dec 27, 2024
5ae2f82
fix(tauri): remove unnecessary temp files
waytothevenus Dec 27, 2024
b5e2657
chore(frontend): fix issue in display of balance
waytothevenus Dec 28, 2024
893a58f
fix(tauri): fix ui issues
waytothevenus Dec 27, 2024
e2a8cb8
fix(frontend): fix conflict in resigning
waytothevenus Jan 16, 2025
60b8df0
fix(frontend): fix conflict in resigning
waytothevenus Jan 16, 2025
0117edb
fix(frontend): fix issue in wallet encryption
waytothevenus Dec 30, 2024
b80906c
fix(frontend): fix console panel to display commands also
waytothevenus Dec 30, 2024
aee32e6
fix(frontend): chore: modify account update logic
waytothevenus Dec 30, 2024
8c68dec
fix(frontend): fix conflict in resigning
waytothevenus Jan 16, 2025
76f0501
fix(frontend): fix issue in closing wallet
waytothevenus Jan 3, 2025
09973f7
chore(frontend): fix issue in chain state event listener
waytothevenus Jan 3, 2025
697bc3d
chore(frontend): fix issue in event listener
waytothevenus Jan 3, 2025
700d29d
chore(frontend): fix issue in event listener
waytothevenus Jan 3, 2025
ada84dd
fix(frontend): fix issue in event listener
waytothevenus Jan 3, 2025
a01b096
fix(frontend): fix issue in displaying transaction list and address
waytothevenus Jan 3, 2025
223b261
fix(frontend): fix issue in switching wallets
waytothevenus Jan 4, 2025
14584bc
fix(frontend): fix issue in transaction list updating
waytothevenus Jan 6, 2025
8a651a2
chore(frontend): test transaction list update after receiving event
waytothevenus Jan 6, 2025
99b9159
chore(frontend): test transaction list update after receiving event
waytothevenus Jan 6, 2025
65dbef4
fix(frontend): fix issue in transaction list update
waytothevenus Jan 6, 2025
f706856
fix(frontend): fix spell errors
waytothevenus Jan 6, 2025
25a85c8
fix(frontend): fix conflict in resigning
waytothevenus Jan 16, 2025
5994e61
fix(frontend): fix conflict in resigning
waytothevenus Jan 16, 2025
a76dd2f
fix(frontend): fix to display summary tab after closing wallet
waytothevenus Jan 13, 2025
bc85225
fix(frontend): change time format in transaction page
waytothevenus Jan 13, 2025
7414e36
fix(frontend): fix issue in transaction list listener
waytothevenus Jan 13, 2025
3ea4763
feat(frontend): add getmaturityPeriod function
hcrypto7 Jan 14, 2025
124ba7e
fix(frontend): remove unnecessary comments in init page file
hcrypto7 Jan 14, 2025
fe364c1
fix(CI/CD): fix issue in publish pipeline
waytothevenus Dec 24, 2024
f72277a
fix(tauri): remove unnecessary temp files
waytothevenus Dec 27, 2024
1d5a9be
fix(frontend): fix issue in wallet encryption
waytothevenus Dec 30, 2024
6a0903d
fix(frontend): fix issue in closing wallet
waytothevenus Jan 3, 2025
37fec9b
chore(frontend): fix issue in chain state event listener
waytothevenus Jan 3, 2025
537b0eb
chore(frontend): fix issue in event listener
waytothevenus Jan 3, 2025
48ce33c
fix(frontend): fix issue in event listener
waytothevenus Jan 3, 2025
bd036d6
fix(frontend): fix issue in displaying transaction list and address
waytothevenus Jan 3, 2025
462431c
fix(frontend): fix issue in switching wallets
waytothevenus Jan 4, 2025
7aa86a4
fix(frontend): fix issue in transaction list updating
waytothevenus Jan 6, 2025
ae8a31c
chore(frontend): test transaction list update after receiving event
waytothevenus Jan 6, 2025
b4d9298
chore(frontend): test transaction list update after receiving event
waytothevenus Jan 6, 2025
20994a2
fix(frontend): fix issue in transaction list update
waytothevenus Jan 6, 2025
c732eb5
fix(frontend): fix spell errors
waytothevenus Jan 6, 2025
d02e10c
fix(frontend): fix to display summary tab after closing wallet
waytothevenus Jan 13, 2025
abd092c
fix(frontend): fix issue in transaction list listener
waytothevenus Jan 13, 2025
b913d19
fix(frontend): remove unnecessary comments in init page file
hcrypto7 Jan 14, 2025
a173e6b
fix(tauri): add walletbestblockevent listener and progress bar
hcrypto7 Jan 14, 2025
dc694c8
fix(tauri): fix issues in rebasing
waytothevenus Jan 17, 2025
3d98752
fix(frontend): add license to frontend codes
waytothevenus Jan 17, 2025
7e57ac9
fix(tauri): modify license version
waytothevenus Jan 17, 2025
27586d4
fix(tauri): add license file
waytothevenus Jan 17, 2025
ffa7d66
fix(frontend): fix incorrect type name
waytothevenus Jan 17, 2025
0e6b394
fix(backend): fix license content
waytothevenus Jan 17, 2025
de1ca08
fix(frontend): add icon files
waytothevenus Jan 21, 2025
e006265
fix(frontend): modify webpack config
waytothevenus Jan 21, 2025
00ed136
fix(frotend): remove fixed decimal
waytothevenus Jan 21, 2025
d9b0784
fix(frontennd): remove unnecessary utils functions
waytothevenus Jan 22, 2025
e4d6541
fox(frontend): fix issues in type definition
waytothevenus Jan 22, 2025
4090fc1
fix(frontend): fix issues related to decimals
waytothevenus Jan 22, 2025
3750630
fix(frontend): add transaction types definition
waytothevenus Jan 22, 2025
bcef743
fix(tauri): remove serialized_tx and use transaction_summary
waytothevenus Jan 22, 2025
27e1588
fix(CI/CD): modify Ci/CD pipeline
waytothevenus Jan 22, 2025
dc055b6
feat(CI/CD): add python-version-extractor python script
waytothevenus Jan 22, 2025
1124f30
fix(CI/CD): fix rust-version-checker script
waytothevenus Jan 22, 2025
5e9e3b2
feat(CI/CD): add python-version-extractor python script
waytothevenus Jan 22, 2025
b3df11c
fix(CI/CD): modify CI/CD pipeline for rust version check
waytothevenus Jan 22, 2025
456882b
fix(CI/CD): modify CI/CD pipeline to fix permission error in do_check…
waytothevenus Jan 22, 2025
689154e
fix(CI/CD): modify CI/CD pipeline
waytothevenus Jan 22, 2025
b8980a9
fix(CI/CD): modify CI/CD pipeline
waytothevenus Jan 22, 2025
05637f1
fix(CI/CD): modify CI/CD pipeline
waytothevenus Jan 22, 2025
d402542
fix(CI/CD): modify CI/CD pipeline
waytothevenus Jan 22, 2025
751dcbb
fix(CI/CD): add dependencies
waytothevenus Jan 22, 2025
50ec676
fix(CI/CD): modify CI/CD pipeline
waytothevenus Jan 22, 2025
a1b76e4
fix(CI/CD): modify CI/CD pipeline
waytothevenus Jan 22, 2025
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
128 changes: 128 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: build

on:
push:
branches:
- "**" # target all branches
pull_request:
branches:
- master

env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
RUST_BACKTRACE: full

jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install python toml package
run: python3 -m pip install toml
- name: Install rust
uses: dtolnay/rust-toolchain@stable
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install Tauri dependencies
run: npm install -g yarn && yarn global add @tauri-apps/cli
- name: Install Frontend dependencies
run: yarn install
- name: Build
run: yarn tauri build
- name: Run tests
run: cd src-tauri && cargo test --release --workspace
- name: Run doc tests
run: cd src-tauri && cargo test --release --doc
- name: Run mixed_sighash_types test
run: cd src-tauri && cargo test --release mixed_sighash_types
- name: Run test_4opc_sequences test
run: cd src-tauri && cargo test --release test_4opc_sequences -- --ignored
- uses: actions/upload-artifact@v4
if: failure()
with:
name: windows-functional-test-artifacts
path: src-tauri/target/tmp

build_ubuntu:
env:
ML_CONTAINERIZED_TESTS: 1
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Update local dependency repositories
run: sudo apt-get update
- name: Install dependencies
run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml podman
- name: Install rust deps
run: sudo apt-get install -yqq pkg-config libssl-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install rust
uses: dtolnay/rust-toolchain@stable
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install Tauri dependencies
run: npm install -g yarn && yarn global add @tauri-apps/cli
- name: Install Frontend dependencies
run: yarn install
- name: Build
run: yarn tauri build
- name: Run tests
run: cd src-tauri && cargo test --release --workspace
- name: Run doc tests
run: cd src-tauri && cargo test --release --doc
- name: Run mixed_sighash_types test
run: cd src-tauri && cargo test --release mixed_sighash_types
- name: Run test_4opc_sequences test
run: cd src-tauri && cargo test --release test_4opc_sequences
- uses: actions/upload-artifact@v4
if: failure()
with:
name: ubuntu-functional-test-artifacts
path: src-tauri/target/tmp

build_macos:
runs-on: macos-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install python toml package
run: python3 -m pip install toml --break-system-packages --user
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-apple-darwin, x86_64-apple-darwin"
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install Tauri dependencies
run: npm install -g yarn && yarn global add @tauri-apps/cli
- name: Install Frontend dependencies
run: yarn install
- name: Build
run: yarn tauri build
- name: Run tests
run: cd src-tauri && cargo test --release --workspace
- name: Run doc tests
run: cd src-tauri && cargo test --release --doc
- name: Run mixed_sighash_types test
run: cd src-tauri && cargo test --release mixed_sighash_types
- name: Run test_4opc_sequences test
run: cd src-tauri && cargo test --release test_4opc_sequences
- uses: actions/upload-artifact@v4
if: failure()
with:
name: macos-functional-test-artifacts
path: src-tauri/target/tmp
90 changes: 90 additions & 0 deletions .github/workflows/static_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Static code checks

on:
push:
branches:
- "**" # target all branches
pull_request:
branches:
- master

env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
RUST_BACKTRACE: full

jobs:
static_checks_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Update local dependency repositories
run: sudo apt-get update
- name: Install dependencies
run: sudo apt-get install -yqq build-essential python3 python3-toml podman pkg-config libssl-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install rust clippy
run: rustup component add clippy
- name: Install cargo-deny
run: cargo install cargo-deny --locked
- name: Make do_checks.sh executable
run: chmod +x ./src-tauri/do_checks.sh
- name: Run checks
run: cd src-tauri && ./do_checks.sh

static_checks_windows:
runs-on: windows-latest
steps:
# This prevents git from changing line-endings to crlf, which messes cargo fmt checks
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install python toml package
run: python3 -m pip install toml
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install rust clippy
run: rustup component add clippy
- name: Install cargo-deny
run: cargo install cargo-deny --locked
- name: Make do_checks.sh executable
run: chmod +x ./src-tauri/do_checks.sh
- name: Run checks
shell: bash
run: cd src-tauri && ./do_checks.sh

static_checks_macos:
runs-on: macos-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install python toml package
run: python3 -m pip install toml --break-system-packages --user
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-apple-darwin, x86_64-apple-darwin"
- name: Install rust clippy
run: rustup component add clippy
- name: Install cargo-deny
run: cargo install cargo-deny --locked
- name: Make do_checks.sh executable
run: chmod +x ./src-tauri/do_checks.sh
- name: Run checks
run: cd src-tauri && ./do_checks.sh
61 changes: 46 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,52 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

**/target/
# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
.DS_Store

# Intellij IDEA
.idea/
*.iml
/customSpec.json

# VSCode
.vscode/

#exclude python env
env/

node_modules/

dist/

**/gen/schemas/

#exclude env
.env

#package lock file
yarn.lock

# Test Python cache
test/**/__pycache__

# Files generated for the testing system
test/config.ini

# The cache for docker container dependency
.cargo/*

# But do not ignore the cargo.toml file
!.cargo/config.toml

# The cache for chain data in container
.local

# direnv cache
.direnv

# Python compiled files
*.pyc

# RustRover
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

14 changes: 14 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/assets/images/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<script type="module" crossorigin src="/assets/index-C4uupjRR.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-De4OfIIt.css">
</head>
<body>
<div id="root"></div>
</body>
</html>
Expand Down
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/assets/images/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
41 changes: 41 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "mintlayer",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri"
},
"dependencies": {
"@scure/bip39": "^1.4.0",
"@tauri-apps/api": "^2.0.3",
"@tauri-apps/plugin-dialog": "~2",
"@tauri-apps/plugin-process": "~2",
"@types/lodash": "^4.17.13",
"@types/node": "^22.9.1",
"flowbite-react": "^0.10.2",
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.26.2",
"react-toastify": "9.1.3"
},
"devDependencies": {
"@tauri-apps/cli": "^2.1.0",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"typescript": "^5.2.2",
"vite": "^5.4.8"
},
"browser": {
"crypto": false,
"stream": false
}
}
15 changes: 15 additions & 0 deletions permissions/default.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[default]
description = "Default permissions for the plugin"
permissions = ["core:default",
"core:path:default",
"core:event:default",
"core:window:default",
"core:window:allow-set-title",
"core:window:allow-set-position",
"core:app:default",
"core:menu:default",
"core:resources:default",
"core:webview:default",
"fs:default",
"dialog:allow-save",
"dialog"default"]
6 changes: 6 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
}
Loading