cardano_wallet 0.3.22 → 0.3.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 967e02a8810ca20a7a01deed8b44af1a43a8de7a1a0953956913fd8dfd2e31b5
4
- data.tar.gz: b45d0e0752acaf5e646cd1d4ef682e7a9ddec640a3d3bf57ba3eb2a9c618ad7a
3
+ metadata.gz: 124026aa429ad0ab128972a67f7611f7e2f9f3fb4b20b5fe2bf1dc8597c51f2e
4
+ data.tar.gz: 9bb4b8a26a9dc30ffce8174a1c295e55b09e140dfbe56d77812ab0448266e634
5
5
  SHA512:
6
- metadata.gz: 3a46e07240647676f8f0e27534c7a7eddd78264b4984ed97cb57e8e3a985234ad7c392e490d83f49958f4fdc9acf65d09db0733772469f61454088dc1ca5fe5b
7
- data.tar.gz: 34cda842aa952de4d4b3053a9a15dc0dff18a594f8187319a3b47dcf2ddac143b409955d55e30bd7d99e2a94ce551d92c5149d51e9538579451807af8ac9b8a0
6
+ metadata.gz: 220a1115e770c1470398fe6bb0757f673b814c673c638ea171d41c028b7ea1ee20d5a9b628b1f084ba25b51ab62cbe7b8dcb4b1287e613695c96206dd9e350eb
7
+ data.tar.gz: 96cc892b39c4631b22394d578387f2a6477328475bbea7ebfbd2e5c531be48326b864e90ba8417cef5c2c2e8e3fc29436ac66e3b7131737395e94dc8084f5b5a
@@ -25,7 +25,7 @@ jobs:
25
25
  run: rubocop
26
26
 
27
27
  - name: Get recent configs
28
- run: bundle exec rake get_latest_configs[testnet]
28
+ run: bundle exec rake get_latest_configs[$NETWORK]
29
29
 
30
30
  - name: Set up cardano-wallet and cardano-node
31
31
  run: |
@@ -44,6 +44,6 @@ jobs:
44
44
  env:
45
45
  CI: true
46
46
  CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
47
- NETWORK: testnet
47
+ NETWORK: preview
48
48
  WALLET: dev-master
49
- NODE: 1.35.0
49
+ NODE: 1.35.3
data/Rakefile CHANGED
@@ -23,13 +23,13 @@ end
23
23
  task :get_latest_configs, [:env] do |_, args|
24
24
  puts "\n >> Get latest configs for '#{args[:env]}'"
25
25
 
26
- base_url = 'https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1'
26
+ base_url = 'https://book.world.dev.cardano.org/environments'
27
27
  env = args[:env]
28
28
  path = File.join(Dir.pwd, 'configs')
29
29
  mk_dir(path)
30
- wget("#{base_url}/#{env}-config.json", "#{path}/#{env}-config.json")
31
- wget("#{base_url}/#{env}-byron-genesis.json", "#{path}/#{env}-byron-genesis.json")
32
- wget("#{base_url}/#{env}-alonzo-genesis.json", "#{path}/#{env}-alonzo-genesis.json")
33
- wget("#{base_url}/#{env}-shelley-genesis.json", "#{path}/#{env}-shelley-genesis.json")
34
- wget("#{base_url}/#{env}-topology.json", "#{path}/#{env}-topology.json")
30
+ wget("#{base_url}/#{env}/config.json", "#{path}/config.json")
31
+ wget("#{base_url}/#{env}/byron-genesis.json", "#{path}/byron-genesis.json")
32
+ wget("#{base_url}/#{env}/alonzo-genesis.json", "#{path}/alonzo-genesis.json")
33
+ wget("#{base_url}/#{env}/shelley-genesis.json", "#{path}/shelley-genesis.json")
34
+ wget("#{base_url}/#{env}/topology.json", "#{path}/topology.json")
35
35
  end
data/docker-compose.yml CHANGED
@@ -7,7 +7,7 @@ services:
7
7
  - ~/node-db-nightly-docker:/data
8
8
  - node-ipc:/ipc
9
9
  - ${NODE_CONFIG_PATH}:/config
10
- command: run --socket-path /ipc/node.socket --config /config/${NETWORK}-config.json --topology /config/${NETWORK}-topology.json --database-path /data
10
+ command: run --socket-path /ipc/node.socket --config /config/config.json --topology /config/topology.json --database-path /data
11
11
  restart: on-failure
12
12
 
13
13
  cardano-wallet:
@@ -18,7 +18,7 @@ services:
18
18
  - ${NODE_CONFIG_PATH}:/config
19
19
  ports:
20
20
  - 8090:8090
21
- command: serve --testnet /config/${NETWORK}-byron-genesis.json --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0
21
+ command: serve --testnet /config/byron-genesis.json --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0
22
22
  restart: on-failure
23
23
 
24
24
  volumes:
@@ -64,6 +64,18 @@ module CardanoWallet
64
64
  body: payload.to_json,
65
65
  headers: { 'Content-Type' => 'application/json' })
66
66
  end
67
+
68
+ # Decode transaction
69
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/decodeSharedTransaction
70
+ # @param wid [String] source wallet id
71
+ # @param transaction [String] CBOR base64|base16 encoded transaction
72
+ def decode(wid, transaction)
73
+ payload = {}
74
+ payload[:transaction] = transaction
75
+ self.class.post("/shared-wallets/#{wid}/transactions-decode",
76
+ body: payload.to_json,
77
+ headers: { 'Content-Type' => 'application/json' })
78
+ end
67
79
  end
68
80
 
69
81
  # API for Addresses
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.22'
4
+ VERSION = '0.3.23'
5
5
  end
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.22
4
+ version: 0.3.23
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-07-14 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty