Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
c635332b
Commit
c635332b
authored
Jan 15, 2018
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust API to new standards
parent
d1e0848e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
4 deletions
+32
-4
api.service.ts
Breeze.UI/src/app/shared/services/api.service.ts
+32
-4
No files found.
Breeze.UI/src/app/shared/services/api.service.ts
View file @
c635332b
...
...
@@ -214,7 +214,7 @@ export class ApiService {
}
/**
* Get
unused receive addresse
s for a certain wallet from the API.
* Get
an unused receive addres
s for a certain wallet from the API.
*/
getUnusedReceiveAddress
(
data
:
WalletInfo
):
Observable
<
any
>
{
this
.
getCurrentCoin
();
...
...
@@ -222,9 +222,37 @@ export class ApiService {
let
params
:
URLSearchParams
=
new
URLSearchParams
();
params
.
set
(
'walletName'
,
data
.
walletName
);
params
.
set
(
'accountName'
,
"account 0"
);
//temporary
return
this
.
http
.
get
(
this
.
currentApiUrl
+
'/wallet/unusedaddress'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
map
((
response
:
Response
)
=>
response
);
}
/**
* Get multiple unused receive addresses for a certain wallet from the API.
*/
getUnusedReceiveAddresses
(
data
:
WalletInfo
,
count
:
string
):
Observable
<
any
>
{
this
.
getCurrentCoin
();
let
params
:
URLSearchParams
=
new
URLSearchParams
();
params
.
set
(
'walletName'
,
data
.
walletName
);
params
.
set
(
'accountName'
,
"account 0"
);
//temporary
params
.
set
(
'count'
,
count
);
return
this
.
http
.
get
(
this
.
currentApiUrl
+
'/wallet/unusedaddresses'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
map
((
response
:
Response
)
=>
response
);
}
/**
* Get get all receive addresses for an account of a wallet from the API.
*/
getAllReceiveAddresses
(
data
:
WalletInfo
):
Observable
<
any
>
{
this
.
getCurrentCoin
();
let
params
:
URLSearchParams
=
new
URLSearchParams
();
params
.
set
(
'walletName'
,
data
.
walletName
);
params
.
set
(
'accountName'
,
"account 0"
);
//temporary
return
this
.
http
.
get
(
this
.
currentApiUrl
+
'/wallet/address'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
get
(
this
.
currentApiUrl
+
'/wallet/address
es
'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
map
((
response
:
Response
)
=>
response
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment