bitcoinrb-grpc 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitcoin/grpc/grpc_pb.rb +1 -0
- data/lib/bitcoin/grpc/version.rb +1 -1
- data/lib/bitcoin/wallet/asset_handler.rb +1 -2
- data/proto/bitcoin/grpc/grpc.proto +1 -0
- 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: e12bda16eb52ad15892ebf19638a8f3f642f5ece08be84db507310f7ac66071b
|
4
|
+
data.tar.gz: ea2cb87fe8275d3100577f593a94b81af4d792fdf88674920f7157446a65c9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f9b3c70bd30a4c210c5fd566e5a7f35377877d5931db5dbc67a971129826d839135f16f415d2e22633398e27c1762776c31ad8493ca27258ad018c3c80810e
|
7
|
+
data.tar.gz: c1fa3d3e53eca352fb5cdf2094704ab394fd9bde319c352c9869a6ad03889cc5eea74990990fb5dd8342f67da9f8dc3eb56a41ab041ed088e3aae255b6183442
|
data/lib/bitcoin/grpc/grpc_pb.rb
CHANGED
@@ -92,6 +92,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
92
92
|
optional :id, :uint32, 1
|
93
93
|
optional :asset_type, :uint32, 2
|
94
94
|
optional :asset_id, :string, 3
|
95
|
+
optional :tx_hash, :string, 4
|
95
96
|
end
|
96
97
|
add_message "bitcoin.grpc.WatchTokenResponse" do
|
97
98
|
optional :id, :uint32, 1
|
data/lib/bitcoin/grpc/version.rb
CHANGED
@@ -29,7 +29,6 @@ module Bitcoin
|
|
29
29
|
when tx.open_assets?
|
30
30
|
outputs = Bitcoin::Grpc::OapService.outputs_with_open_asset_id(message.tx_hash)
|
31
31
|
begin
|
32
|
-
puts outputs
|
33
32
|
if outputs
|
34
33
|
outputs.each do |output|
|
35
34
|
asset_id = output['asset_id']
|
@@ -47,7 +46,7 @@ module Bitcoin
|
|
47
46
|
next unless asset_output
|
48
47
|
|
49
48
|
item_to_delete = []
|
50
|
-
watchings.select { |item| item.asset_id == asset_id }.each do |item|
|
49
|
+
watchings.select { |item| item.asset_id == asset_id && tx.tx_hash == item.tx_hash }.each do |item|
|
51
50
|
if oa_output_type == 'issuance'
|
52
51
|
publisher << Bitcoin::Grpc::EventTokenIssued.new(request_id: item.id, asset: asset_output)
|
53
52
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitcoinrb-grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hajime Yamaguchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|