Skip to content

Commit 38b373f

Browse files
authored
Release/2.1.2 (#1221)
* Remove Casper 2.0 event-related components and assets * Expand NFT transfer entry points and update transaction building logic * Add support for fetching and displaying NFT collection names and hashes * Introduce trusted WebAssembly state management - Add actions, reducers, and selectors for managing trusted WebAssembly hashes by origin. - Implement sagas for handling trusted WebAssembly state updates on account/site disconnection and vault reset. - Integrate trusted WebAssembly logic into the transaction signing process. - Update persistent storage and state initialization to include trusted WebAssembly. * Release 2.1.2 version
1 parent 04c1f5e commit 38b373f

40 files changed

Lines changed: 442 additions & 257 deletions

File tree

package-lock.json

Lines changed: 6 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Casper Wallet",
33
"description": "Securely manage your CSPR tokens and interact with dapps with the self-custody wallet for the Casper blockchain.",
4-
"version": "2.1.1",
4+
"version": "2.1.2",
55
"author": "MAKE LLC",
66
"scripts": {
77
"devtools:redux": "redux-devtools --hostname=localhost",
@@ -71,8 +71,7 @@
7171
"base64-loader": "1.0.0",
7272
"big.js": "^6.2.1",
7373
"casper-js-sdk": "^5.0.6",
74-
"casper-wallet-core": "git+ssh://git@github.com:make-software/casper-wallet-core.git#v1.1.1",
75-
"confetti-js": "^0.0.18",
74+
"casper-wallet-core": "git+ssh://git@github.com:make-software/casper-wallet-core.git#v1.1.3",
7675
"date-fns": "^2.30.0",
7776
"dotenv-webpack": "^8.1.0",
7877
"i18next": "^23.11.0",

scripts/build_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
HASH=$(git rev-parse --short HEAD)
22

3-
npm run build:chrome && npm run build:firefox && cd ./build && zip -r casper-wallet-2.1.1rc2#$HASH.zip ./* && npm run build:src
3+
npm run build:chrome && npm run build:firefox && cd ./build && zip -r casper-wallet-2.1.2rc2#$HASH.zip ./* && npm run build:src

src/apps/popup/app-router.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { AllAccountsPage } from '@popup/pages/all-accounts';
1111
import { BackupSecretPhrasePage } from '@popup/pages/backup-secret-phrase';
1212
import { BringWeb3Unlock } from '@popup/pages/bring-web3-unlock';
1313
import { BuyCSPRPage } from '@popup/pages/buy-cspr';
14-
import { Casper2EventPage } from '@popup/pages/casper2-event';
1514
import { ChangePasswordPage } from '@popup/pages/change-password';
1615
import { ConnectAnotherAccountPageContent } from '@popup/pages/connect-another-account';
1716
import { ConnectedSitesPage } from '@popup/pages/connected-sites';
@@ -254,7 +253,6 @@ function AppRoutes() {
254253
<Route path={RouterPath.DeployDetails} element={<DeployDetailsPage />} />
255254
<Route path={RouterPath.AddWatchAccount} element={<AddWatchAccount />} />
256255
<Route path={RouterPath.BringWeb3Unlock} element={<BringWeb3Unlock />} />
257-
<Route path={RouterPath.Casper2Event} element={<Casper2EventPage />} />
258256
</Routes>
259257
);
260258
}

src/apps/popup/pages/casper2-event/content.tsx

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/apps/popup/pages/casper2-event/index.tsx

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/apps/popup/pages/deploy-details/components/action-rows/cspr-market-action-rows.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface CsprMarketActionRowsProps {
1919
entryPoint: ICasperMarketDeploy['entryPoint'];
2020
contractName: ICasperMarketDeploy['contractName'];
2121
contractPackageHash: ICasperMarketDeploy['contractPackageHash'];
22+
contractHash: ICasperMarketDeploy['contractHash'];
2223
collectionHash: ICasperMarketDeploy['collectionHash'];
2324
nftTokenIds: ICasperMarketDeploy['nftTokenIds'];
2425
nftTokenUrlsMap: ICasperMarketDeploy['nftTokenUrlsMap'];
@@ -27,21 +28,24 @@ interface CsprMarketActionRowsProps {
2728
fiatAmount: ICasperMarketDeploy['fiatAmount'];
2829
offererHash: ICasperMarketDeploy['offererHash'];
2930
contractLink?: Maybe<string>;
31+
collectionName?: Maybe<string>;
3032
}
3133

3234
export const CsprMarketActionRows = ({
3335
title,
3436
entryPoint,
3537
contractName,
3638
contractPackageHash,
39+
contractHash,
3740
collectionHash,
3841
nftTokenIds,
3942
nftTokenUrlsMap,
4043
offererAccountInfo,
4144
formattedDecimalAmount,
4245
fiatAmount,
4346
offererHash,
44-
contractLink
47+
contractLink,
48+
collectionName
4549
}: CsprMarketActionRowsProps) => {
4650
const isDelist = entryPoint === CsprMarketDeployEntryPoint.delist_token;
4751
const isListAction =
@@ -59,6 +63,8 @@ export const CsprMarketActionRows = ({
5963
nftTokenIds={nftTokenIds}
6064
nftTokenUrlsMap={nftTokenUrlsMap}
6165
contractPackageHash={contractPackageHash}
66+
contractHash={contractHash}
67+
collectionName={collectionName}
6268
collectionHash={collectionHash}
6369
contractLink={contractLink}
6470
/>
@@ -87,9 +93,10 @@ export const CsprMarketActionRows = ({
8793
nftTokenIds={nftTokenIds}
8894
nftTokenUrlsMap={nftTokenUrlsMap}
8995
imgLogo={offererAccountInfo?.brandingLogo}
90-
contractName={offererAccountInfo?.name}
9196
contractPackageHash={contractPackageHash}
97+
contractHash={contractHash}
9298
collectionHash={collectionHash}
99+
collectionName={collectionName}
93100
label="for"
94101
contractLink={contractLink}
95102
/>

0 commit comments

Comments
 (0)