Tags: RezaRahemtola/aleph-client
Tags
Migrate from Pydantic V1 to V2 (aleph-im#293) * Fix: Project do not use the good version of aleph message and sdk Aleph-message and sdk now uses pydantic v2 but no released yet Using the github link atm and wait for the release. * Fix: Replacing deprecated function after pydantic migration When upgrading the pydantic version, some function are / will become deprecated. replacing them in those files. * feat: Adding custom encoding for JSON serialization Added `default=extended_json_encoder` to `json.dumps()` to handle serialization of non-native JSON types, such as dates and other complex objects. Replacing function that are / will be deprecated in pydantic v2 and v3 * Fix: Conflit between pydantic and fastapi version Pydantic>=2 is not compatible with fastapi<0.100.0 * Fix: Lint test did not pass and conflict between dependencies Conflit between pydantic and yamlfix black did not pass * fix: Wrong aleph-message, aleph-python-sdk version * fix: Pydantic 2 being more strict about type validation With Pydantic v2, strict type validation is enforced. The type field is expected to have the exact value "POST" as a literal. * change version of typing_extension * change version of typing_extension * style: ymlfix * style: pyproject-fmt * style: ruff - Unused varible deleted * Fix: Functions are deprecated because of the migration to pydantic2 - Replacing parse_obj() by model_validate() - Replacing copy() by model_copy() - Replacing dict() by model_dump() * fix: Warning about dict() being deprecated * Fix: We can't access size_mib about Ephemeral and Persistant class because of some changes on aleph_message Before any change, there were classes dedicated to the size of Ephemeral and Persistent class such as PersistentVolumeSizeMb and EphemeralVolumeSizeMb. Now, the size is included inside the classes EphemeralVolume and PersistentVolume so have to access the size by another method. - Creating a function to get the max and min size, that way it is more rigorous - Calling this function to get max and min size of the different volumes * style: mypy raise errors about unexpected arguments - Refactor the Dict() class inside the mocks test file to allow any key-value pair to be passed to the model. * fix: Missing substrate-interface depedency * Fix: Reverting some changes I made Arnaud made some changes about getting hashes that were better but I deleted by mistakes Putting back his code * Fix: aleph-message version conflicts between aleph-client and aleph-sdk * Fix: Make changes from Andres review Reverting changes about accessing data of PersistentVolumeSizeMib and EphemeralVolumeSize - creating a function to access annotated type because we can no longer do Persistent.le to get the data * Fix: Solved last issues on some commands and refactored the method to get the annotation rules. * Fix: Update the SDK dependency to the last 2.0.0 version. --------- Co-authored-by: Andres D. Molins <amolinsdiaz@yahoo.es>
Wrap all cmd args in Annotated + minor fix on file list (aleph-im#339) - Wrap all command args in Annotated to allow to easily import CLI as a lib
Fix & Improve aggregates + Add permission commands (aleph-im#330) * Rewrite aggregate with fixes/improvements + add permission commands * Add all aggregate tests
Implement new EVM chains (aleph-im#296) * Feature: Implement new EVM chains. * Fix: Linked to last version deployed on SDK and aleph_message packages. * Fix: Removed macos-12 from CI as they are deprecated.
Feature: account managment and sol (aleph-im#281) * Feature: Allow Usage of new account handling and solana * fix: CONFIG_FILE instead of CHAINS_CONFIG_FILE * fix: CONFIG_FILE instead of CHAINS_CONFIG_FILE * Fix: refactor to use store only one config at the time * Fix utils files * Fix sign message multiline input * Fix and improve account after SDK upgrade * Fix and improve instance for new hold-tier chains * Fix and add tests * Improve account/instance cmds * Fix chain selection on account/instance cmds * Only include crn.hash in instance msg if (is_stream or confidential) * Fix wrong chain in explorer url for program msgs * Explicitely ignore crn_url/crn_hash args if (is_stream or confidential) * Add chain field in account pytests * New SDK version * pyproject format * Improve account pytests * Fix aiohttp version / erase cmd --------- Co-authored-by: philogicae <philogicae+github@gmail.com>
Add: price details when creating flows (instance create cmd), full pr… …ice details (instance list cmd), available amount (account balance cmd) (aleph-im#266)
Feature: Allow PAYG using base (aleph-im#258) * Feature: handle superfuild flow * feat: control of message / flow before starting the instance * fix: mypy issue * fix: add setuptools for ci * Add unit test in pair programming * fixup! Add unit test in pair programming * Refactor: handle_flow_reduction and handle_flow into update_flow * Fix: add type annotations * fixup! Merge branch 'master' into 1yam-payg * fixup! Add unit test in pair programming * fixup! Add unit test in pair programming * Fix raised error when no flow to reduce + dumby fix echo * Add qemu_support, confidential_support and stream_reward_address checks * Fix flow outputs * Fixes after tests * Feature: Allow PAYG on bae * Fix instance confidential adding payment_chain arg * fix: mypy issue * Merge from master * Fix PAYG + balance checks * Remove default rootfs to allow prompting * Fix: Update to latest Aleph-SDK version * Fix name / crn_name * Fix: Remove BASE chain for now and ceil flow to up number to ensure to have enough tokens. * Fix: Solve code quality issues. * Fix: Solve mypy issues. --------- Co-authored-by: Hugo Herter <git@hugoherter.com> Co-authored-by: philogicae <philogicae+github@gmail.com> Co-authored-by: Andres D. Molins <amolinsdiaz@yahoo.es>
Add command to create and start a confidential instance (aleph-im#235) * Problem: Hypervisor passed in parameter was not respected if an user passed the --hypervisor option, the question was still asked * Problem: User could not create a confidential instance (message) * call allocate when needed * Add command to initialize the VM session, calculate measuremant and start vm * Add command to initialize the VM session, calculate measuremant and start vm * review * typing fixes * isort arg fix * Allow passing CRN by argument * set default confidential firmware * Adapt doc * Fix: Solved code quality issues. --------- Co-authored-by: Andres D. Molins <nesitor@gmail.com>
PreviousNext