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 +4 -4
- data/lib/sila-ruby/accounts.rb +4 -4
- data/lib/sila-ruby/api_helpers.rb +2 -2
- data/lib/sila-ruby/banks.rb +3 -3
- data/lib/sila-ruby/transactions.rb +4 -4
- data/lib/sila-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5650beb56a78eeaf383dd10f64a8838bec5d23ddd679a4afb2515a03d1ed6cd2
|
4
|
+
data.tar.gz: 0d8bc3947ef42ad46b5167bb745ef7fac0b1589f789a50924fe8ca68c7fe572a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ab22b9ff011f08eab21a2c278a6562ddd018af5796166cb92884d08fbd7ca1bdb185220e014776edb5edc92d96315e5425ebad06b439d11ab487e91cc1d60f7
|
7
|
+
data.tar.gz: 6a0dc524e564ba17d5701a6d721c77305e882750ab00037bc1c0c95413dec85f71bf12136eef8b1891b0204436e5016ad0f96d282d39ce741505f8d20c55758a
|
data/lib/sila-ruby/accounts.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|
data/lib/sila-ruby/banks.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
97
|
+
sila_post_signed('get_transactions', header, message, params, user_key)
|
98
98
|
end
|
99
99
|
|
100
100
|
end
|
data/lib/sila-ruby/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|