cardano_wallet 0.1.3 → 0.1.4
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/.github/workflows/nightly.yml +1 -1
- data/docker-compose-shelley.yml +3 -5
- data/lib/cardano_wallet/byron.rb +6 -0
- data/lib/cardano_wallet/shelley.rb +6 -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: 17ae7a59007ca84a6d8e72a27aa27e5caf3d06392760cbb9a148bafdb85a174a
|
|
4
|
+
data.tar.gz: 716c172249989ba3e18984b1decb7b22be01b76197528f5671a0ba48f2948681
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 819b043669d707e770e17ccb2abdd3a8e24e16e5fd64d2ee288fbecc2c668955415172e8b8b7ea67717dba9aaa5dbb91fbd3771577d7b92355d577e2158ef96e
|
|
7
|
+
data.tar.gz: 4a8b7ca55f536b52320d2834ad23ebd1b27a075a17a180415afc0458b1aadc694478a058a5557fec9b41f0019e628e0667098d9a5419ba3db8167f6b4bb83b01
|
data/docker-compose-shelley.yml
CHANGED
|
@@ -3,12 +3,11 @@ version: "3.5"
|
|
|
3
3
|
services:
|
|
4
4
|
cardano-node:
|
|
5
5
|
image: inputoutput/cardano-node:${NODE}
|
|
6
|
-
environment:
|
|
7
|
-
NETWORK:
|
|
8
6
|
volumes:
|
|
9
7
|
- node-db:/data
|
|
10
8
|
- node-ipc:/ipc
|
|
11
|
-
- ${NODE_CONFIG_PATH}:/
|
|
9
|
+
- ${NODE_CONFIG_PATH}:/config
|
|
10
|
+
command: run --socket-path /ipc/node.socket --config /config/shelley_testnet-config.json --topology /config/shelley_testnet-topology.json --database-path /data
|
|
12
11
|
restart: on-failure
|
|
13
12
|
|
|
14
13
|
cardano-wallet:
|
|
@@ -19,8 +18,7 @@ services:
|
|
|
19
18
|
- ${NODE_CONFIG_PATH}:/config
|
|
20
19
|
ports:
|
|
21
20
|
- 8090:8090
|
|
22
|
-
|
|
23
|
-
command: cardano-wallet-shelley serve --testnet /config/ff-genesis.json --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0
|
|
21
|
+
command: serve --testnet /config/shelley_testnet-genesis.json --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0
|
|
24
22
|
restart: on-failure
|
|
25
23
|
|
|
26
24
|
volumes:
|
data/lib/cardano_wallet/byron.rb
CHANGED
|
@@ -161,6 +161,12 @@ module CardanoWallet
|
|
|
161
161
|
super
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
+
# Get tx by id
|
|
165
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getByronTransaction
|
|
166
|
+
def get(wid, tx_id)
|
|
167
|
+
self.class.get("/byron-wallets/#{wid}/transactions/#{tx_id}")
|
|
168
|
+
end
|
|
169
|
+
|
|
164
170
|
# List all Byron wallet's transactions.
|
|
165
171
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listByronTransactions
|
|
166
172
|
#
|
|
@@ -174,6 +174,12 @@ module CardanoWallet
|
|
|
174
174
|
super
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
+
# Get tx by id
|
|
178
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getTransaction
|
|
179
|
+
def get(wid, tx_id)
|
|
180
|
+
self.class.get("/wallets/#{wid}/transactions/#{tx_id}")
|
|
181
|
+
end
|
|
182
|
+
|
|
177
183
|
# List all wallet's transactions
|
|
178
184
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listTransactions
|
|
179
185
|
#
|
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.1.
|
|
4
|
+
version: 0.1.4
|
|
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-06-
|
|
11
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|