mm-sol 0.3.2__py3-none-any.whl → 0.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mm_sol/cli/cli.py +3 -2
- mm_sol/cli/cmd/wallet/mnemonic_cmd.py +2 -2
- {mm_sol-0.3.2.dist-info → mm_sol-0.3.3.dist-info}/METADATA +1 -1
- {mm_sol-0.3.2.dist-info → mm_sol-0.3.3.dist-info}/RECORD +6 -6
- {mm_sol-0.3.2.dist-info → mm_sol-0.3.3.dist-info}/WHEEL +0 -0
- {mm_sol-0.3.2.dist-info → mm_sol-0.3.3.dist-info}/entry_points.txt +0 -0
mm_sol/cli/cli.py
CHANGED
|
@@ -110,9 +110,10 @@ def wallet_mnemonic_command( # nosec
|
|
|
110
110
|
mnemonic: Annotated[str, typer.Option("--mnemonic", "-m")] = "",
|
|
111
111
|
passphrase: Annotated[str, typer.Option("--passphrase", "-p")] = "",
|
|
112
112
|
derivation_path: Annotated[str, typer.Option("--path")] = PHANTOM_DERIVATION_PATH,
|
|
113
|
-
|
|
113
|
+
words: int = typer.Option(12, "--words", "-w", help="Number of mnemonic words"),
|
|
114
|
+
limit: int = typer.Option(5, "--limit", "-l"),
|
|
114
115
|
) -> None:
|
|
115
|
-
mnemonic_cmd.run(mnemonic, passphrase, derivation_path, limit)
|
|
116
|
+
mnemonic_cmd.run(mnemonic, passphrase, words, derivation_path, limit)
|
|
116
117
|
|
|
117
118
|
|
|
118
119
|
@wallet_app.command(name="keypair", help="Print public, private_base58, private_arr by a private key")
|
|
@@ -6,10 +6,10 @@ from mm_std import print_json
|
|
|
6
6
|
from mm_sol.account import derive_accounts, generate_mnemonic
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
def run(mnemonic: str, passphrase: str, derivation_path: str, limit: int) -> None: # nosec
|
|
9
|
+
def run(mnemonic: str, passphrase: str, words: int, derivation_path: str, limit: int) -> None: # nosec
|
|
10
10
|
result: dict[str, Any] = {}
|
|
11
11
|
if not mnemonic:
|
|
12
|
-
mnemonic = generate_mnemonic()
|
|
12
|
+
mnemonic = generate_mnemonic(words)
|
|
13
13
|
result["mnemonic"] = mnemonic
|
|
14
14
|
if passphrase:
|
|
15
15
|
result["passphrase"] = passphrase
|
|
@@ -12,7 +12,7 @@ mm_sol/transfer.py,sha256=Gu6UYEjY5OECSusKJO-VA8C3B7W6ZJGjegUv67EQdfs,5809
|
|
|
12
12
|
mm_sol/utils.py,sha256=NE0G564GiT9d7rW_lPPxUb1eq62WiXh28xtvtzNQIqw,556
|
|
13
13
|
mm_sol/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
mm_sol/cli/calcs.py,sha256=-r9RlsQyOziTDf84uIsvTgZmsUdNrVeazu3vTj9hhNA,1887
|
|
15
|
-
mm_sol/cli/cli.py,sha256=
|
|
15
|
+
mm_sol/cli/cli.py,sha256=OlgBas-dWWZJ_WCbHJGLX6GxfILvIy7Q0VhgRo_nytE,4945
|
|
16
16
|
mm_sol/cli/cli_utils.py,sha256=Skj0SCHPWMHGr2ag-em1JtIK9Qdh7xeJafMzvCgChnc,2254
|
|
17
17
|
mm_sol/cli/validators.py,sha256=HLCFRrBOdyAMj_ibdAkkP36y9Zm2Dt3gMKoyPOcaiQE,1164
|
|
18
18
|
mm_sol/cli/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -24,11 +24,11 @@ mm_sol/cli/cmd/transfer_sol_cmd.py,sha256=ZBdkb7YrR88foT3zobMZGnDYAHWgx8ljkxRKpk
|
|
|
24
24
|
mm_sol/cli/cmd/transfer_token_cmd.py,sha256=NCaSdO-eud-ef7SdWyTwWdSLiBegYAHySvKz22_j1cg,5911
|
|
25
25
|
mm_sol/cli/cmd/wallet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
mm_sol/cli/cmd/wallet/keypair_cmd.py,sha256=cRHVVTs9zNYmUozZ8ZlJoutn9V6r8I1AEHBrszR7dTE,538
|
|
27
|
-
mm_sol/cli/cmd/wallet/mnemonic_cmd.py,sha256=
|
|
27
|
+
mm_sol/cli/cmd/wallet/mnemonic_cmd.py,sha256=IiON_fJT5AFfIr_E1LR6_iDYZ3c_jWCFc-wSYqk61V8,648
|
|
28
28
|
mm_sol/cli/examples/balances.toml,sha256=8WvnKD1yUz51K1Rd3kkDQI5uOmRwE7DH8paibI-i1uM,262
|
|
29
29
|
mm_sol/cli/examples/transfer-sol.toml,sha256=1LdkhSBC0y5oMJXjm8MVIMyZruIrYSIm3LBDGmcS5Iw,353
|
|
30
30
|
mm_sol/cli/examples/transfer-token.toml,sha256=I_Wof-APv-h6xeYVq0zbWfLbpDny2kz9U0xJifVNEtU,401
|
|
31
|
-
mm_sol-0.3.
|
|
32
|
-
mm_sol-0.3.
|
|
33
|
-
mm_sol-0.3.
|
|
34
|
-
mm_sol-0.3.
|
|
31
|
+
mm_sol-0.3.3.dist-info/METADATA,sha256=s0zxbxDq8V-nIvxrEMtYI7itbXn0Lbv4zX9w6VZXMfs,259
|
|
32
|
+
mm_sol-0.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
33
|
+
mm_sol-0.3.3.dist-info/entry_points.txt,sha256=MrYnosumy9nsITSAw5TiR3WXDwsdoF0YvUIlZ38TLLs,46
|
|
34
|
+
mm_sol-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|