@ecency/wallets 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node/index.mjs
CHANGED
|
@@ -1431,12 +1431,13 @@ async function withdrawVestingRouteHive(payload) {
|
|
|
1431
1431
|
return hs.sendOperation(operation, { callback: `https://ecency.com/@${params.from_account}/wallet` }, () => {
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
|
-
function useClaimRewards(username, onSuccess) {
|
|
1434
|
+
function useClaimRewards(username, accessToken, onSuccess) {
|
|
1435
1435
|
const { data } = useQuery(getAccountFullQueryOptions(username));
|
|
1436
1436
|
const queryClient = useQueryClient();
|
|
1437
1437
|
return useBroadcastMutation(
|
|
1438
1438
|
["assets", "hive", "claim-rewards", data?.name],
|
|
1439
1439
|
username,
|
|
1440
|
+
accessToken,
|
|
1440
1441
|
() => {
|
|
1441
1442
|
if (!data) {
|
|
1442
1443
|
throw new Error("Failed to fetch account while claiming balance");
|
|
@@ -4189,10 +4190,14 @@ function getGroupedChainTokens(tokens, defaultShow) {
|
|
|
4189
4190
|
)
|
|
4190
4191
|
);
|
|
4191
4192
|
}
|
|
4192
|
-
function useSaveWalletInformationToMetadata(username, options2) {
|
|
4193
|
+
function useSaveWalletInformationToMetadata(username, accessToken, auth, options2) {
|
|
4193
4194
|
const queryClient = useQueryClient();
|
|
4194
4195
|
const { data: accountData } = useQuery(getAccountFullQueryOptions(username));
|
|
4195
|
-
const { mutateAsync: updateProfile } = useAccountUpdate(
|
|
4196
|
+
const { mutateAsync: updateProfile } = useAccountUpdate(
|
|
4197
|
+
username,
|
|
4198
|
+
accessToken,
|
|
4199
|
+
auth
|
|
4200
|
+
);
|
|
4196
4201
|
return useMutation({
|
|
4197
4202
|
mutationKey: [
|
|
4198
4203
|
"ecency-wallets",
|