cardano_wallet 0.1.1 → 0.1.2
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/tests.yml +3 -3
- data/README.md +10 -4
- data/cardano_wallet.gemspec +1 -0
- data/docker-compose-shelley.yml +29 -0
- data/lib/cardano_wallet/shelley.rb +2 -2
- data/lib/cardano_wallet/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e29845cb4672d029153cec037844d2092a542c6513bfdd5a8d05288e85ad1f24
|
4
|
+
data.tar.gz: 5584f5d87039805b91bac5e39842c08b1ace6b79d732f9feba3e138c2f4983e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7feb9ac4fbb80c4f27bf7c3a454b2b89e03bbb99916374484f37ce8fcb36ea0b088def659aea7a36ffe16a833565d12905583deec04eb9761417880d263b1749
|
7
|
+
data.tar.gz: 701838da0b5377578b46b45a8051ca1661eb1f89a1829a272206ec9e6d01be23a2ae40f773992955e4a67b369a7387247a898a2daa1238809b6ba96aa482e89c
|
data/.github/workflows/tests.yml
CHANGED
@@ -21,7 +21,7 @@ jobs:
|
|
21
21
|
steps:
|
22
22
|
- uses: actions/checkout@v2
|
23
23
|
- name: Set up cardano-wallet
|
24
|
-
run: docker-compose up --detach
|
24
|
+
run: NODE_CONFIG_PATH=`pwd`/spec/shelley-testnet docker-compose -f docker-compose-shelley.yml up --detach
|
25
25
|
- name: Set up Ruby
|
26
26
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
27
27
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
@@ -37,5 +37,5 @@ jobs:
|
|
37
37
|
CI: true
|
38
38
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
39
39
|
NETWORK: testnet
|
40
|
-
WALLET: dev-master-
|
41
|
-
NODE:
|
40
|
+
WALLET: dev-master-shelley
|
41
|
+
NODE: 1.13.0
|
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
<a href="https://badge.fury.io/rb/cardano_wallet">
|
2
3
|
<img src="https://badge.fury.io/rb/cardano_wallet.svg" alt="Gem Version">
|
3
4
|
</a>
|
@@ -87,18 +88,23 @@ Refer to [documentation](https://rubydoc.info/gems/cardano_wallet) for more deta
|
|
87
88
|
|
88
89
|
## Development
|
89
90
|
|
90
|
-
In order to spin up environment for development and testing `docker-compose` can be used.
|
91
|
+
In order to spin up environment for development and testing `docker-compose` can be used. For instance:
|
91
92
|
|
93
|
+
# Byron testnet
|
92
94
|
$ NETWORK=testnet WALLET=dev-master-byron NODE=latest docker-compose up --detach
|
93
95
|
|
94
|
-
|
95
|
-
|
96
|
-
|
96
|
+
or
|
97
|
+
|
98
|
+
# Shelley testnet
|
99
|
+
$ NODE=1.13.0 WALLET=dev-master-shelley NODE_CONFIG_PATH=`pwd`/spec/shelley-testnet/ docker-compose -f docker-compose-shelley.yml up
|
97
100
|
|
98
101
|
Run tests on top of that:
|
99
102
|
|
100
103
|
$ rake
|
101
104
|
|
105
|
+
Clean up docker stuff after, e.g.:
|
106
|
+
|
107
|
+
$ NETWORK=... docker-compose down --rmi all --remove-orphans
|
102
108
|
|
103
109
|
## Contributing
|
104
110
|
|
data/cardano_wallet.gemspec
CHANGED
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.add_development_dependency 'rake', '~> 12.3'
|
33
33
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
34
|
+
spec.add_development_dependency 'bip_mnemonic', '~> 0.0.4'
|
34
35
|
spec.add_development_dependency 'codecov'
|
35
36
|
spec.add_development_dependency 'simplecov'
|
36
37
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
version: "3.5"
|
2
|
+
|
3
|
+
services:
|
4
|
+
cardano-node:
|
5
|
+
image: inputoutput/cardano-node:${NODE}
|
6
|
+
environment:
|
7
|
+
NETWORK:
|
8
|
+
volumes:
|
9
|
+
- node-db:/data
|
10
|
+
- node-ipc:/ipc
|
11
|
+
- ${NODE_CONFIG_PATH}:/configuration
|
12
|
+
restart: on-failure
|
13
|
+
|
14
|
+
cardano-wallet:
|
15
|
+
image: inputoutput/cardano-wallet:${WALLET}
|
16
|
+
volumes:
|
17
|
+
- wallet-shelley-db:/wallet-db
|
18
|
+
- node-ipc:/ipc
|
19
|
+
- ${NODE_CONFIG_PATH}:/config
|
20
|
+
ports:
|
21
|
+
- 8090:8090
|
22
|
+
entrypoint: []
|
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
|
24
|
+
restart: on-failure
|
25
|
+
|
26
|
+
volumes:
|
27
|
+
node-db:
|
28
|
+
wallet-shelley-db:
|
29
|
+
node-ipc:
|
@@ -230,8 +230,8 @@ module CardanoWallet
|
|
230
230
|
|
231
231
|
# List all stake pools
|
232
232
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listStakePools
|
233
|
-
def list
|
234
|
-
self.class.get("/stake-pools")
|
233
|
+
def list(wid)
|
234
|
+
self.class.get("/wallets/#{wid}/stake-pools")
|
235
235
|
end
|
236
236
|
|
237
237
|
# Join stake pool
|
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.2
|
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
|
+
date: 2020-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bip_mnemonic
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.0.4
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.0.4
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: codecov
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,6 +115,7 @@ files:
|
|
101
115
|
- bin/setup
|
102
116
|
- cardano_wallet.gemspec
|
103
117
|
- dev
|
118
|
+
- docker-compose-shelley.yml
|
104
119
|
- docker-compose.yml
|
105
120
|
- lib/cardano_wallet.rb
|
106
121
|
- lib/cardano_wallet/base.rb
|