Skip to content

Commit 77f2e63

Browse files
authored
Merge branch 'development' into rename-types
2 parents 740b0fa + 4ce0c5f commit 77f2e63

File tree

181 files changed

+4430
-8548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+4430
-8548
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: CI
33

4-
'on':
4+
"on":
55
workflow_dispatch:
66
push:
77
branches:
@@ -26,7 +26,7 @@ env:
2626
jobs:
2727
fmt:
2828
name: fmt
29-
runs-on: [ self-hosted, ubuntu-high-cpu ]
29+
runs-on: [self-hosted, ubuntu-high-cpu]
3030

3131
steps:
3232
- name: checkout
@@ -48,10 +48,25 @@ jobs:
4848

4949
- name: cargo format
5050
run: cargo +${{ env.nightly_toolchain }} fmt --all -- --check
51+
prettier:
52+
name: prettier
53+
runs-on: [self-hosted, ubuntu-high-cpu]
54+
55+
steps:
56+
- name: checkout
57+
uses: actions/checkout@v4
58+
59+
- name: install
60+
run: |
61+
npm install [email protected]
62+
63+
- name: prettier
64+
run: |
65+
npx prettier --check "./**/*.{ts,tsx,css,json}"
5166
5267
clippy:
5368
name: clippy
54-
runs-on: [ self-hosted, ubuntu-high-cpu ]
69+
runs-on: [self-hosted, ubuntu-high-cpu]
5570

5671
steps:
5772
- name: checkout
@@ -106,7 +121,7 @@ jobs:
106121
107122
build:
108123
name: check nightly
109-
runs-on: [ self-hosted, ubuntu-high-cpu ]
124+
runs-on: [self-hosted, ubuntu-high-cpu]
110125

111126
steps:
112127
- name: checkout
@@ -132,7 +147,7 @@ jobs:
132147

133148
build-stable:
134149
name: check stable
135-
runs-on: [ self-hosted, ubuntu-high-cpu ]
150+
runs-on: [self-hosted, ubuntu-high-cpu]
136151

137152
steps:
138153
- name: checkout
@@ -181,7 +196,7 @@ jobs:
181196

182197
test:
183198
name: test
184-
runs-on: [ self-hosted, ubuntu-high-cpu ]
199+
runs-on: [self-hosted, ubuntu-high-cpu]
185200

186201
steps:
187202
- name: checkout
@@ -212,7 +227,7 @@ jobs:
212227
run: cargo nextest run --all-features --release -E "not package(integration_tests)" --profile ci
213228

214229
- name: upload artifact
215-
uses: actions/upload-artifact@v4 # upload test results as artifact
230+
uses: actions/upload-artifact@v4 # upload test results as artifact
216231
if: success() || failure()
217232
with:
218233
name: test-results
@@ -222,11 +237,11 @@ jobs:
222237
run: cargo test --all-features --release --package integration_tests
223238

224239
- name: upload test result artifact
225-
uses: actions/upload-artifact@v4 # upload test results as artifact
240+
uses: actions/upload-artifact@v4 # upload test results as artifact
226241
if: success() || failure()
227242
with:
228-
name: cucumber-test-results
229-
path: ${{ github.workspace }}/integration_tests/cucumber-output-junit.xml
243+
name: cucumber-test-results
244+
path: ${{ github.workspace }}/integration_tests/cucumber-output-junit.xml
230245

231246
- name: Upload cucumber log artifacts
232247
uses: actions/upload-artifact@v4

.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"trailingComma": "all",
8+
"bracketSpacing": true,
9+
"bracketSameLine": false,
10+
"arrowParens": "always",
11+
"endOfLine": "lf"
12+
}

applications/tari_dan_wallet_daemon/openrpc.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,20 @@
1616
{
1717
"name": "keys/create",
1818
"summary": "",
19-
"tags": [
20-
],
19+
"tags": [],
2120
"params": [],
2221
"result": {
2322
"name": "KeysCreateResponse",
2423
"schema": {
2524
"$ref": "#/components/schemas/KeysCreateResponse"
2625
}
2726
},
28-
"errors": [
29-
],
27+
"errors": [],
3028
"examples": [
3129
{
3230
"name": "default",
3331
"description": "",
34-
"params": [
35-
],
32+
"params": [],
3633
"result": {
3734
"name": "example1",
3835
"value": {
@@ -45,8 +42,7 @@
4542
}
4643
],
4744
"components": {
48-
"contentDescriptors": {
49-
},
45+
"contentDescriptors": {},
5046
"schemas": {
5147
"KeysCreateResponse": {
5248
"type": "object",

applications/tari_dan_wallet_web_ui/src/App.tsx

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,67 +20,67 @@
2020
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
2121
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2222

23-
import { Routes, Route } from 'react-router-dom';
24-
import Accounts from './routes/Accounts/Accounts';
25-
import AccountDetails from './routes/AccountDetails/AccountDetails';
23+
import { Routes, Route } from "react-router-dom";
24+
import Accounts from "./routes/Accounts/Accounts";
25+
import AccountDetails from "./routes/AccountDetails/AccountDetails";
2626
import DialogContent from "@mui/material/DialogContent";
2727
import DialogTitle from "@mui/material/DialogTitle";
28-
import Keys from './routes/Keys/Keys';
29-
import ErrorPage from './routes/ErrorPage';
30-
import Wallet from './routes/Wallet/Wallet';
31-
import Layout from './theme/LayoutMain';
32-
import AccessTokensLayout from './routes/AccessTokens/AccessTokens';
33-
import Transactions from './routes/Transactions/TransactionsLayout';
34-
import TransactionDetails from './routes/Transactions/TransactionDetails';
35-
import AssetVault from './routes/AssetVault/AssetVault';
36-
import SettingsPage from './routes/Settings/Settings';
37-
import { Dialog } from '@mui/material';
38-
import useAccountStore from './store/accountStore';
28+
import Keys from "./routes/Keys/Keys";
29+
import ErrorPage from "./routes/ErrorPage";
30+
import Wallet from "./routes/Wallet/Wallet";
31+
import Layout from "./theme/LayoutMain";
32+
import AccessTokensLayout from "./routes/AccessTokens/AccessTokens";
33+
import Transactions from "./routes/Transactions/TransactionsLayout";
34+
import TransactionDetails from "./routes/Transactions/TransactionDetails";
35+
import AssetVault from "./routes/AssetVault/AssetVault";
36+
import SettingsPage from "./routes/Settings/Settings";
37+
import { Dialog } from "@mui/material";
38+
import useAccountStore from "./store/accountStore";
3939

4040
export const breadcrumbRoutes = [
4141
{
42-
label: 'Home',
43-
path: '/',
42+
label: "Home",
43+
path: "/",
4444
dynamic: false,
4545
},
4646
{
47-
label: 'Accounts',
48-
path: '/accounts',
47+
label: "Accounts",
48+
path: "/accounts",
4949
dynamic: false,
5050
},
5151
{
52-
label: 'Keys',
53-
path: '/keys',
52+
label: "Keys",
53+
path: "/keys",
5454
dynamic: false,
5555
},
5656
{
57-
label: 'Access Tokens',
58-
path: '/access-tokens',
57+
label: "Access Tokens",
58+
path: "/access-tokens",
5959
dynamic: false,
6060
},
6161
{
62-
label: 'Account Details',
63-
path: '/accounts/:name',
62+
label: "Account Details",
63+
path: "/accounts/:name",
6464
dynamic: true,
6565
},
6666
{
67-
label: 'Transactions',
68-
path: '/transactions',
67+
label: "Transactions",
68+
path: "/transactions",
6969
dynamic: false,
7070
},
7171
{
72-
label: 'Transaction Details',
73-
path: '/transactions/:id',
72+
label: "Transaction Details",
73+
path: "/transactions/:id",
7474
dynamic: true,
7575
},
7676
{
77-
label: 'Wallet',
78-
path: '/wallet',
77+
label: "Wallet",
78+
path: "/wallet",
7979
dynamic: false,
8080
},
8181
{
82-
label: 'Settings',
83-
path: '/settings',
82+
label: "Settings",
83+
path: "/settings",
8484
dynamic: false,
8585
},
8686
];
@@ -89,7 +89,7 @@ function App() {
8989
const { popup, setPopup } = useAccountStore();
9090
const handleClose = () => {
9191
setPopup({ visible: false });
92-
}
92+
};
9393
return (
9494
<div>
9595
<Routes>
@@ -108,11 +108,9 @@ function App() {
108108
</Routes>
109109
<Dialog open={popup.visible} onClose={handleClose}>
110110
<DialogTitle>
111-
{(popup?.error ? <div style={{ color: "red" }}>{popup?.title}</div> : <div>{popup?.title}</div>)}
111+
{popup?.error ? <div style={{ color: "red" }}>{popup?.title}</div> : <div>{popup?.title}</div>}
112112
</DialogTitle>
113-
<DialogContent className="dialog-content">
114-
{popup?.message}
115-
</DialogContent>
113+
<DialogContent className="dialog-content">{popup?.message}</DialogContent>
116114
</Dialog>
117115
</div>
118116
);

applications/tari_dan_wallet_web_ui/src/Components/Accordion.tsx

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,33 @@
2020
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
2121
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2222

23-
import { styled } from '@mui/material/styles';
24-
import KeyboardArrowRightRoundedIcon from '@mui/icons-material/KeyboardArrowRightRounded';
25-
import MuiAccordion, { AccordionProps } from '@mui/material/Accordion';
26-
import MuiAccordionSummary, {
27-
AccordionSummaryProps,
28-
} from '@mui/material/AccordionSummary';
29-
import MuiAccordionDetails from '@mui/material/AccordionDetails';
23+
import { styled } from "@mui/material/styles";
24+
import KeyboardArrowRightRoundedIcon from "@mui/icons-material/KeyboardArrowRightRounded";
25+
import MuiAccordion, { AccordionProps } from "@mui/material/Accordion";
26+
import MuiAccordionSummary, { AccordionSummaryProps } from "@mui/material/AccordionSummary";
27+
import MuiAccordionDetails from "@mui/material/AccordionDetails";
3028

3129
export const Accordion = styled((props: AccordionProps) => (
3230
<MuiAccordion disableGutters elevation={0} square {...props} />
3331
))(({ theme }) => ({
3432
border: `2px solid ${theme.palette.background.paper}`,
35-
'&:not(:last-child)': {
33+
"&:not(:last-child)": {
3634
borderBottom: 0,
3735
},
38-
'&:before': {
39-
display: 'none',
36+
"&:before": {
37+
display: "none",
4038
},
4139
}));
4240

4341
export const AccordionSummary = styled((props: AccordionSummaryProps) => (
44-
<MuiAccordionSummary
45-
expandIcon={<KeyboardArrowRightRoundedIcon />}
46-
{...props}
47-
/>
42+
<MuiAccordionSummary expandIcon={<KeyboardArrowRightRoundedIcon />} {...props} />
4843
))(({ theme }) => ({
4944
backgroundColor: theme.palette.divider,
50-
flexDirection: 'row-reverse',
51-
'& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': {
52-
transform: 'rotate(90deg)',
45+
flexDirection: "row-reverse",
46+
"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded": {
47+
transform: "rotate(90deg)",
5348
},
54-
'& .MuiAccordionSummary-content': {
49+
"& .MuiAccordionSummary-content": {
5550
marginLeft: theme.spacing(1),
5651
},
5752
}));

applications/tari_dan_wallet_web_ui/src/Components/AlertDialog.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
2121
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2222

23-
import { useState } from 'react';
24-
import Button from '@mui/material/Button';
25-
import Dialog from '@mui/material/Dialog';
26-
import DialogActions from '@mui/material/DialogActions';
27-
import DialogContent from '@mui/material/DialogContent';
28-
import DialogContentText from '@mui/material/DialogContentText';
29-
import DialogTitle from '@mui/material/DialogTitle';
23+
import { useState } from "react";
24+
import Button from "@mui/material/Button";
25+
import Dialog from "@mui/material/Dialog";
26+
import DialogActions from "@mui/material/DialogActions";
27+
import DialogContent from "@mui/material/DialogContent";
28+
import DialogContentText from "@mui/material/DialogContentText";
29+
import DialogTitle from "@mui/material/DialogTitle";
3030

3131
interface AlertDialogProps {
3232
buttonTitle?: string;
@@ -42,8 +42,8 @@ export function ConfirmDialog({
4242
dialogTitle,
4343
dialogDescription,
4444
confirmFunction,
45-
confirmTitle = 'Confirm',
46-
cancelTitle = 'Cancel',
45+
confirmTitle = "Confirm",
46+
cancelTitle = "Cancel",
4747
}: AlertDialogProps) {
4848
const [open, setOpen] = useState(false);
4949

@@ -69,9 +69,7 @@ export function ConfirmDialog({
6969
>
7070
<DialogTitle id="alert-dialog-title">{dialogTitle}</DialogTitle>
7171
<DialogContent>
72-
<DialogContentText id="alert-dialog-description">
73-
{dialogDescription}
74-
</DialogContentText>
72+
<DialogContentText id="alert-dialog-description">{dialogDescription}</DialogContentText>
7573
</DialogContent>
7674
<DialogActions>
7775
<Button variant="outlined" onClick={handleClose}>

0 commit comments

Comments
 (0)