indium 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/indium.rb +10 -7
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81888e223903baaaeda662004b7689a787f3fd64cf9fd7f8f2ba5780c0808e8d
4
- data.tar.gz: 4b638de4128e6603b5842de1bca75bceda73df0b79fab582e2462211125b1129
3
+ metadata.gz: 8d206eca8e28130435ae97f8aa24919f803dbe7478893c6055e6aa9703f1b8ba
4
+ data.tar.gz: 7327e437901999fd189bd8b6b7a533172583edf5beff8de0018a150c03a41cb8
5
5
  SHA512:
6
- metadata.gz: 25f4a04cc252d9a512085bfa34de72796c524813ddd9a40c69a8faa8518c713722ab103495339c928512f7999f4f9dba6d8e7ca8569070076ebe8e8fa5b3fc11
7
- data.tar.gz: 4f6ba1d6e78f6d43eaecc0e28985a8ddb35c381d18968f7bc9e19014808534f79afa25f27b7e65d6297c828b55cfd1259fd493e8433899c98b7c52da2420eb53
6
+ metadata.gz: b5249e74030ae9f7adb5d14a00d0df5663e3e9d1fc668f9470f769637e75463380faea971e7634697394d3a3e8d4b934bbeefc3430ff28c9c669a2f52288693e
7
+ data.tar.gz: 972bc6df1dd5cb3ca0a1d1229841f9fa2e2db895645d671b332cfa66bf25fd036dde90205cbbfe50a917fddffc8a25543a462033cca35a5357a2488265fa894d
@@ -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',43391)
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://localhost:8545',43391)
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
- raise "Indium production network is not yet live"
39
- self.new('https://rpcnode.indium.network:8545',43391)
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.1.1
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-02-27 00:00:00.000000000 Z
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.1'
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.1'
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: []