Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
924ca07
add precommit
popenta Jan 29, 2025
65102d2
format code using black
popenta Jan 29, 2025
e15d338
Merge pull request #469 from multiversx/integrate-sdk-py-v1
popenta Jan 29, 2025
9e1f30a
Merge branch 'feat/next' into change-formatter
popenta Jan 29, 2025
d00255a
add mypy as a dev dependency
popenta Jan 29, 2025
102b114
Merge pull request #467 from multiversx/change-formatter
popenta Jan 29, 2025
adfa027
drop support for relayed transactions v1
popenta Jan 29, 2025
1f28a95
Merge pull request #470 from multiversx/remove-relayed-v1-support
popenta Jan 29, 2025
9c49436
drop contract report
popenta Jan 29, 2025
fb4ffdb
Merge pull request #471 from multiversx/remove-contract-report
popenta Jan 29, 2025
b012273
Add output format: secret key in hexadecimal
BubuMVX Jan 29, 2025
e5eefc6
Merge branch 'feat/next' into add-out-format-secret-key
BubuMVX Jan 29, 2025
d754833
Merge pull request #472 from BubuMVX/add-out-format-secret-key
popenta Jan 30, 2025
5f8a492
Merge branch 'main' into merge-main-in-feat-30-01
popenta Jan 30, 2025
c24aa4c
restore correct requirements
popenta Jan 30, 2025
ab0648f
Merge branch 'main' into merge-main-in-feat-30-01
popenta Jan 30, 2025
2921240
Merge pull request #473 from multiversx/merge-main-in-feat-30-01
popenta Jan 30, 2025
fe53f40
remove some contract operations & rust dependency
popenta Jan 30, 2025
83ea60f
update GH actions
popenta Jan 30, 2025
ed875ff
Merge pull request #475 from multiversx/contract-cleanup
popenta Jan 30, 2025
1b44917
refactor smart contract interactions
popenta Jan 31, 2025
dfe48d4
rename methods
popenta Jan 31, 2025
9296ee1
refactor accounts to use the ones from sdk-py
popenta Feb 3, 2025
8863c37
remove ledger package
popenta Feb 3, 2025
e8d805d
fix cli ledger
popenta Feb 3, 2025
8bc1860
fix dependency for sdk-py
popenta Feb 3, 2025
8b9fd8a
reference latest sdk-py
popenta Feb 4, 2025
f0ecfb3
refactor tranasctions creation
popenta Feb 4, 2025
bc08d7f
Merge pull request #476 from multiversx/contract-refactoring
popenta Feb 5, 2025
7670cb1
use interface instead of Account class
popenta Feb 5, 2025
10f570f
refactor transaction creation
popenta Feb 5, 2025
d34b2b8
refactoring smart contract transactions
popenta Feb 5, 2025
9b0759b
revert validators file
popenta Feb 5, 2025
a5137c3
rename file
popenta Feb 5, 2025
9bf94dc
add cli tests for validators
popenta Feb 5, 2025
0b32f52
refactoring validators transactions
popenta Feb 6, 2025
5cd64b6
remove unused code
popenta Feb 6, 2025
baf67d1
fix typo
popenta Feb 7, 2025
db47be5
refactor dns register
popenta Feb 7, 2025
73e0da0
remove old & unused code
popenta Feb 7, 2025
cc22308
Merge pull request #477 from multiversx/account-refactoring
popenta Feb 7, 2025
9492d3b
fix typo
popenta Feb 7, 2025
259d54f
Merge branch 'feat/next' into transaction-refactoring
popenta Feb 7, 2025
7e20cf9
add tests for transactions controller
popenta Feb 7, 2025
762d5ec
fix mypy errors
popenta Feb 7, 2025
a6e6d10
fixes after review
popenta Feb 10, 2025
6df2e3e
fix flow of signing stored transactions
popenta Feb 10, 2025
baf60bb
Merge pull request #478 from multiversx/transaction-refactoring
popenta Feb 10, 2025
575122b
Merge branch 'feat/next' into fix-mypy-issues
popenta Feb 10, 2025
8ef4ba8
fix small comments from previous PR
popenta Feb 10, 2025
4062bd2
move properties type definition inside constructor
popenta Feb 10, 2025
622105f
fix
popenta Feb 10, 2025
0f77497
Merge pull request #480 from multiversx/fix-mypy-issues
popenta Feb 10, 2025
be7a1b2
Merge branch 'fix-mypy-issues' into validators-refactoring
popenta Feb 10, 2025
55d2ee6
add support for creating validator wallet
popenta Feb 11, 2025
973521c
sign and verify message for validator wallet
popenta Feb 11, 2025
f046627
fixes after review
popenta Feb 12, 2025
9c6e0b8
Merge pull request #479 from multiversx/validators-refactoring
popenta Feb 12, 2025
b5dcc56
Merge branch 'feat/next' into create-validator-wallet
popenta Feb 12, 2025
1705f7e
fix get account
popenta Feb 12, 2025
45efd0e
fix get transaction
popenta Feb 12, 2025
dbea15c
move validator wallet to separate command
popenta Feb 13, 2025
c540b59
rename argument
popenta Feb 13, 2025
a9cc650
Merge pull request #481 from multiversx/create-validator-wallet
popenta Feb 13, 2025
c8cac38
Merge branch 'feat/next' into fix-get-account
popenta Feb 13, 2025
0843d4f
fix
popenta Feb 13, 2025
15ccd39
run tests sequentially to prevent occasional nonce collisions
popenta Feb 13, 2025
3a9bd23
drop get_account and get_transaction
popenta Feb 19, 2025
6ead3b4
Merge pull request #482 from multiversx/fix-get-account
popenta Feb 19, 2025
2312490
use native auth client from sdk-py
popenta Feb 19, 2025
fe13eb6
removed deprecated installation script
popenta Feb 19, 2025
4760d4f
Merge pull request #484 from multiversx/remove-mxpy-up-installation-s…
popenta Feb 19, 2025
9f14e84
make args non-required and perform args validation on command
popenta Feb 20, 2025
4676c6a
refactoring delegation transactions
popenta Feb 22, 2025
5179602
estimate gas limit wherever possible
popenta Feb 24, 2025
f6c499b
use single index arg for each wallet
popenta Feb 24, 2025
7410d5f
Merge pull request #483 from multiversx/switch-to-sdk-native-auth-client
popenta Feb 25, 2025
bd08391
Merge branch 'feat/next' into args-validation
popenta Feb 25, 2025
7fef80b
rename args validation functions
popenta Feb 27, 2025
9a06b1e
Merge pull request #485 from multiversx/args-validation
popenta Feb 27, 2025
7aa0e98
Merge branch 'feat/next' into refactoring-delegation-operations
popenta Feb 27, 2025
e7bb919
fixes after merge
popenta Feb 27, 2025
1423030
remove check for minimum delegated/undelegated amount
popenta Feb 28, 2025
b5696ca
fixes after review
popenta Mar 3, 2025
0bfe46f
Merge pull request #486 from multiversx/refactoring-delegation-operat…
popenta Mar 3, 2025
06cf5ac
Merge branch 'feat/next' into estimate-gas-by-default
popenta Mar 3, 2025
06d9326
fixes after review
popenta Mar 4, 2025
99a64d5
Merge pull request #487 from multiversx/estimate-gas-by-default
popenta Mar 4, 2025
7a0982d
Merge branch 'feat/next' into use-one-index-arg-for-any-wallet
popenta Mar 4, 2025
2bf7b75
rename wallet index arguments
popenta Mar 4, 2025
156aa74
Merge pull request #488 from multiversx/use-one-index-arg-for-any-wallet
popenta Mar 5, 2025
2bcb310
Merge branch 'main' into merge-main-in-feat-05-03
popenta Mar 5, 2025
3a6ce9c
Merge pull request #490 from multiversx/merge-main-in-feat-05-03
popenta Mar 5, 2025
42762c7
refactor to use validators transactions factory
popenta Mar 6, 2025
422a056
fix omit fields
popenta Mar 6, 2025
406b499
fix path to validators file
popenta Mar 6, 2025
a7e3104
fixes after review
popenta Mar 11, 2025
3bb9939
Merge pull request #491 from multiversx/use-validators-factory
popenta Mar 11, 2025
2a1d891
integrate transaction awaiter
popenta Mar 13, 2025
8559816
remove unused package for mypy
popenta Mar 13, 2025
498146b
Merge pull request #493 from multiversx/use-tx-awaiter
popenta Mar 13, 2025
3f3e081
wip: improve guardian flow
popenta Mar 14, 2025
685bbe5
add specific prefix for address arguments
popenta Mar 14, 2025
93859e1
install sdk-py from GH brach
popenta Mar 14, 2025
90315ea
update pyproject.toml
popenta Mar 14, 2025
64348b3
update to sdk py beta realease
popenta Mar 14, 2025
da14733
automatic fetching for guardian from the network
popenta Mar 17, 2025
55ae23c
set guardian from args if provided
popenta Mar 17, 2025
69a4c9c
fixes after review
popenta Mar 17, 2025
b53bf9c
Merge pull request #494 from multiversx/fix-custom-hrp
popenta Mar 18, 2025
6d95b77
Merge branch 'feat/next' into improve-guarded-accounts-flow
popenta Mar 18, 2025
e6bc09f
remove delegation sub-package and move code
popenta Mar 18, 2025
ef7410e
fix typo
popenta Mar 18, 2025
96964e2
small readme fix
popenta Mar 18, 2025
9a0766a
use builtin types for type hinting
popenta Mar 19, 2025
4a6eac6
fixes after review
popenta Mar 21, 2025
1de1943
fix SimpleNamespace serialization
popenta Mar 22, 2025
1b10263
Merge pull request #498 from multiversx/fix-simple-namespace-serializ…
popenta Mar 24, 2025
7249f25
remove prettytable dependency
popenta Mar 24, 2025
3325150
remove empty line
popenta Mar 24, 2025
e2746a8
Merge pull request #495 from multiversx/improve-guarded-accounts-flow
popenta Mar 24, 2025
d5b9254
Merge branch 'feat/next' into move-delegation-code
popenta Mar 24, 2025
637280e
Merge pull request #496 from multiversx/move-delegation-code
popenta Mar 24, 2025
a0a2db4
Merge branch 'feat/next' into remove-pretty-table
popenta Mar 24, 2025
fee5bcc
Merge pull request #499 from multiversx/remove-pretty-table
popenta Mar 24, 2025
a3acbcf
bump version & generate CLI.md file
popenta Mar 24, 2025
cc2f986
fix wallet index argument for keystore secret key
popenta Mar 24, 2025
ce0de18
small contracts refactoring
popenta Mar 24, 2025
a1e8669
Merge pull request #500 from multiversx/bump-version-v10
popenta Mar 25, 2025
aea58b6
Merge pull request #501 from multiversx/keystore-file-fix
popenta Mar 25, 2025
4b2b90c
update publish workflow to publish package to mxpy
popenta Mar 25, 2025
413aa43
Merge branch 'main' into merge-main-in-feat-25-03
popenta Mar 25, 2025
b42d61b
Merge pull request #502 from multiversx/update-publish-workflow-mxpy
popenta Mar 25, 2025
ed2edd9
Merge pull request #503 from multiversx/merge-main-in-feat-25-03
popenta Mar 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[flake8]
ignore = E501
extend-ignore = E501, E722, E203
8 changes: 6 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -38,11 +38,15 @@ jobs:
export PYTHONPATH=.
python3 -m multiversx_sdk_cli.cli config new test
python3 -m multiversx_sdk_cli.cli config set github_api_token ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Setup test dependencies
shell: bash
run: |
python3 -m multiversx_sdk_cli.cli deps install testwallets
python3 -m multiversx_sdk_cli.cli deps install rust
- name: Run unit tests
shell: bash
run: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.11]
max-parallel: 1 # This ensures jobs run sequentially, not concurrently

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -36,10 +37,14 @@ jobs:
export PYTHONPATH=.
python3 -m multiversx_sdk_cli.cli config new test
python3 -m multiversx_sdk_cli.cli config set github_api_token ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Setup test dependencies
run: |
python3 -m multiversx_sdk_cli.cli deps install testwallets
python3 -m multiversx_sdk_cli.cli deps install rust
- name: Run unit tests
run: |
export PYTHONPATH=.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
- uses: actions/checkout@v2
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
- name: Install dev dependencies
run: pip install -r requirements-dev.txt
- uses: tsuyoshicho/action-mypy@v3
with:
github_token: ${{ secrets.github_token }}
Expand Down
31 changes: 30 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
contents: read

