web3-hpb 0.0.2 → 0.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7e982320fc9431c55b9ed18807faf4feb1e959e70abf311a562e64aee2a5312
4
- data.tar.gz: 38e2cd202a29c2e776b9d531a490a23107714e484601a428464e2e3e55bfbaae
3
+ metadata.gz: e372dcdc3e93d69a4319d7ce15da4ba63855639a4eeb110c12c40c3d62ea5d8e
4
+ data.tar.gz: eb572757b4463669b635db3cd53882dd833846681636b8ce799d090ed78bad35
5
5
  SHA512:
6
- metadata.gz: b05becc6a38e14f9a67da0e4810ca4b3fc09431b0dd07f82cd236bb0fac45eeaccc3aca5c8e706f7d4192aedadc5264872bc18d6029c3cbff9cd9c98f4ceb4aa
7
- data.tar.gz: d034534dfc9031cb5cb4d6887a6c843cd7e93feabf482728dfc7b4071c1f0e9fda966be8dd69c24361a57bf768465fba639c1a11e7e469a516fe08ab13f2bdb2
6
+ metadata.gz: 37f5be5db727b1fac8c886b02fc9c9d4ccf900a83f2e9cbee061010b68d4159aa01b1a43fecf0053e79822714001c102c589224882e590f2a3e5b11f0c843d4a
7
+ data.tar.gz: 64c4bde04933db85b8a13ce880f275f32e3d21a88ab776c96057ee6ff0221e4c5a6c34b07b0ebbdd13ed76e5e6acab22d35996651f765a3815905b0ff36bb0a3
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
3
5
  # Specify your gem's dependencies in web3-hpb.gemspec
4
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- web3-hpb (0.0.2)
4
+ web3-hpb (0.0.1)
5
5
  digest-sha3 (~> 1.1.0)
6
6
  rlp (~> 0.7.3)
7
7
 
data/README.md CHANGED
@@ -22,55 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- ### 连接
26
- 初始化一个web3对象
27
- ```ruby
28
- web3 = Web3::Hpb::Rpc.new
29
- ```
30
- 默认配置为
31
- ```ruby
32
- web3 = Web3::Hpb::Rpc.new host: 'node.host.com',
33
- port: 8545,
34
- connect_options: { use_ssl: true, read_timeout: 120 }
35
- ```
36
-
37
- ### 使用hpb接口
38
-
39
- ```
40
- >> web3.hpb.blockNumber
41
- 4376369
42
-
43
- >> web3.hpb.getBalance '0x4c8a1996754c11ac255c747fdb36a4288d230541'
44
- 3916.6597314456685
45
-
46
- >> block = web3.hpb.getBlockByNumber 4376369
47
- #<Web3::Hpb::Block:0x007f844d6f1138 @block_data={"author"=>"0x4c8a1996754c11ac255c797fdb36f4288d230541", ...
48
-
49
- >> block.timestamp_time
50
- 2017-10-17 12:51:36 +0300
51
-
52
- >> block.transactions.count
53
- 129
54
-
55
- >> block.transactions[0].from
56
- "0x4c8a199481ac255c747fdb36f4288d230541"
57
-
58
- >> block.transactions[0].value_eth
59
- 0.51896811
60
-
61
- ```
62
-
63
- ### 使用abi接口
64
- ```
65
- # creation of contract object
66
- myContract = web3.hpb.contract(abi);
67
-
68
- # initiate contract for an address
69
- myContractInstance = myContract.at('0x57d180cbaffbc97237f572148fc1b283b68d8861');
70
-
71
- # call constant function
72
- result = myContractInstance.balanceOf('0x...'); # any constant method works
73
- ```
25
+ TODO: Write usage instructions here
74
26
 
75
27
  ## Development
76
28
 
@@ -1,5 +1,5 @@
1
1
  module Web3
2
- module Hpb
2
+ module Eth
3
3
 
4
4
  class Transaction
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Web3
2
2
  module Hpb
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web3-hpb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - alize
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-03 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rlp
@@ -112,7 +112,6 @@ files:
112
112
  - lib/web3/hpb/transaction_receipt.rb
113
113
  - lib/web3/hpb/utility.rb
114
114
  - lib/web3/hpb/version.rb
115
- - web3-hpb-0.1.0.gem
116
115
  - web3-hpb.gemspec
117
116
  homepage: https://github.com/alize/web3-hpb
118
117
  licenses:
data/web3-hpb-0.1.0.gem DELETED
Binary file