istox 0.1.85.pre.test2 → 0.1.85
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/lib/istox.rb +2 -1
- data/lib/istox/migrations/create_blockchain_receipts.rb +26 -0
- data/lib/istox/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8ec6a87b62bf9494255ce75b1e4f2846bd5b49570638f5bae67d16e39c33c57
|
4
|
+
data.tar.gz: a583149b0541c739dc7d3a6ede3a401d17a232a85aba8a0dc0e871fec5805470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16ac68b6afe74d3ee0ae227c57e4e3f6d4611b2388fbbcfbd4265e9703cf94c2e8d5438c33bfa058c26baad1b82c4d02fba75e9c954aa94c01f1ccb0eb25bc1a
|
7
|
+
data.tar.gz: 91aee78c433dbb2e06a682de87cd21d23160a6cee18d98f317566581f90d18eadd83f6a1bc687b7010a59dda342e9fdb99d2a4b833549a358568a487bdff0c7f
|
data/lib/istox.rb
CHANGED
@@ -28,7 +28,8 @@ module Istox
|
|
28
28
|
require 'istox/models/blockchain_receipt'
|
29
29
|
require 'istox/models/concerns/blockchain_receipt_query'
|
30
30
|
require 'istox/consumers/blockchain_status_handler'
|
31
|
+
require 'istox/migrations/create_blockchain_receipts'
|
31
32
|
require 'istox/logging/hash_logging'
|
32
33
|
require 'istox/logging/log_formatter'
|
33
|
-
require
|
34
|
+
require "istox/quant/bond"
|
34
35
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Istox
|
2
|
+
class CreateBlockchainReceipts < ActiveRecord::Migration[5.0]
|
3
|
+
def initialize(_, _, table_name = nil)
|
4
|
+
@table_name = table_name
|
5
|
+
@table_name ||= :blockchain_receipts
|
6
|
+
end
|
7
|
+
|
8
|
+
def change
|
9
|
+
create_table @table_name do |t|
|
10
|
+
t.string :txid
|
11
|
+
t.string :txhash
|
12
|
+
t.integer :resource_id
|
13
|
+
t.string :resource_action
|
14
|
+
t.string :resource_name
|
15
|
+
t.boolean :resource_handled
|
16
|
+
t.datetime :deleted_at, index: true
|
17
|
+
t.timestamps
|
18
|
+
t.string :sid
|
19
|
+
t.string :status, default: 'pending'
|
20
|
+
t.text :message
|
21
|
+
t.boolean :is_request, default: false
|
22
|
+
t.integer :lock_version
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: istox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.85
|
4
|
+
version: 0.1.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -305,6 +305,7 @@ files:
|
|
305
305
|
- lib/istox/interfaces/chainhub/transaction.rb
|
306
306
|
- lib/istox/logging/hash_logging.rb
|
307
307
|
- lib/istox/logging/log_formatter.rb
|
308
|
+
- lib/istox/migrations/create_blockchain_receipts.rb
|
308
309
|
- lib/istox/models/blockchain_receipt.rb
|
309
310
|
- lib/istox/models/concerns/blockchain_receipt_query.rb
|
310
311
|
- lib/istox/quant/bond.rb
|
@@ -323,9 +324,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
323
324
|
version: '0'
|
324
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
325
326
|
requirements:
|
326
|
-
- - "
|
327
|
+
- - ">="
|
327
328
|
- !ruby/object:Gem::Version
|
328
|
-
version:
|
329
|
+
version: '0'
|
329
330
|
requirements: []
|
330
331
|
rubygems_version: 3.0.6
|
331
332
|
signing_key:
|