sila-ruby 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfdd92201162ad24aadafd39b1366b8f6c10afcf63be47c6a0c23189f1496646
4
- data.tar.gz: 461851b525c9baf8d4f24599f319dba3bf59777ead2d85a63ed81d6308d5f1e9
3
+ metadata.gz: 5650beb56a78eeaf383dd10f64a8838bec5d23ddd679a4afb2515a03d1ed6cd2
4
+ data.tar.gz: 0d8bc3947ef42ad46b5167bb745ef7fac0b1589f789a50924fe8ca68c7fe572a
5
5
  SHA512:
6
- metadata.gz: 5a46aa9dc3cbd227c6076264323210fe90ae8ceba5de37155904728cfddc6a0a22d341f4375e15f00fd23bbca6fe8cb8a963467e26db8de9cfe27d53779c3bd2
7
- data.tar.gz: 234e3a754659b905061ee45a93c88f77d81d6fc055d2fc3d5b2cc07de29b4ed39d736317b0a6928c51383dce9a2150004377ee978e024f3e79b43b900eaf3ffc
6
+ metadata.gz: 7ab22b9ff011f08eab21a2c278a6562ddd018af5796166cb92884d08fbd7ca1bdb185220e014776edb5edc92d96315e5425ebad06b439d11ab487e91cc1d60f7
7
+ data.tar.gz: 6a0dc524e564ba17d5701a6d721c77305e882750ab00037bc1c0c95413dec85f71bf12136eef8b1891b0204436e5016ad0f96d282d39ce741505f8d20c55758a
@@ -20,7 +20,7 @@ module SilaRuby
20
20
  def self.check_handle(handle)
21
21
  header = { user_handle: handle }
22
22
  message = 'header_msg'
23
- post_signed('check_handle', header, message, nil, nil)
23
+ sila_post_signed('check_handle', header, message, nil, nil)
24
24
  end
25
25
 
26
26
  # --------------------------------------------
@@ -65,7 +65,7 @@ module SilaRuby
65
65
  # }
66
66
  # }
67
67
 
68
- post_signed('register', header, message, params, nil)
68
+ sila_post_signed('register', header, message, params, nil)
69
69
  end
70
70
 
71
71
  # --------------------------------------------
@@ -75,7 +75,7 @@ module SilaRuby
75
75
  def self.request_kyc(handle, user_key)
76
76
  header = { user_handle: handle }
77
77
  message = 'header_msg'
78
- post_signed('request_kyc', header, message, nil, user_key)
78
+ sila_post_signed('request_kyc', header, message, nil, user_key)
79
79
  end
80
80
 
81
81
  # --------------------------------------------
@@ -85,7 +85,7 @@ module SilaRuby
85
85
  def self.check_kyc(handle, user_key)
86
86
  header = { user_handle: handle }
87
87
  message = 'header_msg'
88
- post_signed('check_kyc', header, message, nil, user_key)
88
+ sila_post_signed('check_kyc', header, message, nil, user_key)
89
89
  end
90
90
 
91
91
  end
@@ -34,9 +34,9 @@ module ApiHelpers
34
34
  end
35
35
 
36
36
  # --------------------------------------------
37
- # POST-SIGNED --------------------------------
37
+ # SILA-POST-SIGNED ---------------------------
38
38
  # --------------------------------------------
39
- def post_signed(api_group, header={}, message={}, params={}, user_key)
39
+ def sila_post_signed(api_group, header={}, message={}, params={}, user_key)
40
40
  # Set the post URL
41
41
  url = "#{sila_uri}/0.2/#{api_group}"
42
42
  # Create the header
@@ -20,7 +20,7 @@ module SilaRuby
20
20
  def self.link_account(handle, params={}, user_key)
21
21
  header = { user_handle: handle }
22
22
  message = 'link_account_msg'
23
-
23
+
24
24
  # Example of params passed
25
25
  #
26
26
  # params = {
@@ -29,7 +29,7 @@ module SilaRuby
29
29
  # selected_account_id: "optional_selected_account_id"
30
30
  # }
31
31
 
32
- post_signed('link_account', header, message, params, user_key)
32
+ sila_post_signed('link_account', header, message, params, user_key)
33
33
  end
34
34
 
35
35
  # --------------------------------------------
@@ -39,7 +39,7 @@ module SilaRuby
39
39
  def self.get_accounts(handle, user_key)
40
40
  header = { user_handle: handle }
41
41
  message = 'get_accounts_msg'
42
- post_signed('get_accounts', header, message, nil, user_key)
42
+ sila_post_signed('get_accounts', header, message, nil, user_key)
43
43
  end
44
44
 
45
45
  end
@@ -28,7 +28,7 @@ module SilaRuby
28
28
  # account_name: "default"
29
29
  # }
30
30
 
31
- post_signed('issue_sila', header, message, params, user_key)
31
+ sila_post_signed('issue_sila', header, message, params, user_key)
32
32
  end
33
33
 
34
34
  # --------------------------------------------
@@ -46,7 +46,7 @@ module SilaRuby
46
46
  # destination: "user2.silamoney.eth"
47
47
  # }
48
48
 
49
- post_signed('transfer_sila', header, message, params, user_key)
49
+ sila_post_signed('transfer_sila', header, message, params, user_key)
50
50
  end
51
51
 
52
52
  # --------------------------------------------
@@ -64,7 +64,7 @@ module SilaRuby
64
64
  # account_name: "default"
65
65
  # }
66
66
 
67
- post_signed('redeem_sila', header, message, params, user_key)
67
+ sila_post_signed('redeem_sila', header, message, params, user_key)
68
68
  end
69
69
 
70
70
  # --------------------------------------------
@@ -94,7 +94,7 @@ module SilaRuby
94
94
  # }
95
95
  # }
96
96
 
97
- post_signed('get_transactions', header, message, params, user_key)
97
+ sila_post_signed('get_transactions', header, message, params, user_key)
98
98
  end
99
99
 
100
100
  end
@@ -1,3 +1,3 @@
1
1
  module SilaRuby
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sila-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vertbase
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2019-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable