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

[WIP] Ergo Wallet v0.2 based on Tauri #49

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5d4f2be
first run under tauri shell
gagarin55 Oct 26, 2023
61658ad
migation to tauri v2
gagarin55 Nov 1, 2023
af08b3c
fixed address generation
gagarin55 Nov 2, 2023
2b75da5
fixed tx creation on tauri side
gagarin55 Nov 2, 2023
b1a4da7
android support
gagarin55 Nov 3, 2023
25b58cb
signing and sending tx
gagarin55 Nov 6, 2023
45a9dbe
mainnet/testnet switch from command line arg
gagarin55 Nov 6, 2023
7048680
handle app events
gagarin55 Nov 7, 2023
d445d8b
migrate to react-router
gagarin55 Nov 7, 2023
be1418c
app settings fixed
gagarin55 Nov 7, 2023
8a699b0
config storybook with mui
gagarin55 Nov 8, 2023
dfc4442
fix tx processing bug
gagarin55 Nov 27, 2023
ca23c7d
storybook added
gagarin55 Dec 22, 2023
484bc04
yarn removed, fuck you yarn devs
gagarin55 Dec 22, 2023
bb3cda4
set window title with application version from config
gagarin55 Dec 22, 2023
8bcc1c4
storybook's stories migrated according latest version
gagarin55 Dec 24, 2023
04b6dee
tailwindcss added
gagarin55 Dec 25, 2023
0d945c0
package-lock.json
gagarin55 Dec 26, 2023
afe5ec7
disable tests for tauri build
gagarin55 Dec 26, 2023
fc5270c
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
2743219
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
5c128ac
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
f279c74
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
cdc057c
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
282aa2e
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
94112c8
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
eb07f8d
github actions: install tauri deps for linux
gagarin55 Dec 26, 2023
d379016
github actions: using tauri-actions
gagarin55 Dec 26, 2023
ad6adb5
github actions: using tauri-actions
gagarin55 Dec 26, 2023
7ee24f2
github actions: using tauri-actions
gagarin55 Dec 26, 2023
cf29aea
github actions: new action for rust install
gagarin55 Dec 27, 2023
1cc6b97
github actions: fail-fast false
gagarin55 Dec 27, 2023
f0c8792
minor fixes
gagarin55 Dec 27, 2023
3e426a5
clear target in .cargo/config.toml
gagarin55 Dec 29, 2023
49362f5
limit tauri bundle types
gagarin55 Dec 29, 2023
aaac407
Tauri upgraded to v2-RC
gagarin55 Sep 7, 2024
7ea8f02
new tagName for google action plugin
gagarin55 Sep 7, 2024
7f33d51
enable bundle building
gagarin55 Sep 7, 2024
d96a5dd
targets configured as nsis, appimage and dmg only
gagarin55 Sep 7, 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
18 changes: 18 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.eslintrc.js
.eslintrc.js.bk
webpack.config.js
**/node_modules/
app
29 changes: 15 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
"semi": ["error", "always"],
}
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:storybook/recommended'
],
rules: {
"semi": ["error", "always"],
}
};
63 changes: 63 additions & 0 deletions .github/workflows/build-tauri.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Build (Tauri)

on:
push:
branches: [ "tauri" ]

jobs:
build:
timeout-minutes: 30
permissions:
contents: write
name: Build ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'windows-latest', 'macos-latest', 'ubuntu-latest' ]
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.7'

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt install -y libjavascriptcoregtk-4.1-dev libsoup-3.0-dev libgtksourceview-3.0-dev webkit2gtk-driver xvfb libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
# - run: npm run build
# - run: npm run test
# - run: npm run tauri build --release
#- uses: actions/upload-artifact@v3
# with:
# name: ${{ runner.OS }}
# path: src-tauri/target/${{ runner.arch }}/ergo-wallet-*.*

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: v__VERSION__ # This only works if your workflow triggers on new tags.
releaseName: 'Ergo Wallet v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
releaseBody: 'See the assets to download and install this version.'
releaseDraft: true
prerelease: false
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ npm-debug.log
dist/
logs/
coverage/
package-lock.json
yarn-error.log
.yarn/
.yarnrc.yml
19 changes: 19 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { StorybookConfig } from "@storybook/react-webpack5";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-webpack5",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
44 changes: 44 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

import { CssBaseline, ThemeProvider } from '@mui/material';
import { withThemeFromJSXProvider } from '@storybook/addon-themes';
import theme from '../src/renderer/ui/theme';

/* snipped for brevity */

export const decorators = [
withThemeFromJSXProvider({
themes: {
light: theme,
dark: theme,
},
defaultTheme: 'light',
Provider: ThemeProvider,
GlobalStyles: CssBaseline,
})];

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
expanded: true, // Adds the description and default columns
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};


export default preview;
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ Non-custodial desktop wallet for [Ergo Platform](https://ergoplatform.org) block

Install dependencies
```
$ yarn
$ npm install
```

Start application
```
$ yarn start
$ npm run tauri dev
```

### How to build
```
$ yarn build
$ yarn dist
$ npm run build
$ npm run dist
```

### How to verify checksums of release
Expand Down
4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export default {

// A preset that is used as a base for Jest's configuration
// preset: undefined,

preset: 'ts-jest',
testEnvironment: 'node',
// Run tests from one or more projects
// projects: undefined,

Expand Down
Loading
Loading