cardano_wallet 0.2.5 → 0.2.6
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.
- checksums.yaml +4 -4
- data/lib/cardano_wallet/misc.rb +10 -2
- data/lib/cardano_wallet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e03252209057d5605ab9020ce1ef5ff66f123c6de43039595fbcfeefcc93ceb
|
4
|
+
data.tar.gz: 17be8811e28fa42f2b7dcc3f143d15d1f3b86ff186031c30dccbd71ee6487028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92fb3ce4f8d6083e03dce79d4a617b672d28c5952590b5ac9604ebd01352ed03d59e62aa3a42f6a1674800a10fa3e26355897dabebfde916a90c73a1e7471a94
|
7
|
+
data.tar.gz: db0decbb39674070b8741ade621a3e1dd5d6fe8a8539dc13ceaac303bc7b86fc6304c13709caa9f5bfafaecde3f56468ceadbfe879f77243cc407f92716d3526
|
data/lib/cardano_wallet/misc.rb
CHANGED
@@ -95,8 +95,7 @@ module CardanoWallet
|
|
95
95
|
|
96
96
|
self.class.post("/wallets/#{wid}/signatures/#{role}/#{index}",
|
97
97
|
:body => payload.to_json,
|
98
|
-
:headers => { 'Content-Type' => 'application/json'
|
99
|
-
'Accept' => 'application/octet-stream'} )
|
98
|
+
:headers => { 'Content-Type' => 'application/json' } )
|
100
99
|
end
|
101
100
|
|
102
101
|
# @see https://input-output-hk.github.io/cardano-wallet/api/#operation/getWalletKey
|
@@ -109,6 +108,15 @@ module CardanoWallet
|
|
109
108
|
self.class.get("/addresses/#{address_id}")
|
110
109
|
end
|
111
110
|
|
111
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postAnyAddress
|
112
|
+
def post_address(payload)
|
113
|
+
CardanoWallet::Utils.verify_param_is_hash!(payload)
|
114
|
+
self.class.post("/addresses",
|
115
|
+
:body => payload.to_json,
|
116
|
+
:headers => { 'Content-Type' => 'application/json',
|
117
|
+
'Accept' => 'application/json'} )
|
118
|
+
end
|
119
|
+
|
112
120
|
end
|
113
121
|
|
114
122
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Proxy
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cardano_wallet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Stachyra
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|