jobs:
deploy:
deploy-mx-sdk-py-cli:

runs-on: ubuntu-latest

Expand All @@ -38,3 +38,32 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

deploy-mxpy:
runs-on: ubuntu-latest
needs: deploy-mx-sdk-py-cli # Ensure main package is published first

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build

- name: Change package name for mxpy
run: sed -i 's/name = "multiversx-sdk-cli"/name = "mxpy"/' pyproject.toml

- name: Build and publish mxpy package
run: python -m build

- name: Publish mxpy package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
args: [--line-length=120]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args:
- "--config=.flake8"
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args:
- --in-place
- --remove-all-unused-imports
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.392
hooks:
- id: pyright
32 changes: 18 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"python.testing.pytestArgs": [
"multiversx_sdk_cli"
],
"python.testing.pytestEnabled": true,
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
},
"python.formatting.provider": "autopep8",
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"files.insertFinalNewline": true,
"python.languageServer": "Pylance"
"python.testing.pytestArgs": ["multiversx_sdk_cli"],
"python.testing.pytestEnabled": true,
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"files.insertFinalNewline": true,
"python.languageServer": "Pylance",
"files.autoSave": "onWindowChange",
"editor.fontSize": 13,
"files.trimTrailingWhitespace": true,
"github.gitProtocol": "ssh",
"python.analysis.autoFormatStrings": true,
"python.analysis.completeFunctionParens": true,
"black-formatter.args": ["--line-length=120"]
}
Loading
Loading