stellar_base-rails 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/stellar_base/withdraw_controller.rb +2 -16
- data/lib/stellar_base/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: cb6ead7f2864989a152ec231b9f320433c14e940371fe949eb496b5f23a29aba
|
4
|
+
data.tar.gz: e7690ffa217717e9f2f9dd2c874cca7f9b2b806e6cba1091184604147883364f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b66865fe56899570bd53211966355517b36bec6f90bd807494f8cd0db94b5969957eca420e33b03ebd141e20b0215651d4605f1ff9c0a63cb83774eca938126
|
7
|
+
data.tar.gz: 895c7d45a3eef849c1034f9f1d99162c76c58eda9605ad20896a71a97fba898eb241e37b9cc3b91027aa074d2ecaa14621d7bbee5fb48869ced9e4d15ac07de6
|
@@ -1,16 +1,8 @@
|
|
1
1
|
module StellarBase
|
2
2
|
class WithdrawController < ApplicationController
|
3
3
|
|
4
|
-
WITHDRAWAL_REQUEST_PARAMS = %i[
|
5
|
-
type
|
6
|
-
asset_code
|
7
|
-
dest
|
8
|
-
dest_extra
|
9
|
-
fee_network
|
10
|
-
]
|
11
|
-
|
12
4
|
def create
|
13
|
-
op = WithdrawalRequests::Operations::Create.(withdrawal_request:
|
5
|
+
op = WithdrawalRequests::Operations::Create.(withdrawal_request: params)
|
14
6
|
|
15
7
|
respond_to do |f|
|
16
8
|
f.json do
|
@@ -19,17 +11,11 @@ module StellarBase
|
|
19
11
|
representer = WithdrawalRequestRepresenter.new(twin)
|
20
12
|
render json: representer
|
21
13
|
else
|
22
|
-
|
14
|
+
render json: {error: op["contract.default"].errors}, status: :unprocessable_entity
|
23
15
|
end
|
24
16
|
end
|
25
17
|
end
|
26
18
|
end
|
27
19
|
|
28
|
-
private
|
29
|
-
|
30
|
-
def withdrawal_request_params
|
31
|
-
params.permit(*WITHDRAWAL_REQUEST_PARAMS)
|
32
|
-
end
|
33
|
-
|
34
20
|
end
|
35
21
|
end
|
data/lib/stellar_base/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stellar_base-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ace Subido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|