Skip to content

Commit 20c9f0c

Browse files
committed
Merge remote-tracking branch 'refs/remotes/upstream/webapp' into webapp-dev
# Conflicts: # packages/extension-web-ui/src/Popup/Account/ConnectLedger.tsx # packages/extension-web-ui/src/Popup/Confirmations/parts/Sign/Substrate.tsx # packages/webapp/package.json
2 parents b6c580a + 20335a3 commit 20c9f0c

File tree

129 files changed

+2313
-731
lines changed

Some content is hidden

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

129 files changed

+2313
-731
lines changed

.123trigger

+4-1
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,7 @@
159159
1.2.22
160160
1.2.23
161161
1.2.24
162-
1.2.25
162+
1.2.25
163+
1.2.26
164+
1.2.27
165+
1.2.28

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build/
2+
build-firefox/
23
build-cjs/
34
coverage/
45
node_modules/

CHANGELOG.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,47 @@
11
# CHANGELOG
22

3-
## 1.2.24
3+
## 1.2.28
4+
Build date: Sep 04, 2024.
5+
6+
Features & Update:
7+
- Format error when connecting to dApp (#3445)
8+
- Update connector version (#3363)
9+
- Update substrate dApp connect interface to allow dApp connect with EVM account (#3401)
10+
- Improve Amount input field (#1905)
11+
- Improve fetching era stakers (#3467)
12+
- Add warning in case user earn for both nomination pool and direct (#3477)
13+
- Add Notice of need to unstake for users who are simultaneously staking for both Direct and Nomination Pool (#3484)
14+
- Improve condition for Marketing campaign (#3468)
15+
- Update chain-list (#3518)
16+
- Add support for Polygon zkEVM
17+
- Add support for Immutable zkEVM
18+
- Add support for Story Public Testnet
19+
- Add support for Soneium Testnet
20+
- Update logo for some chains, tokens
21+
22+
Bugs fixed:
23+
- Fix UI bug on the Transfer screen (#3452)
24+
- Fix bug XCM (#3519)
25+
26+
27+
## 1.2.27
28+
Build date: Aug 22, 2024.
29+
30+
Features & Update:
31+
- Update balance calculation for DeepBrainChain (#3481)
32+
- Update chain-list (#3478)
33+
- Add support for 5ireChain mainnet
34+
- Update decimals for Litmus, Litentry
35+
- Update ED for some token: USDT, USDC (PAH), LIT (Litmus), LIT (Litentry), WUD (Hydration)
36+
37+
38+
## 1.2.26
39+
Build date: Aug 19, 2024.
40+
41+
Bugs fixed:
42+
- Update earning feature with cache from middleware service
43+
44+
## 1.2.25
445
Build date: Aug 17, 2024.
546

647
Features & Update:

CONTRIBUTORS

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
2796 AnhMTV Update earning with middleware service
2-
2532 Nam Phạm [Issue 3450] fix: get era stakers overview
3-
2180 S2kael [Issue-3450] Update stable version for chain-list
1+
2813 AnhMTV Release version 1.2.28
2+
2533 Nam Phạm [Issue 3467] fix: refactor staking pallet handling logic
3+
2184 S2kael [Issue-3518] Update stable version for chain-list
44
848 lw-cdm [Issue-3407] WebApp - Support Avail Ledger app
5-
561 nguyentiendung [Issue-2845] Fix UI bugs export accounts
5+
563 nguyentiendung [Issue-2845] Fix UI bugs export accounts
66
465 Jaco 0.42.5 (#969)
7-
262 bluezdot [Issue-3450] fix: bug rounding number
8-
209 Thiendekaco [Issue 2501] [update] Extension - Update message error has been standardized #2
7+
277 bluezdot [Issue-3467] add todo
8+
228 Thiendekaco [Issue 3363] Extension - Update standard content #2
99
185 quangdo
1010
160 Automation Bot [CI Skip] Auto increase webapp build number
11-
145 dominhquang [Issue-3414] Fix bug re-open popup
11+
146 dominhquang [Issue-3468] Improve condition for Marketing campaign
1212
118 lw-cdm
1313
104 khainh predefine metadata for Polkadot & Kusama chains
1414
83 Hieu Dao Update README.md
@@ -17,8 +17,9 @@
1717
67 bluedot [Issue-2965] fix: Handle earning status for request redeem
1818
63 Roman fix ui issues
1919
53 Dominhquangdev update Bridge code
20-
32 Frenkie Nguyen [Issue 3413] WebApp - Do not show earning position for Bifrost liquid staking
20+
49 Frenkie Nguyen [Issue-3477] fix condition show popup
2121
24 S2kael
22+
17 Thanh [Issue-3518] Update chainlist
2223
10 Trang Trịnh api get karura and acala nfts
2324
9 Minh Le
2425
9 minhld1029 [#115] [ForgetAccount] catch exception refList undefined
@@ -28,7 +29,6 @@
2829
4 Amaury Martiny PostMessageProvider with on('connected' | 'disconnected') (#279)
2930
4 namph update UI for nft
3031
4 Quangdm-cdm
31-
4 Thanh [Issue-3450] Add Story Partner Testnet
3232
3 Antoine Estienne Add eth test for extension signature (#909)
3333
3 quangdm Update style for Auth Transaction Screen, Export Screen, Derive Screen
3434
2 Axel Chalon Add typings to messages (#130)

package.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/Koniverse/Subwallet-V2.git"
1111
},
1212
"sideEffects": false,
13-
"version": "1.2.26-0",
13+
"version": "1.2.28",
1414
"workspaces": [
1515
"packages/*"
1616
],
@@ -32,12 +32,13 @@
3232
"build:release": "koni-ci-ghact-build",
3333
"build:rollup": "polkadot-exec-rollup --config",
3434
"build:ui": "cd packages/extension-koni && NODE_ENV=production yarn webpack --config webpack.extension.cjs --mode production",
35-
"build:zip": "yarn build:zip:dst && yarn build:zip:src && yarn build:zip:ff",
35+
"build:zip": "yarn build:zip:dst && yarn build:zip:dst-ff && yarn build:zip:src",
3636
"build:zip:dst": "rm -rf ./master-build.zip && cd packages/extension-koni/build && zip -r -FS ../../../master-build.zip .",
37-
"build:zip:ff": "koni-ci-mv3-firefox && rm -rf ./master-build-firefox.zip && cd packages/extension-koni/build && zip -r -FS ../../../master-build-firefox.zip .",
38-
"build:zip:src": "rm -rf ./master-src.zip && zip -r -x '*build/*' -x '*node_modules*' -FS ./master-src.zip packages .editorconfig .eslintignore .eslintrc.js babel.config.cjs CHANGELOG.md CONTRIBUTING.md i18next-scanner.config.js jest.config.cjs LICENSE package.json README.md tsconfig.json yarn.lock",
39-
"clean": "polkadot-dev-clean-build",
37+
"build:zip:dst-ff": "rm -rf ./master-build-firefox.zip && cd packages/extension-koni/build-firefox && zip -r -FS ../../../master-build-firefox.zip .",
38+
"build:zip:src": "rm -rf ./master-src.zip && zip -r -x '*build/*' -x '*build-firefox/*' -x '*node_modules*' -FS ./master-src.zip packages .editorconfig .eslintignore .eslintrc.js babel.config.cjs CHANGELOG.md CONTRIBUTING.md i18next-scanner.config.js jest.config.cjs LICENSE package.json README.md tsconfig.json yarn.lock",
39+
"clean": "polkadot-dev-clean-build && rm -rf packages/extension-koni/build-firefox",
4040
"dev": "yarn watch-dev",
41+
"dev:firefox": "cd packages/extension-koni && yarn polkadot-exec-webpack --config webpack.config-firefox.cjs --mode development --watch -d inline-source-map",
4142
"lint": "polkadot-dev-run-lint",
4243
"lint:changes": "git diff --name-only | grep -E '.(js|ts|tsx)$' | xargs eslint --fix",
4344
"postinstall": "polkadot-dev-yarn-only && patch-package",
@@ -46,8 +47,8 @@
4647
"test:one": "polkadot-dev-run-test --detectOpenHandles",
4748
"update:polkadot-libs": "yarn up @polkadot/api @polkadot/rpc-provider @polkadot/api-contract @polkadot/networks @polkadot/types @polkadot/types-augment @polkadot/util @polkadot/util-crypto @polkadot/api-derive @polkadot/apps-config @polkadot/ui-settings @polkadot/hw-ledger @polkadot/phishing @polkadot/util @polkadot/util-crypto",
4849
"update:subwallet-libs": "yarn up @subwallet/chain-list @subwallet/keyring @subwallet/ui-keyring",
49-
"watch": "cd packages/extension-koni && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch",
50-
"watch-dev": "cd packages/extension-koni && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch -d inline-source-map",
50+
"watch": "cd packages/extension-koni && yarn polkadot-exec-webpack --config webpack.config.cjs --mode development --watch",
51+
"watch-dev": "cd packages/extension-koni && yarn polkadot-exec-webpack --config webpack.config.cjs --mode development --watch -d inline-source-map",
5152
"web-runner:build": "cd packages/web-runner && rm -rf ./build && yarn webpack --config webpack.config.cjs --mode production",
5253
"web-runner:build-zip": "yarn web-runner:build && cd packages/web-runner && zip -r -FS ./web-runner.zip ./build && mv ./web-runner.zip ./build",
5354
"web-runner:dev": "cd packages/web-runner && yarn webpack-dev-server --config webpack.config.cjs --mode development -d inline-source-map",
@@ -103,10 +104,10 @@
103104
"@polkadot/types-support": "^12.0.2",
104105
"@polkadot/util": "^12.6.2",
105106
"@polkadot/util-crypto": "^12.6.2",
106-
"@subwallet/chain-list": "0.2.82",
107-
"@subwallet/keyring": "^0.1.5",
107+
"@subwallet/chain-list": "0.2.84",
108+
"@subwallet/keyring": "^0.1.6",
108109
"@subwallet/react-ui": "5.1.2-b79",
109-
"@subwallet/ui-keyring": "^0.1.5",
110+
"@subwallet/ui-keyring": "^0.1.6",
110111
"@zondax/ledger-substrate": "0.44.2",
111112
"babel-core": "^7.0.0-bridge.0",
112113
"babel-jest": "^29.3.1",

packages/extension-base/package.json

+14-12
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"./detectPackage.cjs"
1818
],
1919
"type": "module",
20-
"version": "1.2.26-0",
20+
"version": "1.2.28-0",
2121
"main": "index.js",
2222
"dependencies": {
2323
"@acala-network/api": "^5.0.2",
@@ -31,6 +31,7 @@
3131
"@galacticcouncil/sdk": "^4.2.0",
3232
"@gear-js/api": "^0.38.1",
3333
"@json-rpc-tools/utils": "^1.7.6",
34+
"@metamask/eth-sig-util": "^7.0.3",
3435
"@metamask/safe-event-emitter": "^2.0.0",
3536
"@metaverse-network-sdk/type-definitions": "^0.0.1-13",
3637
"@oak-foundation/types": "^0.0.23",
@@ -54,17 +55,17 @@
5455
"@reduxjs/toolkit": "^1.9.1",
5556
"@sora-substrate/type-definitions": "^1.17.7",
5657
"@substrate/connect": "^0.8.9",
57-
"@subwallet/chain-list": "0.2.82",
58-
"@subwallet/extension-base": "^1.2.26-0",
59-
"@subwallet/extension-chains": "^1.2.26-0",
60-
"@subwallet/extension-dapp": "^1.2.26-0",
61-
"@subwallet/extension-inject": "^1.2.26-0",
62-
"@subwallet/keyring": "^0.1.5",
63-
"@subwallet/ui-keyring": "^0.1.5",
58+
"@subwallet/chain-list": "0.2.84",
59+
"@subwallet/extension-base": "^1.2.28-0",
60+
"@subwallet/extension-chains": "^1.2.28-0",
61+
"@subwallet/extension-dapp": "^1.2.28-0",
62+
"@subwallet/extension-inject": "^1.2.28-0",
63+
"@subwallet/keyring": "^0.1.6",
64+
"@subwallet/ui-keyring": "^0.1.6",
6465
"@walletconnect/keyvaluestorage": "^1.1.1",
65-
"@walletconnect/sign-client": "^2.13.1",
66-
"@walletconnect/types": "^2.13.1",
67-
"@walletconnect/utils": "^2.13.1",
66+
"@walletconnect/sign-client": "^2.14.0",
67+
"@walletconnect/types": "^2.14.0",
68+
"@walletconnect/utils": "^2.14.0",
6869
"avail-js-sdk": "^0.2.12",
6970
"axios": "^1.6.2",
7071
"bignumber.js": "^9.1.1",
@@ -82,6 +83,7 @@
8283
"graphql": "^16.8.1",
8384
"i18next": "^21.9.2",
8485
"is-buffer": "^2.0.5",
86+
"joi": "^17.13.3",
8587
"json-rpc-engine": "^6.1.0",
8688
"manta-extension-sdk": "^1.1.0",
8789
"moment": "^2.29.4",
@@ -98,7 +100,7 @@
98100
"web3-utils": "^1.10.0"
99101
},
100102
"devDependencies": {
101-
"@subwallet/extension-mocks": "^1.2.26-0",
103+
"@subwallet/extension-mocks": "^1.2.28-0",
102104
"@types/uuid": "^9.0.1"
103105
}
104106
}

packages/extension-base/src/background/KoniTypes.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -1265,29 +1265,29 @@ export interface EvmSendTransactionParams {
12651265
gas?: string | number;
12661266
}
12671267

1268-
export interface SwitchNetworkRequest {
1269-
networkKey: string;
1270-
address?: string;
1271-
}
1272-
12731268
export interface EvmSignRequest {
12741269
account: AccountJson;
12751270
hashPayload: string;
12761271
canSign: boolean;
12771272
}
12781273

1274+
export interface ErrorValidation {
1275+
message: string;
1276+
name: string;
1277+
}
1278+
12791279
export interface EvmSignatureRequest extends EvmSignRequest {
12801280
id: string;
12811281
type: string;
12821282
payload: unknown;
1283-
errors?: Error[]
1283+
errors?: ErrorValidation[]
12841284
}
12851285

12861286
export interface EvmSendTransactionRequest extends TransactionConfig, EvmSignRequest {
12871287
estimateGas: string;
12881288
parseData: EvmTransactionData;
12891289
isToContract: boolean;
1290-
errors?: TransactionError[]
1290+
errors?: ErrorValidation[]
12911291
}
12921292

12931293
export type EvmWatchTransactionRequest = EvmSendTransactionRequest;
@@ -1338,13 +1338,12 @@ export interface AddTokenRequestExternal {
13381338
export interface ErrorNetworkConnection {
13391339
networkKey: string,
13401340
address: string,
1341-
errors: Error[]
1341+
errors: ErrorValidation[]
13421342
}
13431343

13441344
export interface ConfirmationDefinitions {
13451345
addNetworkRequest: [ConfirmationsQueueItem<_NetworkUpsertParams>, ConfirmationResult<null>],
13461346
addTokenRequest: [ConfirmationsQueueItem<AddTokenRequestExternal>, ConfirmationResult<boolean>],
1347-
switchNetworkRequest: [ConfirmationsQueueItem<SwitchNetworkRequest>, ConfirmationResult<boolean>],
13481347
evmSignatureRequest: [ConfirmationsQueueItem<EvmSignatureRequest>, ConfirmationResult<string>],
13491348
evmSendTransactionRequest: [ConfirmationsQueueItem<EvmSendTransactionRequest>, ConfirmationResult<string>]
13501349
evmWatchTransactionRequest: [ConfirmationsQueueItem<EvmWatchTransactionRequest>, ConfirmationResult<string>],

packages/extension-base/src/constants/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ export const NETWORK_MULTI_GAS_FEE = ['*'];
3838
export const ORDINAL_COLLECTION = '__Ordinal__';
3939
export const ORDINAL_METHODS = ['drc-20', 'pol-20'];
4040

41+
export const PERMISSIONS_TO_REVOKE = ['eth_accounts'];
42+
4143
export * from './staking';
4244
export * from './storage';

0 commit comments

Comments
 (0)