indium 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/indium.rb +10 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d206eca8e28130435ae97f8aa24919f803dbe7478893c6055e6aa9703f1b8ba
|
4
|
+
data.tar.gz: 7327e437901999fd189bd8b6b7a533172583edf5beff8de0018a150c03a41cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5249e74030ae9f7adb5d14a00d0df5663e3e9d1fc668f9470f769637e75463380faea971e7634697394d3a3e8d4b934bbeefc3430ff28c9c669a2f52288693e
|
7
|
+
data.tar.gz: 972bc6df1dd5cb3ca0a1d1229841f9fa2e2db895645d671b332cfa66bf25fd036dde90205cbbfe50a917fddffc8a25543a462033cca35a5357a2488265fa894d
|
data/lib/indium.rb
CHANGED
@@ -26,16 +26,19 @@ class Indium
|
|
26
26
|
return kp.address, kp.private_hex
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.local
|
30
|
-
self.new('http://localhost:8545',
|
29
|
+
def self.local(chain_id = 17622)
|
30
|
+
self.new('http://localhost:8545',chain_id)
|
31
31
|
end
|
32
32
|
|
33
|
-
def self.test
|
34
|
-
self.new('http://
|
33
|
+
def self.test(chain_id = 17622)
|
34
|
+
self.new('http://testrpcnode.indium.network:8545',chain_id)
|
35
35
|
end
|
36
36
|
|
37
|
-
def self.prod
|
38
|
-
|
39
|
-
|
37
|
+
def self.prod(chain_id = 17622)
|
38
|
+
self.new('http://rpcnode.indium.network:8545',chain_id)
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.custom(url, chain_id = 17622)
|
42
|
+
self.new(url, chain_id)
|
40
43
|
end
|
41
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: indium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nilesh Trivedi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eth
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.2'
|
41
41
|
description: Library for querying/posting transactions from the Indium network
|
42
42
|
email: github@nileshtrivedi.com
|
43
43
|
executables: []
|