Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Users can generate and remove ɃTC wallet addresses.
# v 0.0.2 ----- - Users can generate and remove ɃTC wallet addresses. - Minor changes to DB schema - Unbound wallet_address and wallet. Addresses are independent of a wallet (Until Multi-sig support implemented). - Removed BTC Wallets.
- Loading branch information
1 parent
2cfc231
commit e6d594a
Showing
11 changed files
with
107 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# v 0.0.2 | ||
|
||
----- | ||
|
||
- Users can generate and remove ɃTC wallet addresses. | ||
|
||
- Minor changes to DB schema | ||
|
||
- Unbound wallet_address and wallet. Addresses are independent of a wallet (Until Multi-sig support implemented). | ||
|
||
- Removed BTC Wallets. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
var app = angular.module("btcApps", []).config(function($interpolateProvider){$interpolateProvider.startSymbol('{[{').endSymbol('}]}');}); | ||
app.controller("btcappsController", function($scope) { | ||
|
||
$scope.walletAddresses = []; | ||
|
||
$scope.lock = false; | ||
|
||
|
||
$scope.disableInput = (function(){ | ||
$(".generate-waddress-button").prop('disabled', true); | ||
$(".delete-waddress-button").prop('disabled', true); | ||
$(".generate-waddress-button").stop(1); | ||
$(".generate-waddress-button").fadeOut(1000, function(){ | ||
$(".generate-waddress-button").prop('disabled', false); | ||
$(".delete-waddress-button").prop('disabled', false); | ||
}); | ||
}) | ||
|
||
$scope.enableInput = (function(){ | ||
$(".generate-waddress-button").prop('disabled', false); | ||
$(".delete-waddress-button").prop('disabled', false); | ||
$(".generate-waddress-button").fadeIn(1000); | ||
}) | ||
|
||
|
||
generateWalletAddress = (function(){ | ||
$scope.disableInput(); | ||
$.get("/exchange/public/index.php/Bitcoind/Wallet/GenerateAddress", function(data){ | ||
grabMyAddresses(); | ||
$scope.enableInput(); | ||
}); | ||
}); | ||
|
||
$scope.deleteWalletAddress = (function(address){ | ||
$scope.disableInput(); | ||
$.get("/exchange/public/index.php/Bitcoind/Wallet/"+address+"/Delete", function(data){ | ||
grabMyAddresses(); | ||
$scope.enableInput(); | ||
}); | ||
}); | ||
|
||
grabMyAddresses = (function(){ | ||
$scope.disableInput(); | ||
$.get("/exchange/public/index.php/Bitcoind/Wallet/MyAddresses", function(data){ | ||
|
||
$scope.walletAddresses = data; | ||
$scope.enableInput(); | ||
$scope.$apply(); | ||
}); | ||
}); | ||
|
||
grabMyAddresses(); | ||
|
||
}); |
15 changes: 15 additions & 0 deletions
15
master-dev/exchange/resources/views/account/btc-addresses.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<button class="generate-waddress-button button button-primary" onclick="generateWalletAddress()">Generate address</button><br /><br /> | ||
<table class="table table-bordered" ng-controller="btcappsController"> | ||
<thead> | ||
<tr> | ||
<th>Address</th> | ||
<th>Balance</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="walletAddress in walletAddresses"> | ||
<td>{[{ walletAddress.wallet_address }]} <button class="button button-danger delete-waddress-button" ng-click="deleteWalletAddress(walletAddress.wallet_address)">Delete</button></td> | ||
<td><small>Ƀ</small>{[{ walletAddress.final_balance }]}<small></small> </td> | ||
</tr> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters