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

Sync develop with message-system-production #15530

Merged
merged 49 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
99caf1c
test(connect): fix nightly e2e fixtures
marekrjpolak Nov 20, 2024
4a9994e
fix: propagate onClict to the tooltip row
peter-sanderson Nov 20, 2024
88caa65
fix(suite): unify send form input logic, improve amount calculation f…
komret Nov 20, 2024
fdb433a
fix(connect): workaround for staging deployment url
martykan Nov 20, 2024
5cf9963
feat(connect): show bundleprogress in popup
martykan Nov 20, 2024
58b854c
fix(connect): preferred device handling based on state
martykan Nov 20, 2024
be23fc9
feat(suite-common): fetch stake data based on device account symbols
vytick Nov 19, 2024
7c26dc1
chore: make warrning from ESLint to fail the tests (non-zero exit code)
peter-sanderson Nov 20, 2024
103a067
fix: ESLint import/order
peter-sanderson Nov 20, 2024
178ee7c
test(suite-native): send custom fee e2e
PeKne Nov 19, 2024
b2dab19
ci: split test-misc and test-connect-misc
mroz22 Nov 20, 2024
8622e62
fix(connect): install test tsc types
martykan Nov 21, 2024
2908c61
chore(repo): reorganize lines in .gitattributes
mroz22 Nov 18, 2024
0c7477e
chore(repo): update CODEOWNERS
mroz22 Nov 18, 2024
2b65712
fix(connect): deal with missing device on method
marekrjpolak Nov 21, 2024
bb51937
npm-prerelease: @trezor/blockchain-link 2.3.3-beta.1
trezor-ci Nov 21, 2024
0b0670f
npm-prerelease: @trezor/blockchain-link-utils 1.2.3-beta.1
trezor-ci Nov 21, 2024
d763606
npm-prerelease: @trezor/blockchain-link-types 1.2.3-beta.1
trezor-ci Nov 21, 2024
5a4c171
npm-prerelease: @trezor/type-utils 1.1.2-beta.1
trezor-ci Nov 21, 2024
ce1f777
npm-prerelease: @trezor/connect-analytics 1.2.3-beta.1
trezor-ci Nov 21, 2024
136e6f1
npm-prerelease: @trezor/analytics 1.2.3-beta.1
trezor-ci Nov 21, 2024
55487ac
npm-prerelease: @trezor/connect-common 0.2.4-beta.1
trezor-ci Nov 21, 2024
571dd95
npm-prerelease: @trezor/env-utils 1.2.1-beta.1
trezor-ci Nov 21, 2024
29c4ff0
npm-prerelease: @trezor/transport 1.3.4-beta.1
trezor-ci Nov 21, 2024
cf18864
npm-prerelease: @trezor/protobuf 1.2.4-beta.1
trezor-ci Nov 21, 2024
9500133
npm-prerelease: @trezor/schema-utils 1.2.3-beta.1
trezor-ci Nov 21, 2024
7bfeed7
npm-prerelease: @trezor/protocol 1.2.2-beta.1
trezor-ci Nov 21, 2024
5927d5b
npm-prerelease: @trezor/utxo-lib 2.2.3-beta.1
trezor-ci Nov 21, 2024
a70e059
npm-prerelease: @trezor/utils 9.2.3-beta.1
trezor-ci Nov 21, 2024
34b5e8b
npm-release: @trezor/connect 9.4.4-beta.1
trezor-ci Nov 21, 2024
ddca7e9
chore(connect): changelog 9.4.4-beta.1
karliatto Nov 21, 2024
f8a8b5b
ci(suite-web): run tests for changes in connect core
mroz22 Nov 21, 2024
7f44942
ci(github): add test-connect-mist to release branch
karliatto Nov 21, 2024
ba1c0b8
feat(blockchain-link): detect nonempty account when using nonarchive rpc
tomasklim Nov 20, 2024
1530a48
chore(wallet-config): use solscan instead of solana explorer
tomasklim Nov 20, 2024
17f49cb
chore(suite): use tradebox when tx history not available
tomasklim Nov 20, 2024
4af0ee4
chore(suite): analyze in blockbook to analyze in blockchain explorer
tomasklim Nov 20, 2024
fce74f6
feat(suite-native): selected fee remembered
PeKne Nov 20, 2024
d7e457a
chore(suite): fix typo in useHandleDeviceRequestsPassphrase
jbazant Nov 16, 2024
9993a21
chore(github): Base network token definitions
tomasklim Nov 22, 2024
aa9a0af
chore(connect): Base network
tomasklim Nov 22, 2024
402c04d
feat(suite): Base network
tomasklim Nov 22, 2024
a55654c
fix(trade): pending transaction and re-rendering
adderpositive Nov 14, 2024
04c428a
chore(suite): refactor transaction details modal
adamhavel Nov 20, 2024
1dd1137
fix(suite-native): ensure that passphrase retry flow finishes correctly
yanascz Nov 21, 2024
970c1b6
fix(suite): Fix border in Tooltip (#15516)
jvaclavik Nov 22, 2024
c99eb19
chore(suite): decrease node-bridge enrollment
MiroslavProchazka Nov 22, 2024
f3f434e
chore(components): update Select component menu background
adamhavel Nov 22, 2024
4bfcf3d
feat(message-system): turn off FW hash check
Lemonexe Nov 22, 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
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ packages/suite-data/files/bin/tor/win-*/*.dll filter=lfs diff=lfs merge=lfs -tex
packages/suite-data/files/bin/tor/win-*/tor.exe filter=lfs diff=lfs merge=lfs -text
packages/connect-common/files/firmware/*/*.bin filter=lfs diff=lfs merge=lfs -text
packages/connect-common/files/devkit/firmware/*/*.bin filter=lfs diff=lfs merge=lfs -text
# Changelog to be merged via union always.
CHANGELOG.md merge=union
packages/suite-data/files/bin/coinjoin/linux-arm64/WalletWasabi.WabiSabiClientLibrary filter=lfs diff=lfs merge=lfs -text
packages/suite-data/files/bin/coinjoin/linux-x64/WalletWasabi.WabiSabiClientLibrary filter=lfs diff=lfs merge=lfs -text
packages/suite-data/files/bin/coinjoin/osx-arm64/WalletWasabi.WabiSabiClientLibrary filter=lfs diff=lfs merge=lfs -text
packages/suite-data/files/bin/coinjoin/osx-x64/WalletWasabi.WabiSabiClientLibrary filter=lfs diff=lfs merge=lfs -text
packages/suite-data/files/bin/coinjoin/win-x64/WalletWasabi.WabiSabiClientLibrary.exe filter=lfs diff=lfs merge=lfs -text
# Changelog to be merged via union always.
CHANGELOG.md merge=union
4 changes: 4 additions & 0 deletions .github/workflows/release-suite-definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ jobs:
yarn nfts simple polygon-pos jws
yarn nfts simple binance-smart-chain jws
yarn nfts simple optimistic-ethereum jws
yarn nfts simple base jws
yarn coins simple ethereum jws
yarn coins simple ethereum-classic jws
yarn coins simple polygon-pos jws
yarn coins simple binance-smart-chain jws
yarn coins simple optimistic-ethereum jws
yarn coins simple base jws
yarn coins simple cardano jws
yarn coins simple solana jws
yarn coins advanced solana json
Expand All @@ -67,11 +69,13 @@ jobs:
yarn nfts simple polygon-pos jws
yarn nfts simple binance-smart-chain jws
yarn nfts simple optimistic-ethereum jws
yarn nfts simple base jws
yarn coins simple ethereum jws
yarn coins simple ethereum-classic jws
yarn coins simple polygon-pos jws
yarn coins simple binance-smart-chain jws
yarn coins simple optimistic-ethereum jws
yarn coins simple base jws
yarn coins simple cardano jws
yarn coins simple solana jws
yarn coins advanced solana json
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/test-connect-misc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "[Test] connect misc"

on:
schedule:
# Runs at midnight UTC every day at 01:00 AM CET
- cron: "0 0 * * *"
push:
branches: [release/connect/**]
pull_request:
paths:
- ".github/workflows/test-connect-misc.yml"
workflow_dispatch:

jobs:
install-connect:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- run: ./packages/connect/e2e/test-npm-install.sh beta
- run: ./packages/connect/e2e/test-npm-install.sh latest
- run: ./packages/connect/e2e/test-yarn-install.sh beta
- run: ./packages/connect/e2e/test-yarn-install.sh latest

test-protobuf:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- run: yarn install --immutable
- run: yarn workspace @trezor/protobuf update:protobuf
- run: yarn workspace @trezor/protobuf update:schema
30 changes: 0 additions & 30 deletions .github/workflows/test-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@ jobs:

- run: ./scripts/ci/find_duplicates.sh ./packages/suite-data/files ${{ matrix.extension }}

install-connect:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- run: ./packages/connect/e2e/test-npm-install.sh beta
- run: ./packages/connect/e2e/test-npm-install.sh latest
- run: ./packages/connect/e2e/test-yarn-install.sh beta
- run: ./packages/connect/e2e/test-yarn-install.sh latest

test-unit:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
Expand All @@ -82,19 +68,3 @@ jobs:
- run: yarn install --immutable
- run: yarn message-system-sign-config
- run: yarn test:unit

test-protobuf:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- run: yarn install --immutable
- run: yarn workspace @trezor/protobuf update:protobuf
- run: yarn workspace @trezor/protobuf update:schema
12 changes: 11 additions & 1 deletion .github/workflows/test-suite-web-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ on:
- "packages/suite-desktop*/**"
- "packages/react-native-usb/**"
# ignore unrelated github workflows config files
- ".github/workflows/connect*"
- ".github/workflows/connect-analytics"
- ".github/workflows/connect-common"
- ".github/workflows/connect-examples"
- ".github/workflows/connect-explorer"
- ".github/workflows/connect-iframe"
- ".github/workflows/connect-mobile"
- ".github/workflows/connect-plugin-*"
- ".github/workflows/connect-popup"
- ".github/workflows/connect-theme"
- ".github/workflows/connect-ui"
- ".github/workflows/connect-webextension"
- ".github/workflows/suite-native*"
- ".github/workflows/build-desktop*"
- ".github/workflows/release*"
Expand Down
26 changes: 16 additions & 10 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,28 @@

/packages/components @jvaclavik @adamhavel

/packages/connect @mroz22 @szymonlesisz @martykan
/packages/connect @mroz22 @szymonlesisz @martykan @marekrjpolak

/packages/connect-common @mroz22 @szymonlesisz @martykan
/packages/connect-common @mroz22 @martykan

/packages/connect-examples @mroz22 @szymonlesisz @martykan
/packages/connect-examples @mroz22 @martykan

/packages/connect-explorer @mroz22 @szymonlesisz @martykan
/packages/connect-explorer @mroz22 @martykan

/packages/connect-iframe @mroz22 @szymonlesisz @martykan
/packages/connect-iframe @mroz22 @martykan

/packages/connect-plugin-ethereum @mroz22 @szymonlesisz @martykan
/packages/connect-plugin-ethereum @mroz22 @martykan

/packages/connect-plugin-stellar @mroz22 @szymonlesisz @martykan
/packages/connect-plugin-stellar @mroz22 @martykan

/packages/connect-popup @mroz22 @szymonlesisz @martykan
/packages/connect-popup @mroz22 @martykan

/packages/connect-web @mroz22 @szymonlesisz @martykan
/packages/connect-web @mroz22 @martykan

/packages/connect-webextension @mroz22 @karliatto @martykan

/packages/connect-mobile @mroz22 @karliatto @martykan

/packages/icons @trezor/suite-mobile

/suite-common/message-system @tomasklim @matejkriz
Expand All @@ -58,7 +60,11 @@

/packages/suite-storage @matejkriz

/packages/transport @mroz22
/packages/transport @mroz22 @szymonlesisz

/packages/transport-bridge @mroz22 @szymonlesisz

/packages/transport-test @mroz22

/packages/transport-native @trezor/suite-mobile @Nodonisko

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
"type-check": "yarn nx run-many --target=type-check",
"type-check:force": "rimraf -rf -- **/libDev && yarn type-check",
"test:unit": "yarn nx run-many --target=test:unit",
"lint:js": "eslint . --cache --cache-strategy content --flag unstable_config_lookup_from_file",
"lint:js": "eslint . --cache --cache-strategy content --flag unstable_config_lookup_from_file --max-warnings 0",
"lint:styles": "yarn nx run-many --target=lint:styles",
"lint": "yarn lint:styles && yarn lint:js",
"lint-staged": "npx lint-staged",
"lint:shellcheck": "./scripts/shellcheck.sh",
"_______ Global Scripts _______": "Shared scripts for running in all workspaces",
"g:eslint": "cd $INIT_CWD && eslint . --cache --cache-strategy content --flag unstable_config_lookup_from_file",
"g:eslint": "cd $INIT_CWD && eslint . --cache --cache-strategy content --flag unstable_config_lookup_from_file --max-warnings 0",
"g:jest": "cd $INIT_CWD && jest",
"g:prettier": "cd $INIT_CWD && prettier",
"g:rimraf": "cd $INIT_CWD && rimraf",
Expand Down
7 changes: 6 additions & 1 deletion packages/address-validator/src/currencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -1451,9 +1451,14 @@ var CURRENCIES = [
symbol: 'bnb',
validator: ETHValidator,
},
{
name: 'Base',
symbol: 'base', // TODO
validator: ETHValidator,
},
{
name: 'Optimism',
symbol: 'eth',
symbol: 'op', // TODO
validator: ETHValidator,
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trezor/analytics",
"version": "1.2.2",
"version": "1.2.3-beta.1",
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-link-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trezor/blockchain-link-types",
"version": "1.2.2",
"version": "1.2.3-beta.1",
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-link-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trezor/blockchain-link-utils",
"version": "1.2.2",
"version": "1.2.3-beta.1",
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-link/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trezor/blockchain-link",
"version": "2.3.2",
"version": "2.3.3-beta.1",
"author": "Trezor <[email protected]>",
"homepage": "https://github.com/trezor/trezor-suite/tree/develop/packages/blockchain-link",
"description": "High-level javascript interface for blockchain communication",
Expand Down
22 changes: 22 additions & 0 deletions packages/blockchain-link/src/ui/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,28 @@ export default [
subscribe: '',
},
},
{
blockchain: {
name: 'Base',
worker: 'js/blockbook-worker.js',
server: ['https://base1.trezor.io', 'https://base2.trezor.io'],
debug: true,
},
data: {
address: '',
accountInfoOptions: {
page: 1,
pageSize: 25,
contractFilter: undefined,
},
estimateFeeOptions: {
blocks: [1, 2, 10],
},
txid: '',
tx: '',
subscribe: '',
},
},
{
blockchain: {
name: 'Optimism',
Expand Down
5 changes: 4 additions & 1 deletion packages/blockchain-link/src/workers/solana/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,14 @@ const getAccountInfo = async (request: Request<MessageTypes.GetAccountInfo>) =>
// https://solana.stackexchange.com/a/13102
const rent = await api.getMinimumBalanceForRentExemption(accountInfo?.data.byteLength || 0);

// allTxIds can be empty for non-archive rpc nodes
const isAccountEmpty = !(allTxIds.length || balance || tokens.length);

const account: AccountInfo = {
descriptor: payload.descriptor,
balance: balance.toString(),
availableBalance: balance.toString(),
empty: !allTxIds.length,
empty: isAccountEmpty,
history: {
total: allTxIds.length,
unconfirmed: 0,
Expand Down
13 changes: 3 additions & 10 deletions packages/components/src/components/Dropdown/menuStyle.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import { css, keyframes } from 'styled-components';

import {
spacingsPx,
borders,
typography,
zIndices,
Elevation,
mapElevationToBackground,
} from '@trezor/theme';
import { spacingsPx, borders, typography, zIndices } from '@trezor/theme';

export const DROPDOWN_MENU = keyframes`
0% {
Expand All @@ -21,14 +14,14 @@ export const DROPDOWN_MENU = keyframes`
}
`;

export const menuStyle = css<{ $elevation: Elevation }>`
export const menuStyle = css`
display: flex;
flex-direction: column;
flex: 1;
padding: ${spacingsPx.sm};
min-width: 140px;
border-radius: ${borders.radii.md};
background: ${mapElevationToBackground};
background: ${({ theme }) => theme.backgroundSurfaceElevation1};
box-shadow: ${({ theme }) => theme.boxShadowElevated};
z-index: ${zIndices.modal};
animation: ${DROPDOWN_MENU} 0.15s ease-in-out;
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/Grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const Container = styled.div<
>`
display: grid;
gap: ${({ $gap }) => $gap}px;
grid-template-columns: repeat(${({ $columns }) => $columns}, 1fr);
grid-template-columns: repeat(${({ $columns }) => $columns}, minmax(0, 1fr));

${withFrameProps}
`;

Expand Down
Loading
Loading