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

Release/1.6.2 #845

Merged
merged 72 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
75b0717
added listener for window closing (#752)
ost-ptk Aug 23, 2023
606cb69
fix displaying amount in CSPR only for Casper (#753)
ost-ptk Aug 23, 2023
1540c87
UI changed based on a new design (#754)
ost-ptk Aug 23, 2023
9c3058c
fixed skeleton for NFT image and made small changes (#755)
ost-ptk Aug 23, 2023
67623d7
feature: add remembering scroll position in the NFT, Deploys and Toke…
ost-ptk Aug 30, 2023
e6e4a53
illustrations are updated (#762)
ost-ptk Aug 30, 2023
d9e20b9
fix: fix native transfer in Firefox (#763)
ost-ptk Aug 30, 2023
24015b4
added tooltip on hover hash (#764)
ost-ptk Aug 30, 2023
6b535dc
Redesign list of NFTs (#766)
Comp0te Sep 4, 2023
8a25104
Fix issue with deploy timestamp (#768)
Comp0te Sep 6, 2023
2d76d97
Release 1.5.2 version (#777)
Comp0te Sep 12, 2023
5160753
feature: add NFT token transfer (#769)
ost-ptk Sep 12, 2023
77ecb70
fix issues with the layout of a deploy list (#772)
ost-ptk Sep 12, 2023
a8d68e2
build(deps): bump sqlite3 from 5.0.8 to 5.1.6 (#694)
dependabot[bot] Sep 12, 2023
19f439a
build(deps): bump json5 from 1.0.1 to 1.0.2 (#695)
dependabot[bot] Sep 12, 2023
466b193
build(deps): bump dns-packet from 5.3.1 to 5.6.0 (#696)
dependabot[bot] Sep 12, 2023
d140835
build(deps): bump xml2js and web-ext (#697)
dependabot[bot] Sep 12, 2023
ca3bb03
build(deps-dev): bump eslint-plugin-jsx-a11y from 6.6.1 to 6.7.1 (#703)
dependabot[bot] Sep 12, 2023
d65233a
build(deps-dev): bump fs-extra from 11.1.0 to 11.1.1 (#705)
dependabot[bot] Sep 12, 2023
2c017ad
build(deps-dev): bump i18next-conv from 13.1.0 to 14.0.0 (#706)
dependabot[bot] Sep 12, 2023
afb987d
build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#731)
dependabot[bot] Sep 12, 2023
ac935a9
build(deps-dev): bump apollo-server-core from 3.11.1 to 3.12.1 (#765)
dependabot[bot] Sep 12, 2023
fbdc4db
build(deps): bump i18next from 21.10.0 to 23.5.1 (#773)
dependabot[bot] Sep 12, 2023
39b02f2
fix account status indicator (#775)
ost-ptk Sep 12, 2023
c831d4e
build(deps-dev): bump eslint from 8.28.0 to 8.49.0 (#776)
dependabot[bot] Sep 12, 2023
239a66f
build(deps): bump got and @redux-devtools/cli (#780)
dependabot[bot] Sep 12, 2023
fc0d6a5
build(deps): bump react-player from 2.12.0 to 2.13.0 (#785)
dependabot[bot] Sep 17, 2023
69e6ff5
build(deps-dev): bump prettier from 2.8.0 to 3.0.3 (#786)
dependabot[bot] Sep 17, 2023
48d534d
build(deps): bump redux from 4.2.0 to 4.2.1 (#787)
dependabot[bot] Sep 17, 2023
b0b6ebb
build(deps-dev): bump webpack-dev-server from 4.11.1 to 4.15.1 (#788)
dependabot[bot] Sep 17, 2023
5a3f50c
build(deps-dev): bump @types/chrome from 0.0.203 to 0.0.246 (#791)
dependabot[bot] Sep 17, 2023
93f713e
added message for not supporting reverse look-up modality (#783)
ost-ptk Sep 17, 2023
2ffcbbf
added a placeholder for the contract logo (#784)
ost-ptk Sep 17, 2023
240960b
fix: fix issue with prettier config (#792)
ost-ptk Sep 18, 2023
18788fb
added new UI for erc-20 action displaying (#790)
ost-ptk Sep 18, 2023
a1b2974
build(deps-dev): bump geckodriver from 3.2.0 to 4.2.1 (#793)
dependabot[bot] Sep 18, 2023
4189590
build(deps): bump react-query from 3.39.2 to 3.39.3 (#794)
dependabot[bot] Sep 18, 2023
5b9f7ab
build(deps): bump react-router-dom from 6.4.4 to 6.16.0 (#795)
dependabot[bot] Sep 18, 2023
8ae21b3
build(deps): bump @scure/bip39 from 1.1.0 to 1.2.1 (#796)
dependabot[bot] Sep 18, 2023
538904f
build(deps-dev): bump electron from 25.8.0 to 25.8.1 (#798)
dependabot[bot] Sep 18, 2023
6897362
build(deps-dev): bump lint-staged from 13.0.4 to 14.0.1 (#800)
dependabot[bot] Sep 22, 2023
fe0abda
build(deps-dev): bump tsconfig-paths-webpack-plugin from 4.0.0 to 4.1…
dependabot[bot] Sep 22, 2023
bac8e06
build(deps-dev): bump @types/facepaint from 1.2.2 to 1.2.3 (#803)
dependabot[bot] Sep 22, 2023
01d382f
build(deps-dev): bump webpack-cli from 5.0.0 to 5.1.4 (#804)
dependabot[bot] Sep 22, 2023
a5e8f9c
removed input type from the transaction fee fields (#807)
ost-ptk Sep 25, 2023
d4f8183
changed method of creating Keys for signing (#808)
ost-ptk Sep 25, 2023
3172029
fix: fix scope of bugs (#809)
ost-ptk Sep 25, 2023
0c69c55
fixed issue with the navigation menu screen scroll (#818)
ost-ptk Oct 4, 2023
e97e067
casper logo updated (#817)
ost-ptk Oct 4, 2023
8611813
removed the tooltip with the full public key when the user has only o…
ost-ptk Oct 4, 2023
3f5bb5b
build(deps-dev): bump electron from 25.8.1 to 25.9.0 (#822)
dependabot[bot] Oct 9, 2023
af2a411
disabled send button on NFT details page after this NFT was sent (#824)
ost-ptk Oct 9, 2023
ee1f7d8
fixed issue with the scroll on home page (#825)
ost-ptk Oct 9, 2023
fffe3a9
Release 1.6.0 version (#826)
Comp0te Oct 12, 2023
c3f7c28
added countdown for user password length (#806)
ost-ptk Oct 12, 2023
241f1e6
feature: add change password page (#799)
ost-ptk Oct 12, 2023
ecaa90f
added a checkbox for setting the max transfer amount for CSPR transfe…
ost-ptk Oct 12, 2023
b70605b
fixed issue with words highlighting in the confirm secret phrase view…
ost-ptk Oct 12, 2023
59310a3
feature: add dark mode (#821)
ost-ptk Oct 14, 2023
d602b30
build(deps): bump @scure/bip32 from 1.1.1 to 1.3.2 (#812)
dependabot[bot] Oct 14, 2023
2870976
build(deps-dev): bump webpack from 5.76.0 to 5.88.2 (#813)
dependabot[bot] Oct 14, 2023
fbc1291
build(deps-dev): bump eslint-plugin-react from 7.31.11 to 7.33.2 (#814)
dependabot[bot] Oct 14, 2023
de4e25c
build(deps-dev): bump @babel/preset-env from 7.20.2 to 7.23.2 (#828)
dependabot[bot] Oct 14, 2023
57c4138
Improve skeleton for dark mode (#835)
Comp0te Oct 17, 2023
22873f4
Release 1.6.1 version (#837)
Comp0te Oct 19, 2023
7ba1faa
fixed issue with insufficient data for displaying erc-20 tokens (#840)
ost-ptk Nov 1, 2023
4e4b1f7
Improve erc20 tokens fetching
Comp0te Aug 24, 2023
2dacf5d
Update README.md to add reference to CSPR.click for integration (#842)
mrkara Nov 1, 2023
0b9ce1c
Release 1.6.2 version
Comp0te Nov 2, 2023
a126702
Improve erc20 tokens fetching (#843)
Comp0te Nov 2, 2023
d021c4b
Merge remote-tracking branch 'origin/develop' into release/1.6.2
Comp0te Nov 2, 2023
8ff939f
Merge remote-tracking branch 'origin/master' into release/1.6.2
Comp0te Nov 2, 2023
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: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

---

## Integrate Casper Wallet Into Your App

The recommended way of integrating Casper Wallet into your app is through [CSPR.click](https://CSPR.click), which provides a combined integration of major wallets in the Casper ecosystem, all at once, without the burden of maintaining multiple integrations at the same time. Please head over to [the CSPR.click documentation](https://docs.cspr.click) to start.

## Testing Casper Wallet integration on **Casper Wallet Playground**

*Casper Wallet Playground is a React webapp created as a developer tool to help test integration with various features available in Casper Wallet.*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Casper Wallet",
"description": "Securely manage your CSPR tokens and interact with dapps with the self-custody wallet for the Casper blockchain.",
"version": "1.6.1",
"version": "1.6.2",
"author": "MAKE LLC",
"scripts": {
"devtools:redux": "redux-devtools --hostname=localhost",
Expand Down
4 changes: 2 additions & 2 deletions src/apps/popup/pages/home/components/tokens-list/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const formatErc20TokenBalance = (
name: token.contract_name,
balance: token.balance,
amount: erc20Amount,
symbol: token.metadata.symbol,
decimals: token.metadata.decimals,
symbol: token.metadata?.symbol || '',
decimals: token.metadata?.decimals,
amountFiat: null,
icon: token.icon_url || 'assets/icons/erc20-avatar.svg'
};
Expand Down
34 changes: 7 additions & 27 deletions src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ import {
MapExtendedDeploy,
MapPaginatedExtendedDeploys
} from '@libs/services/account-activity-service';
import {
fetchContractPackage,
fetchErc20Tokens
} from '@libs/services/erc20-service';
import { fetchErc20Tokens } from '@libs/services/erc20-service';

import { openWindow } from './open-window';
import {
Expand Down Expand Up @@ -102,7 +99,7 @@ import {
} from './redux/settings/actions';
import { activeOriginChanged } from './redux/active-origin/actions';
import { selectApiConfigBasedOnActiveNetwork } from './redux/settings/selectors';
import { getUrlOrigin, hasHttpPrefix, notEmpty } from '@src/utils';
import { getUrlOrigin, hasHttpPrefix } from '@src/utils';
import {
CannotGetActiveAccountError,
CannotGetSenderOriginError
Expand Down Expand Up @@ -642,28 +639,11 @@ browser.runtime.onMessage.addListener(
});

if (tokensList) {
const erc20Tokens = await Promise.allSettled(
tokensList?.map(token =>
fetchContractPackage({
casperApiUrl,
contractPackageHash: token.contract_package_hash
}).then(contractPackage => ({
...contractPackage,
balance: token.balance,
contractHash: token.latest_contract?.contract_hash
}))
)
).then(results =>
results
.map(result => {
if (result.status === 'fulfilled') {
return result.value;
} else {
return null;
}
})
.filter(notEmpty)
);
const erc20Tokens = tokensList.map(token => ({
balance: token.balance,
contractHash: token.latest_contract?.contract_hash,
...(token?.contract_package ?? {})
}));

return sendResponse(
serviceMessage.fetchErc20TokensResponse(erc20Tokens)
Expand Down
2 changes: 1 addition & 1 deletion src/libs/services/erc20-service/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const getErc20TokensUrl = (casperApiUrl: string, accountHash: string) =>
`${casperApiUrl}/accounts/${accountHash}/erc20-tokens?fields=latest_contract`;
`${casperApiUrl}/accounts/${accountHash}/erc20-tokens?fields=latest_contract,contract_package`;

export const getContractPackageUrl = (
casperApiUrl: string,
Expand Down
1 change: 1 addition & 0 deletions src/libs/services/erc20-service/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Erc20Token {
protocol_version: string;
timestamp: string;
};
contract_package: ContractPackage;
}

export interface ContractPackage {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/ui/components/token-plate/token-plate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const TokenPlate = ({
type="bodyHash"
color="contentSecondary"
ellipsis={!!(token?.symbol && token.symbol.length > 6)}
loading={!token?.symbol}
loading={!token?.symbol && token?.symbol !== ''}
>
{token?.symbol}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
CODE_SIGN_ENTITLEMENTS = "Casper Wallet/Casper Wallet.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 30;
CURRENT_PROJECT_VERSION = 32;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Casper Wallet/Info.plist";
Expand All @@ -578,7 +578,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 1.6.1;
MARKETING_VERSION = 1.6.2;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -601,7 +601,7 @@
CODE_SIGN_ENTITLEMENTS = "Casper Wallet/Casper Wallet.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 30;
CURRENT_PROJECT_VERSION = 32;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Casper Wallet/Info.plist";
Expand All @@ -615,7 +615,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 1.6.1;
MARKETING_VERSION = 1.6.2;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand Down
Loading