From 322cb81db3c4f2d4c40c9773e5944a05c007c2ea Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Wed, 26 May 2021 13:44:57 +0200 Subject: [PATCH 1/2] get account public keys --- lib/cardano_wallet/shared.rb | 6 ++++++ lib/cardano_wallet/shelley.rb | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lib/cardano_wallet/shared.rb b/lib/cardano_wallet/shared.rb index b83b1c9..b22dc1f 100644 --- a/lib/cardano_wallet/shared.rb +++ b/lib/cardano_wallet/shared.rb @@ -55,6 +55,12 @@ def create_acc_public_key(wid, index, pass, format) body: payload.to_json, headers: { 'Content-Type' => 'application/json' }) end + + # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getAccountKeyShared + def get_acc_public_key(wid, query = {}) + query_formatted = query.empty? ? '' : Utils.to_query(query) + self.class.get("/shared-wallets/#{wid}/keys#{query_formatted}") + end end # API for Wallets diff --git a/lib/cardano_wallet/shelley.rb b/lib/cardano_wallet/shelley.rb index 04298c6..79bdec2 100644 --- a/lib/cardano_wallet/shelley.rb +++ b/lib/cardano_wallet/shelley.rb @@ -99,6 +99,12 @@ def create_acc_public_key(wid, index, pass, format) body: payload.to_json, headers: { 'Content-Type' => 'application/json' }) end + + # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getAccountKey + def get_acc_public_key(wid, query = {}) + query_formatted = query.empty? ? '' : Utils.to_query(query) + self.class.get("/wallets/#{wid}/keys#{query_formatted}") + end end # API for Wallets From de20bf90a9090ff975efff6674e6299b5ab1d091 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Wed, 26 May 2021 15:46:57 +0200 Subject: [PATCH 2/2] version to 0.3.8 --- lib/cardano_wallet/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cardano_wallet/version.rb b/lib/cardano_wallet/version.rb index 71ac715..bddf538 100644 --- a/lib/cardano_wallet/version.rb +++ b/lib/cardano_wallet/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module CardanoWallet - VERSION = '0.3.7' + VERSION = '0.3.8' end