This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix packaging (#1) * use find packages * bump version * add test mocks to package * fix version file * bump cryptography req * fix script err msg * fix scripts typos * bump version * Add changelog
- Loading branch information
1 parent
27b0554
commit cbfcbd1
Showing
8 changed files
with
40 additions
and
7 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
v0.0.2 | ||
0.0.3 |
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,21 @@ | ||
from . import MockWallet | ||
from ..keypair_impl import Keypair | ||
|
||
|
||
def get_mock_wallet(coldkey: "Keypair" = None, hotkey: "Keypair" = None): | ||
wallet = MockWallet( | ||
name = 'mock_wallet', | ||
hotkey = 'mock', | ||
path = '/tmp/mock_wallet', | ||
) | ||
|
||
if not coldkey: | ||
coldkey = Keypair.create_from_mnemonic(Keypair.generate_mnemonic()) | ||
if not hotkey: | ||
hotkey = Keypair.create_from_mnemonic(Keypair.generate_mnemonic()) | ||
|
||
wallet.set_coldkey(coldkey, encrypt=False, overwrite=True) | ||
wallet.set_coldkeypub(coldkey, encrypt=False, overwrite=True) | ||
wallet.set_hotkey(hotkey, encrypt=False, overwrite=True) | ||
|
||
return wallet |
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