@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.cjs
CHANGED
|
@@ -1459,12 +1459,13 @@ async function withdrawVestingRouteHive(payload) {
|
|
|
1459
1459
|
return hs__default.default.sendOperation(operation, { callback: `https://ecency.com/@${params.from_account}/wallet` }, () => {
|
|
1460
1460
|
});
|
|
1461
1461
|
}
|
|
1462
|
-
function useClaimRewards(username, onSuccess) {
|
|
1462
|
+
function useClaimRewards(username, accessToken, onSuccess) {
|
|
1463
1463
|
const { data } = reactQuery.useQuery(sdk.getAccountFullQueryOptions(username));
|
|
1464
1464
|
const queryClient = reactQuery.useQueryClient();
|
|
1465
1465
|
return sdk.useBroadcastMutation(
|
|
1466
1466
|
["assets", "hive", "claim-rewards", data?.name],
|
|
1467
1467
|
username,
|
|
1468
|
+
accessToken,
|
|
1468
1469
|
() => {
|
|
1469
1470
|
if (!data) {
|
|
1470
1471
|
throw new Error("Failed to fetch account while claiming balance");
|
|
@@ -4217,10 +4218,14 @@ function getGroupedChainTokens(tokens, defaultShow) {
|
|
|
4217
4218
|
)
|
|
4218
4219
|
);
|
|
4219
4220
|
}
|
|
4220
|
-
function useSaveWalletInformationToMetadata(username, options2) {
|
|
4221
|
+
function useSaveWalletInformationToMetadata(username, accessToken, auth, options2) {
|
|
4221
4222
|
const queryClient = reactQuery.useQueryClient();
|
|
4222
4223
|
const { data: accountData } = reactQuery.useQuery(sdk.getAccountFullQueryOptions(username));
|
|
4223
|
-
const { mutateAsync: updateProfile } = sdk.useAccountUpdate(
|
|
4224
|
+
const { mutateAsync: updateProfile } = sdk.useAccountUpdate(
|
|
4225
|
+
username,
|
|
4226
|
+
accessToken,
|
|
4227
|
+
auth
|
|
4228
|
+
);
|
|
4224
4229
|
return reactQuery.useMutation({
|
|
4225
4230
|
mutationKey: [
|
|
4226
4231
|
"ecency-wallets",
|