WIP
This commit is contained in:
parent
c713053efd
commit
d5ff77b278
@ -44,8 +44,8 @@
|
|||||||
-spec url(Instruction, HTTP) -> Result
|
-spec url(Instruction, HTTP) -> Result
|
||||||
when Instruction :: spend | transfer | sign,
|
when Instruction :: spend | transfer | sign,
|
||||||
HTTP :: uri_string:uri_string(),
|
HTTP :: uri_string:uri_string(),
|
||||||
GRIDS :: uri_string:uri_string(),
|
Result :: {ok, GRIDS} | uri_string:uri_error(),
|
||||||
Result :: {ok, GRIDS} | uri_string:uri_error().
|
GRIDS :: uri_string:uri_string().
|
||||||
%% @doc
|
%% @doc
|
||||||
%% Takes
|
%% Takes
|
||||||
|
|
||||||
@ -66,6 +66,19 @@ url2(Instruction, URL = #{path := Path}) ->
|
|||||||
{ok, uri_string:recompose(GRIDS)}.
|
{ok, uri_string:recompose(GRIDS)}.
|
||||||
|
|
||||||
|
|
||||||
|
-spec url(Instruction, Context, Recipient, Payload, Amount) -> Result
|
||||||
|
when Instruction :: spend | transfer,
|
||||||
|
Context :: uri_string:uri_string() | string(), %
|
||||||
|
Recipient :: string(),
|
||||||
|
Payload :: binary(),
|
||||||
|
Amount :: non_neg_integer(),
|
||||||
|
Result :: {ok, GRIDS} | error | uri_string:uri_error().
|
||||||
|
|
||||||
|
url(spend, Context, Recipient, Payload, Amount) ->
|
||||||
|
url(spend,
|
||||||
|
url(transfer, Context, Recipient, Payload, Amount) ->
|
||||||
|
|
||||||
|
|
||||||
-spec parse(GRIDS) -> Result
|
-spec parse(GRIDS) -> Result
|
||||||
when GRIDS :: string(),
|
when GRIDS :: string(),
|
||||||
Result :: {ok, Instruction} | uri_string:error(),
|
Result :: {ok, Instruction} | uri_string:error(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user