Skip to content

Commit 662934d

Browse files
committed
Merge remote-tracking branch 'refs/remotes/upstream/webapp-dev' into webapp-dev
# Conflicts: # packages/extension-base/src/utils/staticData/index.ts # packages/webapp/package.json
2 parents 76c33d3 + 068b04c commit 662934d

File tree

87 files changed

+1899
-553
lines changed

Some content is hidden

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

87 files changed

+1899
-553
lines changed

.123trigger

+3-1
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,6 @@
164164
1.2.27
165165
1.2.28
166166
1.2.29
167-
1.2.30
167+
1.2.30
168+
1.2.31
169+
1.2.32

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# CHANGELOG
22

3+
## 1.2.32
4+
Build date: Oct 01, 2024.
5+
6+
Features & Update:
7+
- Improve marketing campaign (#3461, #2807)
8+
9+
Bugs fixed:
10+
- Hot fix handle API status (#3711)
11+
12+
## 1.2.31
13+
Build date: Sep 28, 2024.
14+
15+
Features & Update:
16+
- Block action online (#3635)
17+
- Update chain-list (#3680)
18+
- Add XCM support for KSM between Bifrost KSM <> Kusama
19+
- Update RPC for Cess Network
20+
- Add swap pairs for Hydration and ChainFlip (#3633, #3651)
21+
22+
Bugs fixed:
23+
- Fix bug Do not show earning position for StellaSwap (#3647)
24+
- Fix bug Can't import JSON file containing Unified account (#3643)
25+
326
## 1.2.30
427
Build date: Sep 20, 2024.
528

CONTRIBUTORS

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
2831 AnhMTV Release version 1.2.30
2-
2533 Nam Phạm [Issue 3467] fix: refactor staking pallet handling logic
3-
2186 S2kael [Issue-3637] Update stable version for chain-list
1+
2842 AnhMTV Release version 1.2.32
2+
2541 Nam Phạm [Issue 3680] chore: update chainlist
3+
2192 S2kael [Issue-3711] Rollback handle pending state for balance item
44
848 lw-cdm [Issue-3407] WebApp - Support Avail Ledger app
55
565 nguyentiendung [Issue-2845] Fix UI bugs export accounts
66
465 Jaco 0.42.5 (#969)
7-
314 bluezdot [Issue-3635] fix: fix do not show balance
8-
232 Thiendekaco [Issue 3458] [fix] Extension - Support XCM for Ledger Polkadot generic app #3
7+
327 bluezdot [Issue-3635] feat: update content
8+
241 Thiendekaco
99
185 quangdo
1010
160 Automation Bot [CI Skip] Auto increase webapp build number
11-
146 dominhquang [Issue-3468] Improve condition for Marketing campaign
11+
157 dominhquang
1212
118 lw-cdm
1313
104 khainh predefine metadata for Polkadot & Kusama chains
1414
83 Hieu Dao Update README.md
@@ -18,8 +18,8 @@
1818
66 Frenkie Nguyen [Issue 2352] fix eslint
1919
63 Roman fix ui issues
2020
53 Dominhquangdev update Bridge code
21+
28 PDTnhah [Issue-3680] Update chainlist
2122
24 S2kael
22-
24 Thanh [Issue-3637] Update chainlist
2323
10 Trang Trịnh api get karura and acala nfts
2424
9 Minh Le
2525
9 minhld1029 [#115] [ForgetAccount] catch exception refList undefined
@@ -60,5 +60,6 @@
6060
1 Stéphane P README Fix typo (#700)
6161
1 Tore19 Add Stafi network (#454)
6262
1 trieunhu Load transfer history polkadot and kusama by subquid
63+
1 tunghp2002 [Fixed] Extension - Fix do not show earning position for StellaSwap
6364
1 Vlad Proshchavaiev Update extension with Subsocial SS58 included (#416)
6465
1 雪霁 Batch export (#666)

package.json

+4-4
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.30",
13+
"version": "1.2.32",
1414
"workspaces": [
1515
"packages/*"
1616
],
@@ -104,10 +104,10 @@
104104
"@polkadot/types-support": "^12.0.2",
105105
"@polkadot/util": "^12.6.2",
106106
"@polkadot/util-crypto": "^12.6.2",
107-
"@subwallet/chain-list": "0.2.87",
108-
"@subwallet/keyring": "^0.1.6",
107+
"@subwallet/chain-list": "0.2.88",
108+
"@subwallet/keyring": "^0.1.7",
109109
"@subwallet/react-ui": "5.1.2-b79",
110-
"@subwallet/ui-keyring": "^0.1.6",
110+
"@subwallet/ui-keyring": "^0.1.7",
111111
"@zondax/ledger-substrate": "0.44.2",
112112
"babel-core": "^7.0.0-bridge.0",
113113
"babel-jest": "^29.3.1",

packages/extension-base/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
"./detectPackage.cjs"
1818
],
1919
"type": "module",
20-
"version": "1.2.30-0",
20+
"version": "1.2.32-0",
2121
"main": "index.js",
2222
"dependencies": {
2323
"@acala-network/api": "^5.0.2",
2424
"@apollo/client": "^3.7.14",
2525
"@azns/resolver-core": "^1.4.0",
26-
"@chainflip/sdk": "^1.5.2",
26+
"@chainflip/sdk": "^1.6.0",
2727
"@equilab/api": "~1.14.25",
2828
"@ethereumjs/common": "^4.1.0",
2929
"@ethereumjs/tx": "^5.1.0",
3030
"@ethersproject/abi": "^5.7.0",
31-
"@galacticcouncil/sdk": "^4.2.0",
31+
"@galacticcouncil/sdk": "^4.2.1",
3232
"@gear-js/api": "^0.38.1",
3333
"@json-rpc-tools/utils": "^1.7.6",
3434
"@metamask/eth-sig-util": "^7.0.3",
@@ -55,13 +55,13 @@
5555
"@reduxjs/toolkit": "^1.9.1",
5656
"@sora-substrate/type-definitions": "^1.17.7",
5757
"@substrate/connect": "^0.8.9",
58-
"@subwallet/chain-list": "0.2.87",
59-
"@subwallet/extension-base": "^1.2.30-0",
60-
"@subwallet/extension-chains": "^1.2.30-0",
61-
"@subwallet/extension-dapp": "^1.2.30-0",
62-
"@subwallet/extension-inject": "^1.2.30-0",
63-
"@subwallet/keyring": "^0.1.6",
64-
"@subwallet/ui-keyring": "^0.1.6",
58+
"@subwallet/chain-list": "0.2.88",
59+
"@subwallet/extension-base": "^1.2.32-0",
60+
"@subwallet/extension-chains": "^1.2.32-0",
61+
"@subwallet/extension-dapp": "^1.2.32-0",
62+
"@subwallet/extension-inject": "^1.2.32-0",
63+
"@subwallet/keyring": "^0.1.7",
64+
"@subwallet/ui-keyring": "^0.1.7",
6565
"@walletconnect/keyvaluestorage": "^1.1.1",
6666
"@walletconnect/sign-client": "^2.14.0",
6767
"@walletconnect/types": "^2.14.0",
@@ -100,7 +100,7 @@
100100
"web3-utils": "^1.10.0"
101101
},
102102
"devDependencies": {
103-
"@subwallet/extension-mocks": "^1.2.30-0",
103+
"@subwallet/extension-mocks": "^1.2.32-0",
104104
"@types/uuid": "^9.0.1"
105105
}
106106
}

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

+10-9
Original file line numberDiff line numberDiff line change
@@ -491,15 +491,16 @@ export enum ExtrinsicType {
491491
SEND_NFT = 'send_nft',
492492
CROWDLOAN = 'crowdloan',
493493

494-
STAKING_JOIN_POOL = 'staking.join_pool',
495-
STAKING_LEAVE_POOL = 'staking.leave_pool',
496-
STAKING_POOL_WITHDRAW = 'staking.pool_withdraw',
494+
STAKING_JOIN_POOL = 'staking.join_pool', // todo: merge to JOIN_YIELD_POOL
495+
STAKING_LEAVE_POOL = 'staking.leave_pool', // todo: deprecated, STAKING_LEAVE_POOL + STAKING_UNBOND
496+
STAKING_POOL_WITHDRAW = 'staking.pool_withdraw', // todo: deprecated, STAKING_POOL_WITHDRAW + STAKING_WITHDRAW
497+
497498
STAKING_BOND = 'staking.bond',
498-
STAKING_UNBOND = 'staking.unbond',
499+
STAKING_UNBOND = 'staking.unbond', // todo: STAKING_LEAVE_POOL + STAKING_UNBOND
499500
STAKING_CLAIM_REWARD = 'staking.claim_reward',
500-
STAKING_WITHDRAW = 'staking.withdraw',
501-
STAKING_COMPOUNDING = 'staking.compounding',
502-
STAKING_CANCEL_COMPOUNDING = 'staking.cancel_compounding',
501+
STAKING_WITHDRAW = 'staking.withdraw', // todo: STAKING_POOL_WITHDRAW + STAKING_WITHDRAW
502+
STAKING_COMPOUNDING = 'staking.compounding', // deprecated
503+
STAKING_CANCEL_COMPOUNDING = 'staking.cancel_compounding', // deprecated
503504
STAKING_CANCEL_UNSTAKE = 'staking.cancel_unstake',
504505

505506
JOIN_YIELD_POOL = 'earn.join_pool', // TODO: review this
@@ -2194,8 +2195,8 @@ export interface KoniRequestSignatures {
21942195
'pri(derivation.createV2)': [RequestDeriveCreateV2, boolean]; // Substrate
21952196

21962197
// Restore by json
2197-
'pri(json.restoreV2)': [RequestJsonRestoreV2, void];
2198-
'pri(json.batchRestoreV2)': [RequestBatchRestoreV2, void];
2198+
'pri(json.restoreV2)': [RequestJsonRestoreV2, string[]];
2199+
'pri(json.batchRestoreV2)': [RequestBatchRestoreV2, string[]];
21992200

22002201
// Export account
22012202
'pri(accounts.batchExportV2)': [RequestAccountBatchExportV2, ResponseAccountBatchExportV2];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { ExtrinsicType } from '@subwallet/extension-base/background/KoniTypes';
5+
import { fetchStaticData } from '@subwallet/extension-base/utils';
6+
7+
interface BlockedActionsFeaturesMap {
8+
blockedActionsMap: Record<ExtrinsicType, string[]>
9+
blockedFeaturesList: string[],
10+
}
11+
12+
const BLOCKED_ACTIONS_AND_FEATURES_PROMISE = fetchStaticData<BlockedActionsFeaturesMap>('blocked-actions-features');
13+
14+
export const fetchLastestBlockedActionsAndFeatures = async () => {
15+
return await BLOCKED_ACTIONS_AND_FEATURES_PROMISE;
16+
};

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

+1
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ export const PERMISSIONS_TO_REVOKE = ['eth_accounts'];
4242

4343
export * from './staking';
4444
export * from './storage';
45+
export * from './blocked-actions-list';

0 commit comments

Comments
 (0)