Skip to content

Commit

Permalink
Merge pull request stratisproject#22 from stratisproject/submodule-up…
Browse files Browse the repository at this point in the history
…date

updated StratisBitcoinFullNode submodule
  • Loading branch information
dev0tion authored Jan 15, 2018
2 parents 97227b0 + f091d99 commit 8851fa6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
30 changes: 28 additions & 2 deletions FullNode.UI/src/app/shared/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,41 @@ export class ApiService {
}

/**
* Get unused receive addresses for a certain wallet from the API.
* Get an unused receive address for a certain wallet from the API.
*/
getUnusedReceiveAddress(data: WalletInfo): Observable<any> {
let params: URLSearchParams = new URLSearchParams();
params.set('walletName', data.walletName);
params.set('accountName', "account 0"); //temporary

return this.http
.get(this.stratisApiUrl + '/wallet/address', new RequestOptions({headers: this.headers, search: params}))
.get(this.stratisApiUrl + '/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): Observable<any> {
let params: URLSearchParams = new URLSearchParams();
params.set('walletName', data.walletName);
params.set('accountName', "account 0"); //temporary

return this.http
.get(this.stratisApiUrl + '/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> {
let params: URLSearchParams = new URLSearchParams();
params.set('walletName', data.walletName);
params.set('accountName', "account 0"); //temporary

return this.http
.get(this.stratisApiUrl + '/wallet/addresses', new RequestOptions({headers: this.headers, search: params}))
.map((response: Response) => response);
}

Expand Down
4 changes: 2 additions & 2 deletions FullNode.UI/src/app/wallet/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ export class DashboardComponent implements OnInit {
this.stakingEnabled = stakingResponse.enabled;
this.stakingActive = stakingResponse.staking;
this.stakingWeight = stakingResponse.weight;
this.netStakingWeight = stakingResponse.netstakeweight;
this.expectedTime = stakingResponse.expectedtime;
this.netStakingWeight = stakingResponse.netStakeWeight;
this.expectedTime = stakingResponse.expectedTime;
this.dateTime = this.secondsToString(this.expectedTime);
if (this.stakingActive) {
this.isStarting = false;
Expand Down
2 changes: 1 addition & 1 deletion StratisBitcoinFullNode

0 comments on commit 8851fa6

Please sign in to comment.