Skip to content

Commit

Permalink
created interface for BlocktrailSDK and Wallet classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed Jan 15, 2015
1 parent c24bdb3 commit 951bb42
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 16 deletions.
7 changes: 3 additions & 4 deletions src/BlocktrailSDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

/**
* Class BlocktrailSDK
*
*/
class BlocktrailSDK {
class BlocktrailSDK implements BlocktrailSDKInterface {
/**
* @var Connection\RestClient
*/
Expand Down Expand Up @@ -422,7 +421,7 @@ public function unsubscribeNewBlocks($identifier) {
* @param $identifier
* @param $password
* @param int $keyIndex override for the blocktrail cosigning key to use
* @return array[Wallet, (string)primaryMnemonic, (string)backupMnemonic]
* @return array[WalletInterface, (string)primaryMnemonic, (string)backupMnemonic]
* @throws \Exception
*/
public function createNewWallet($identifier, $password, $keyIndex = 0) {
Expand Down Expand Up @@ -512,7 +511,7 @@ public function upgradeKeyIndex($identifier, $keyIndex, $primaryPublicKey) {
*
* @param string $identifier the wallet identifier to be initialized
* @param string $password the password to decrypt the mnemonic with
* @return Wallet
* @return WalletInterface
* @throws \Exception
*/
public function initWallet($identifier, $password) {
Expand Down
Loading

0 comments on commit 951bb42

Please sign in to comment.