From 88328c5d6cb4480ec31d0859d58656254d48ed64 Mon Sep 17 00:00:00 2001 From: mtyszczak Date: Fri, 4 Jul 2025 15:51:01 +0200 Subject: [PATCH 1/2] Bump wax version --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a6e44b7..835dfd5 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "typescript": "^5.4.5" }, "dependencies": { - "@hiveio/wax": "1.27.6-rc7-stable.250513162056", + "@hiveio/wax": "1.27.6-rc7-stable.250701234723", "comlink": "^4.4.1" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 644ea78..4c278c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@hiveio/wax': - specifier: 1.27.6-rc7-stable.250513162056 - version: 1.27.6-rc7-stable.250513162056 + specifier: 1.27.6-rc7-stable.250701234723 + version: 1.27.6-rc7-stable.250701234723 comlink: specifier: ^4.4.1 version: 4.4.1 @@ -877,8 +877,8 @@ packages: resolution: {integrity: sha1-WM73mERJWR06dqP67ZznUjbya6I=, tarball: https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.11-stable.250513143655.tgz} engines: {node: ^20.11 || >= 21.2} - '@hiveio/wax@1.27.6-rc7-stable.250513162056': - resolution: {integrity: sha1-DIUD5zPj06aDtT1BiriKW84cifE=, tarball: https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-1.27.6-rc7-stable.250513162056.tgz} + '@hiveio/wax@1.27.6-rc7-stable.250701234723': + resolution: {integrity: sha1-XwAc3n7HREsTxo44wBo/0nlZO04=, tarball: https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-1.27.6-rc7-stable.250701234723.tgz} engines: {node: ^20.11 || >= 21.2} '@humanwhocodes/config-array@0.11.14': @@ -3676,7 +3676,7 @@ snapshots: '@hiveio/beekeeper@1.27.11-stable.250513143655': {} - '@hiveio/wax@1.27.6-rc7-stable.250513162056': + '@hiveio/wax@1.27.6-rc7-stable.250701234723': dependencies: '@hiveio/beekeeper': 1.27.11-stable.250513143655 events: 3.3.0 -- GitLab From be7fbb2b408d9a0fd6ec420323670755a1de0908 Mon Sep 17 00:00:00 2001 From: mtyszczak Date: Fri, 4 Jul 2025 15:51:14 +0200 Subject: [PATCH 2/2] Adjust the current code to use new wax version --- src/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index b73a1ab..53b61d3 100644 --- a/src/client.ts +++ b/src/client.ts @@ -229,7 +229,7 @@ abstract class Client { if (keyType === "posting") { txBuilder.pushOperation({ - vote: { + vote_operation: { voter: username, author: "author", permlink: "permlink", @@ -238,11 +238,11 @@ abstract class Client { }); } else if (keyType === "active") { txBuilder.pushOperation({ - limit_order_cancel: { owner: username, orderid: 0 }, + limit_order_cancel_operation: { owner: username, orderid: 0 }, }); } else if (keyType === "owner") { txBuilder.pushOperation({ - decline_voting_rights: { account: username, decline: false }, + decline_voting_rights_operation: { account: username, decline: false }, }); } else { throw new AuthorizationError( -- GitLab