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
aba99eaf
Unverified
Commit
aba99eaf
authored
Jan 15, 2018
by
Jeremy Bokobza
Committed by
GitHub
Jan 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #385 from stratisproject/submodule-update
updated StratisBitcoinFullNode submodule
parents
9cecb69a
c635332b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
5 deletions
+33
-5
api.service.ts
Breeze.UI/src/app/shared/services/api.service.ts
+32
-4
StratisBitcoinFullNode
StratisBitcoinFullNode
+1
-1
No files found.
Breeze.UI/src/app/shared/services/api.service.ts
View file @
aba99eaf
...
...
@@ -136,7 +136,7 @@ export class ApiService {
.
map
((
response
:
Response
)
=>
response
);
}
/**
/**
* Get general wallet info from the API once.
*/
getGeneralInfoOnce
(
data
:
WalletInfo
):
Observable
<
any
>
{
...
...
@@ -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/address'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
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/addresses'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
map
((
response
:
Response
)
=>
response
);
}
...
...
@@ -241,7 +269,7 @@ export class ApiService {
params
.
set
(
'amount'
,
data
.
amount
);
params
.
set
(
'feeType'
,
data
.
feeType
);
params
.
set
(
'allowUnconfirmed'
,
"true"
);
return
this
.
http
.
get
(
this
.
currentApiUrl
+
'/wallet/estimate-txfee'
,
new
RequestOptions
({
headers
:
this
.
headers
,
search
:
params
}))
.
map
((
response
:
Response
)
=>
response
);
...
...
StratisBitcoinFullNode
@
323562d4
Subproject commit
24df960b94b669c2c7ea32d2fb57bcbb194ecde8
Subproject commit
323562d4a04df281180bd5e9ad4f5c6248fec2e2
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