From 61d445bd6cc910c8a0ff3557ba9119785cac9a1b Mon Sep 17 00:00:00 2001
From: jlachor <jlachor@syncad.com>
Date: Tue, 18 Jun 2024 11:30:01 +0200
Subject: [PATCH] Actualize Wax

---
 .npmrc                                  |  2 +-
 components/context.tsx                  |  2 +-
 components/contexts/HiveChainContext.ts |  2 +-
 lib/Formatter.tsx                       |  2 +-
 lib/HiveAppsVisitor.tsx                 |  2 +-
 package-lock.json                       | 53 ++++++++++++++++---------
 package.json                            |  2 +-
 services/FetchingService.ts             |  2 +-
 types/Explorer.ts                       |  2 +-
 types/Hive.ts                           |  2 +-
 utils/QueryDataSelectors.ts             |  2 +-
 11 files changed, 44 insertions(+), 29 deletions(-)

diff --git a/.npmrc b/.npmrc
index 3787f144..02a98e07 100644
--- a/.npmrc
+++ b/.npmrc
@@ -1 +1 @@
-@hive:registry=https://gitlab.syncad.com/api/v4/packages/npm/
\ No newline at end of file
+@hiveio:registry=https://gitlab.syncad.com/api/v4/groups/136/-/packages/npm/
\ No newline at end of file
diff --git a/components/context.tsx b/components/context.tsx
index 09e6520c..e949a807 100644
--- a/components/context.tsx
+++ b/components/context.tsx
@@ -4,7 +4,7 @@ import {
   UserSettingsContext,
 } from "./contexts/UserSettingsContext";
 import { HiveChainContext } from "./contexts/HiveChainContext";
-import { IHiveChainInterface, createHiveChain } from "@hive/wax";
+import { IHiveChainInterface, createHiveChain } from "@hiveio/wax";
 import { AddressesContext } from "./contexts/AddressesContext";
 import useApiAddresses from "@/utils/ApiAddresses";
 import fetchingService from "@/services/FetchingService";
diff --git a/components/contexts/HiveChainContext.ts b/components/contexts/HiveChainContext.ts
index 99324b92..64055cac 100644
--- a/components/contexts/HiveChainContext.ts
+++ b/components/contexts/HiveChainContext.ts
@@ -1,5 +1,5 @@
 import { createContext, useContext } from "react";
-import { IHiveChainInterface } from "@hive/wax";
+import { IHiveChainInterface } from "@hiveio/wax";
 
 
 export type HiveChainContextType = {
diff --git a/lib/Formatter.tsx b/lib/Formatter.tsx
index 6e90d3e8..66ee7a7b 100644
--- a/lib/Formatter.tsx
+++ b/lib/Formatter.tsx
@@ -86,7 +86,7 @@ import {
   withdraw_vesting,
   witness_set_properties,
   witness_update,
-} from "@hive/wax";
+} from "@hiveio/wax";
 import moment from "moment";
 import { formatPercent } from "./utils";
 import Link from "next/link";
diff --git a/lib/HiveAppsVisitor.tsx b/lib/HiveAppsVisitor.tsx
index 3f95e9f9..559e77ed 100644
--- a/lib/HiveAppsVisitor.tsx
+++ b/lib/HiveAppsVisitor.tsx
@@ -8,7 +8,7 @@ import {
   FormattedRcOperation,
   FormattedReblogOperation,
   HiveAppsOperationVisitor,
-} from "@hive/wax";
+} from "@hiveio/wax";
 import { JSX } from "react";
 
 class HiveAppsVisitor extends HiveAppsOperationVisitor<React.JSX.Element> {
diff --git a/package-lock.json b/package-lock.json
index 69f732a0..4a7f03a9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
       "version": "0.2.0",
       "dependencies": {
         "@headlessui/react": "^1.7.15",
-        "@hive/wax": "0.3.8-240416102210",
+        "@hiveio/wax": "^0.3.9-stable.240617105054",
         "@radix-ui/react-accordion": "^1.1.2",
         "@radix-ui/react-dialog": "^1.0.5",
         "@radix-ui/react-label": "^2.0.2",
@@ -210,22 +210,23 @@
         "react-dom": "^16 || ^17 || ^18"
       }
     },
-    "node_modules/@hive/beekeeper": {
-      "version": "1.27.5-rc7-stable.240410185059",
-      "resolved": "https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hive/beekeeper/-/@hive/beekeeper-1.27.5-rc7-stable.240410185059.tgz",
-      "integrity": "sha1-QZD2KOmBUJSfUiOIJCtX2HFMJWY=",
+    "node_modules/@hiveio/beekeeper": {
+      "version": "1.27.5-rc7-stable.240530185524",
+      "resolved": "https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.5-rc7-stable.240530185524.tgz",
+      "integrity": "sha1-uNh5rTpcWFPN7fCQsm3b+DRojF4=",
       "engines": {
         "node": ">= 12"
       }
     },
-    "node_modules/@hive/wax": {
-      "version": "0.3.8-240416102210",
-      "resolved": "https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hive/wax/-/@hive/wax-0.3.8-240416102210.tgz",
-      "integrity": "sha1-ashcble29AUGVjGXxN2HFglhGvU=",
+    "node_modules/@hiveio/wax": {
+      "version": "0.3.9-stable.240617105054",
+      "resolved": "https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-0.3.9-stable.240617105054.tgz",
+      "integrity": "sha1-ZjJB6E0PlAmgMPpraLSCZqS/7lY=",
       "dependencies": {
-        "@hive/beekeeper": "1.27.5-rc7-stable.240410185059",
+        "@hiveio/beekeeper": "1.27.5-rc7-stable.240530185524",
         "class-transformer": "^0.5.1",
         "class-validator": "^0.14.0",
+        "events": "^3.3.0",
         "long": "^5.2.3",
         "protobufjs": "^7.2.5",
         "reflect-metadata": "^0.1.13"
@@ -3480,6 +3481,14 @@
       "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
       "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
     },
+    "node_modules/events": {
+      "version": "3.3.0",
+      "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
+      "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
+      "engines": {
+        "node": ">=0.8.x"
+      }
+    },
     "node_modules/expand-template": {
       "version": "2.0.3",
       "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
@@ -6901,19 +6910,20 @@
         "client-only": "^0.0.1"
       }
     },
-    "@hive/beekeeper": {
-      "version": "1.27.5-rc7-stable.240410185059",
-      "resolved": "https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hive/beekeeper/-/@hive/beekeeper-1.27.5-rc7-stable.240410185059.tgz",
-      "integrity": "sha1-QZD2KOmBUJSfUiOIJCtX2HFMJWY="
+    "@hiveio/beekeeper": {
+      "version": "1.27.5-rc7-stable.240530185524",
+      "resolved": "https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.5-rc7-stable.240530185524.tgz",
+      "integrity": "sha1-uNh5rTpcWFPN7fCQsm3b+DRojF4="
     },
-    "@hive/wax": {
-      "version": "0.3.8-240416102210",
-      "resolved": "https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hive/wax/-/@hive/wax-0.3.8-240416102210.tgz",
-      "integrity": "sha1-ashcble29AUGVjGXxN2HFglhGvU=",
+    "@hiveio/wax": {
+      "version": "0.3.9-stable.240617105054",
+      "resolved": "https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-0.3.9-stable.240617105054.tgz",
+      "integrity": "sha1-ZjJB6E0PlAmgMPpraLSCZqS/7lY=",
       "requires": {
-        "@hive/beekeeper": "1.27.5-rc7-stable.240410185059",
+        "@hiveio/beekeeper": "1.27.5-rc7-stable.240530185524",
         "class-transformer": "^0.5.1",
         "class-validator": "^0.14.0",
+        "events": "^3.3.0",
         "long": "^5.2.3",
         "protobufjs": "^7.2.5",
         "reflect-metadata": "^0.1.13"
@@ -9027,6 +9037,11 @@
       "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
       "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
     },
+    "events": {
+      "version": "3.3.0",
+      "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
+      "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="
+    },
     "expand-template": {
       "version": "2.0.3",
       "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
diff --git a/package.json b/package.json
index 5e3557d9..bd2d7e3b 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
   },
   "dependencies": {
     "@headlessui/react": "^1.7.15",
-    "@hive/wax": "0.3.8-240416102210",
+    "@hiveio/wax": "^0.3.9-stable.240617105054",
     "@radix-ui/react-accordion": "^1.1.2",
     "@radix-ui/react-dialog": "^1.0.5",
     "@radix-ui/react-label": "^2.0.2",
diff --git a/services/FetchingService.ts b/services/FetchingService.ts
index 4f4724e7..be5080e3 100644
--- a/services/FetchingService.ts
+++ b/services/FetchingService.ts
@@ -1,7 +1,7 @@
 import Hive from "@/types/Hive";
 import { config } from "@/Config";
 import Explorer from "@/types/Explorer";
-import { GetDynamicGlobalPropertiesResponse, IHiveChainInterface, TWaxApiRequest, TWaxExtended } from "@hive/wax";
+import { GetDynamicGlobalPropertiesResponse, IHiveChainInterface, TWaxApiRequest, TWaxExtended } from "@hiveio/wax";
 
 type ExplorerNodeApi = {
   database_api: {
diff --git a/types/Explorer.ts b/types/Explorer.ts
index fb6d43b5..cf2b325b 100644
--- a/types/Explorer.ts
+++ b/types/Explorer.ts
@@ -1,4 +1,4 @@
-import { GetDynamicGlobalPropertiesResponse } from "@hive/wax";
+import { GetDynamicGlobalPropertiesResponse } from "@hiveio/wax";
 import Hive from "./Hive";
 
 declare module Explorer {
diff --git a/types/Hive.ts b/types/Hive.ts
index 0d109740..fd403aac 100644
--- a/types/Hive.ts
+++ b/types/Hive.ts
@@ -1,4 +1,4 @@
-import { IManabarData } from "@hive/wax";
+import { IManabarData } from "@hiveio/wax";
 
 declare module Hive {
   interface HiveBlogProps {
diff --git a/utils/QueryDataSelectors.ts b/utils/QueryDataSelectors.ts
index 002a7ac4..ca6f6bea 100644
--- a/utils/QueryDataSelectors.ts
+++ b/utils/QueryDataSelectors.ts
@@ -1,7 +1,7 @@
 import Explorer from "@/types/Explorer";
 import Hive from "@/types/Hive";
 import { formatPercent } from "@/lib/utils";
-import { GetDynamicGlobalPropertiesResponse, IHiveChainInterface } from "@hive/wax";
+import { GetDynamicGlobalPropertiesResponse, IHiveChainInterface } from "@hiveio/wax";
 import { formatAndDelocalizeTime } from "@/utils/TimeUtils";
 
 /**
-- 
GitLab