eth-rb 0.1.1 → 0.1.2
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/eth.rb +2 -1
- metadata +1 -3
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00fd96065aaaf94dbd745f5107028e12c4685064490e8954de7f1de0d4a52baa
|
|
4
|
+
data.tar.gz: 6216af149d237abdebe73f3056da4ec30e1d11ceb8711a32b0395647456f0362
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efa352a5b7b6cbc99ffb90d849cd11883a9591b8847c5866de70d70654303854e48d0d17501789672ab4a48db17ade3ea2758db61493fde941fb746d6f509698
|
|
7
|
+
data.tar.gz: 9b2aa9456446a6219710643ab1a1f66410f0c12636104d217cf915afca9f5c5249a0c6ec0e430c6711686058b15547e1bb5d5daae86b596843b4bfe0aede7803
|
data/lib/eth.rb
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
# ./eth.rb — show latest block number
|
|
7
7
|
# ./eth.rb <address> — show ETH balance of <address>
|
|
8
8
|
# ./eth.rb --price — show current ETH/USD price
|
|
9
|
+
# ./eth.rb --version or -v — show version
|
|
9
10
|
# ./eth.rb send <key> <to> <amount> — send ETH (amount in ETH)
|
|
10
11
|
# ./eth.rb send <key> <to> $<amount> — send ETH (amount in USD, converted at current price)
|
|
11
12
|
# ./eth.rb --help — show this usage info
|
|
@@ -20,7 +21,7 @@ require "digest/keccak"
|
|
|
20
21
|
ALCHEMY_URL = "https://eth-mainnet.g.alchemy.com/v2/alch_PhpVkmsabZhYV69otj1rF"
|
|
21
22
|
COINGECKO_URL = "https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd"
|
|
22
23
|
CHAIN_ID = 1 # Ethereum mainnet
|
|
23
|
-
VERSION = "0.1.
|
|
24
|
+
VERSION = "0.1.2"
|
|
24
25
|
|
|
25
26
|
# ── JSON-RPC ────────────────────────────────────────────────────────────────
|
|
26
27
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eth-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Khalid Shaikh
|
|
@@ -46,8 +46,6 @@ executables:
|
|
|
46
46
|
extensions: []
|
|
47
47
|
extra_rdoc_files: []
|
|
48
48
|
files:
|
|
49
|
-
- Gemfile
|
|
50
|
-
- Gemfile.lock
|
|
51
49
|
- exe/eth.rb
|
|
52
50
|
- lib/eth.rb
|
|
53
51
|
homepage: https://github.com/kshaikh/eth.rb
|
data/Gemfile
DELETED