Skip to content

Commit 0674e97

Browse files
5.6.4 (#1713)
* Expose walletConnect data (#1711) * Expose walletConnect data * Update changelog * Add shallow copy * Merge pull request #1712 from multiversx/tm/fix/redux-store-action-names Redux store action names --------- Co-authored-by: Gavrila Andrei <andrei.gavrila@multiversx.com>
2 parents 9ad2c26 + ae5b064 commit 0674e97

8 files changed

Lines changed: 71 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [[5.6.4](https://github.com/multiversx/mx-sdk-dapp/pull/1713)] - 2026-01-19
11+
12+
- [Added missing Redux action names](https://github.com/multiversx/mx-sdk-dapp/pull/1712)
13+
- [Exposed walletConnect URI and deepLink data](https://github.com/multiversx/mx-sdk-dapp/pull/1711)
14+
1015
## [[5.6.3](https://github.com/multiversx/mx-sdk-dapp/pull/1710)] - 2026-01-15
1116

1217
- [Update minimum version for sdk-dapp-ui](https://github.com/multiversx/mx-sdk-dapp/pull/1709)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiversx/sdk-dapp",
3-
"version": "5.6.3",
3+
"version": "5.6.4",
44
"description": "A library to hold the main logic for a dapp on the MultiversX blockchain",
55
"author": "MultiversX",
66
"license": "MIT",

src/managers/internal/WalletConnectStateManager/WalletConnectStateManager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export class WalletConnectStateManager extends UIBaseManager<
3434
this.data = { ...this.initialData };
3535
}
3636

37+
public get walletConnectData(): IWalletConnectModalData {
38+
return { ...this.data };
39+
}
40+
3741
public handleClose(options?: { isLoginFinished?: boolean }) {
3842
if (options?.isLoginFinished) {
3943
return;

src/store/actions/cache/cacheActions.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ export const clearCache = () => {
4040
});
4141
},
4242
false,
43-
'clearCache'
43+
{
44+
type: 'clearCache',
45+
// @ts-ignore
46+
payload: {
47+
value: null
48+
}
49+
}
4450
);
4551
};

src/store/actions/config/configActions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export const setIsSigningUiEnabled = (isEnabled: boolean) =>
9090
},
9191
false,
9292
{
93-
type: 'setIsSigningUiEnabled'
93+
type: 'setIsSigningUiEnabled',
94+
// @ts-ignore
95+
payload: {
96+
value: isEnabled
97+
}
9498
}
9599
);

src/store/actions/sharedActions/sharedActions.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ import { ProviderType } from 'providers/types/providerFactory.types';
33
import { resetStore } from 'store/middleware/logoutMiddleware';
44
import { getStore } from 'store/store';
55

6-
export const logoutAction = () => getStore().setState(resetStore);
6+
export const logoutAction = () =>
7+
getStore().setState(resetStore, false, {
8+
type: 'logoutAction',
9+
// @ts-ignore
10+
payload: {
11+
value: null
12+
}
13+
});
714
export interface LoginActionPayloadType<T extends ProviderType = ProviderType> {
815
address: string;
916
providerType: T;

src/store/actions/toasts/toastsActions.ts

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,19 @@ export const removeAllCustomToasts = () => {
9898
};
9999

100100
export const removeAllTransactionToasts = () => {
101-
getStore().setState(({ toasts: state }) => {
102-
state.transactionToasts = [];
103-
});
101+
getStore().setState(
102+
({ toasts: state }) => {
103+
state.transactionToasts = [];
104+
},
105+
false,
106+
{
107+
type: 'removeAllTransactionToasts',
108+
// @ts-ignore
109+
payload: {
110+
value: null
111+
}
112+
}
113+
);
104114
};
105115

106116
export const addTransactionToast = ({
@@ -130,7 +140,13 @@ export const addTransactionToast = ({
130140
});
131141
},
132142
false,
133-
'addTransactionToast'
143+
{
144+
type: 'addTransactionToast',
145+
// @ts-ignore
146+
payload: {
147+
value: { toastId, totalDuration }
148+
}
149+
}
134150
);
135151

136152
return newToastId;
@@ -144,7 +160,13 @@ export const removeTransactionToast = (toastId: string) => {
144160
});
145161
},
146162
false,
147-
'removeTransactionToast'
163+
{
164+
type: 'removeTransactionToast',
165+
// @ts-ignore
166+
payload: {
167+
value: toastId
168+
}
169+
}
148170
);
149171

150172
delete customToastCloseHandlersDictionary[toastId];
@@ -193,7 +215,13 @@ export const createCustomToast = (props: CustomToastType) => {
193215
}
194216
},
195217
false,
196-
'createCustomToast'
218+
{
219+
type: 'createCustomToast',
220+
// @ts-ignore
221+
payload: {
222+
value: props
223+
}
224+
}
197225
);
198226

199227
return toastId;

src/store/middleware/logoutMiddleware.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ export const logoutMiddleware = (state: StoreType) => {
5959
if (isExpired) {
6060
// logout
6161
setLoginExpiresAt(null);
62-
getStore().setState(resetStore);
62+
getStore().setState(resetStore, false, {
63+
type: 'logoutMiddleware',
64+
// @ts-ignore
65+
payload: {
66+
value: null
67+
}
68+
});
6369
}
6470
};

0 commit comments

Comments
 (0)