cardano_wallet 0.3.23 → 0.3.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cardano_wallet/misc.rb +13 -0
- 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: 35cd30306a63c77b58078620e3f2ba87d946d02aab3296f7fc45065fbcf39895
|
4
|
+
data.tar.gz: ac4cb6ce2d4cf45c2ab37d2d202448ef9db48c0329feca3f60f301bfd95dc5cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770fc6e86c6cf4677bd33bcfe2230515bbfd09e62829fce990219e92ff56a5d8f26160d706c60f333c6b8771b37ab0b204f1a477d4180097dba71198fa06e547
|
7
|
+
data.tar.gz: 4bce9526e3daa72f811a6bbc3d16311076c59ce600ff275fdc0b25a3c4484d21e2afe1242910ae9594033d407825bf5f7424b22e7cd7385892bc0abebe9577e3
|
data/lib/cardano_wallet/misc.rb
CHANGED
@@ -31,6 +31,19 @@ module CardanoWallet
|
|
31
31
|
def settings
|
32
32
|
Settings.new @opt
|
33
33
|
end
|
34
|
+
|
35
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Node
|
36
|
+
def node
|
37
|
+
Node.new @opt
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Node
|
42
|
+
class Node < Base
|
43
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Node/paths/~1blocks~1latest~1header/get
|
44
|
+
def block_header
|
45
|
+
self.class.get('/blocks/latest/header')
|
46
|
+
end
|
34
47
|
end
|
35
48
|
|
36
49
|
# API for Network
|
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.3.
|
4
|
+
version: 0.3.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Stachyra
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|