cardano_wallet 0.3.14 → 0.3.15
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/Rakefile +1 -0
- data/lib/cardano_wallet/shelley.rb +10 -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: ae5c2835562e35f7ce7c3263d240631e94dc78046c665b8ef40f41c5495cf3f2
|
|
4
|
+
data.tar.gz: 29764e5fec66212d2902cab2a21f64c8bab4b7f0259bd4f38105f532b41840ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3873fbd889e7c2482f5a423f22d62723bcc94c26aa54d33e25c8f96c17e6ee072e8eb07705ccd111ec42b431502002fd725cc53905cb7b16ce570f631089305
|
|
7
|
+
data.tar.gz: 7eaf74bc9bd2e6b105f2a3fa72b61d670c08d06ccb981a26cc8ac9fe685d26a0fe0899335d38ff7e570f02c05e02dc409f1368eaa5912f47083dda5a825bf7b4
|
data/.github/workflows/tests.yml
CHANGED
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
echo "Node: $NODE"
|
|
34
34
|
NODE_CONFIG_PATH=`pwd`/configs docker-compose up --detach
|
|
35
35
|
docker run --rm inputoutput/cardano-wallet:$WALLET version
|
|
36
|
-
docker run --rm inputoutput/cardano-node:$NODE version
|
|
36
|
+
docker run --rm inputoutput/cardano-node:$NODE cli version
|
|
37
37
|
ls ~/node-db-nightly-docker
|
|
38
38
|
|
|
39
39
|
- name: Run all tests except nighlty
|
|
@@ -45,5 +45,5 @@ jobs:
|
|
|
45
45
|
CI: true
|
|
46
46
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
47
47
|
NETWORK: testnet
|
|
48
|
-
WALLET: dev-master
|
|
49
|
-
NODE: 1.
|
|
48
|
+
WALLET: dev-master
|
|
49
|
+
NODE: alonzo-purple-1.0.1
|
data/Rakefile
CHANGED
|
@@ -31,6 +31,7 @@ task :get_latest_configs, [:env] do |_, args|
|
|
|
31
31
|
mk_dir(path)
|
|
32
32
|
wget("#{base_url}/#{env}-config.json", "#{path}/#{env}-config.json")
|
|
33
33
|
wget("#{base_url}/#{env}-byron-genesis.json", "#{path}/#{env}-byron-genesis.json")
|
|
34
|
+
wget("#{base_url}/#{env}-alonzo-genesis.json", "#{path}/#{env}-alonzo-genesis.json")
|
|
34
35
|
wget("#{base_url}/#{env}-shelley-genesis.json", "#{path}/#{env}-shelley-genesis.json")
|
|
35
36
|
wget("#{base_url}/#{env}-topology.json", "#{path}/#{env}-topology.json")
|
|
36
37
|
end
|
|
@@ -258,6 +258,16 @@ module CardanoWallet
|
|
|
258
258
|
# API for Transactions
|
|
259
259
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Transactions
|
|
260
260
|
class Transactions < Base
|
|
261
|
+
# Balance transaction
|
|
262
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/balanceTransaction
|
|
263
|
+
# @param wid [String] source wallet id
|
|
264
|
+
# @param payload [Hash] payload object
|
|
265
|
+
def balance(wid, payload)
|
|
266
|
+
self.class.post("/wallets/#{wid}/transactions-balance",
|
|
267
|
+
body: payload.to_json,
|
|
268
|
+
headers: { 'Content-Type' => 'application/json' })
|
|
269
|
+
end
|
|
270
|
+
|
|
261
271
|
# Construct transaction
|
|
262
272
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/constructTransaction
|
|
263
273
|
# @param wid [String] source wallet id
|
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.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piotr Stachyra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-09-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|