Skip to content

Commit 614631c

Browse files
authored
Merge pull request #1003 from crypto-com/dev
Internal Release v0.7.1
2 parents 0bbdedc + 35e5262 commit 614631c

File tree

9 files changed

+40
-6
lines changed

9 files changed

+40
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
*Unreleased*
66

77
*Released*
8+
## [v0.7.1] - 2022-02-23
9+
### Additions
10+
- DApps Analytics
11+
### Bug fixes
12+
- DApps Ranking pictures not loaded
13+
- Incorrect Rpc URL
14+
- Security fix on dyld loading
815
## [v0.7.0] - 2022-02-21
916
### Additions
1017
- DApps Ranking

entitlements.mac.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
88
<true/>
99
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
10-
<true/>
10+
<false/>
1111
<key>com.apple.security.network.client</key>
1212
<true/>
1313
<key>com.apple.security.network.server</key>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chain-desktop-wallet",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Crypto.com Chain Desktop Wallet App",
55
"repository": "github:crypto-com/chain-desktop-wallet",
66
"author": "Crypto.org <[email protected]>",

src/pages/dapp/browser/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { remote } = window.require('electron');
55
export class ChainConfig {
66
static ChainId = 0x19;
77

8-
static RpcUrl = 'https://evm-cronos.org';
8+
static RpcUrl = 'https://evm.cronos.org';
99

1010
static ExplorerAPIUrl = 'https://cronos.org/explorer/api';
1111
}

src/pages/dapp/browser/preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ try {
553553

554554
const providerConfig = {
555555
chainId: 25,
556-
rpcUrl: 'https://evm-cronos.org',
556+
rpcUrl: 'https://evm.cronos.org',
557557
isDebug: true,
558558
};
559559
window.ethereum = new window.desktopWallet.Provider(providerConfig);

src/pages/dapp/components/Tabs/CronosDAppsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const CronosDAppsTab = (props: ICronosDappsTabProps) => {
7878
display: 'inline',
7979
borderRadius: '12px',
8080
}}
81-
src={`/dapp_logos/${project.logo}`}
81+
src={`./dapp_logos/${project.logo}`}
8282
alt="project logo"
8383
/>
8484
<span

src/pages/dapp/dapp.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const DappPage = () => {
6969
const currentSession = useRecoilValue(sessionState);
7070
const [selectedDapp, setSelectedDapp] = useState<Dapp>();
7171
const [selectedURL, setSelectedURL] = useState('');
72+
const [selectedDomain, setSelectedDomain] = useState('');
7273
const [t] = useTranslation();
7374
const browserRef = useRef<DappBrowserRef>(null);
7475

@@ -219,6 +220,13 @@ const DappPage = () => {
219220
if (!url || url.length < 1) {
220221
return;
221222
}
223+
224+
const domain = new URL(url).hostname;
225+
if (selectedDomain !== domain) {
226+
analyticsService.logBrowserDomain(domain);
227+
setSelectedDomain(domain ?? '');
228+
}
229+
222230
setAddressBarValue(url);
223231
updateBookmarkButtonBeHighlighted();
224232
}}

src/pages/nft/nft.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,11 @@ const NftPage = () => {
13641364
const NftAttributeTableColumns = [
13651365
{
13661366
title: t('nft.detailModal.traitType'),
1367-
dataIndex: 'traitType',
1367+
// dataIndex: 'traitType',
13681368
key: 'traitType',
1369+
render: record => {
1370+
return record.trait_type || record.traitType;
1371+
},
13691372
},
13701373
{
13711374
title: t('nft.detailModal.value'),

src/service/analytics/AnalyticsService.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export enum AnalyticsCategory {
3030
Voting = 'Voting',
3131
Nft = 'Nft',
3232
Bridge = 'Bridge',
33+
DApp = 'Browsing',
3334
}
3435

3536
export class AnalyticsService {
@@ -67,6 +68,21 @@ export class AnalyticsService {
6768
}
6869
}
6970

71+
public logBrowserDomain(domain: string) {
72+
try {
73+
if (this.currentSession.wallet.config.analyticsDisabled) {
74+
// DONT RECORD WHEN ANALYTICS IS DISABLED
75+
return;
76+
}
77+
78+
if (domain) {
79+
actionEvent('DAppBrowser', AnalyticsCategory.DApp, domain, 0);
80+
}
81+
} catch (e) {
82+
// Ignore
83+
}
84+
}
85+
7086
public logPage(pageName: string) {
7187
try {
7288
if (this.currentSession.wallet.config.analyticsDisabled) {

0 commit comments

Comments
 (0)