Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable deploying contracts without providing abi (#1452)
* Merge branch 'kkawula/1334-remove-unnecessary-cairo-0-tests' * Migrate tests to use cairo 1 ERC20 contract * Remove ERC20 contract cairo code and fixtures * Adapt tests to the cairo 1 * Merge 'development' * Fix test in Serilization Guide * Fix typo in 'test_abi_parsing' * Fix after merge * Remove 'constructor_with_arguments.cairo' and 'constructor_without_arguments.cairo' contracts * Add 'constructor_with_arguments.cairo' contract and update test_throws_when_calldata_not_provided * Update 'test_constructor_arguments_contract_deploy' * Add skiping test while cairo v1 test dir is triggered * Update 'test_create_deployment_call_raw_supports_seed_0' and 'test_create_deployment_call_raw' * Remove old 'constructor_with_arguments' fixture * Update 'test_deploying_with_udc' * Update 'constructor_with_arguments_abi' and 'constructor_with_arguments_class_hash' fixture * Update docs example * Add 'map' contract implementation in cairo 1 * Add fixtures for new contract * Remove 'map_contract_declare_hahs' fixutre * Replace old 'map_contract' fixture * Replace old 'map_class_hash' fixture * Update a few tests * Update 'test_deploying_in_multicall' * Remove 'Simple declare and deploy' paragraph from docs * Update docs example 'Quickstart - Using Account' * Update docs example 'Guide - test_simple_deploy * Remove fixtures 'map_source_code' and 'map_compiled_contract' * Fix PriceUnit assertion in 'test_account_estimate_fee_for_declare_transaction' * Add docs test to skip because of redeclaration :( * Remove map.cairo * Remove 'replace_class.cairo' conatract and fixture * Remove unused fixture 'fixture_balance_contract' * Upadte 'test_estimate_fee_for_multiple_transactions' * Update 'test_simulate_transactions_declare' * Remove 'test_simulate_transactions_declare' * Update 'simple_storage_with_event' contract to cairo 1 * Add test to skip reason='Some cairo 1 contracts compiled with v1 compiler fail with new devnet-rs' * Remove deprecated cairo 0 fixture 'simple_storage_with_event_compiled_contract' * Remove cairo v1 version of 'simple_storage_with_event.cairo' contract * Remove cairo v1 contracts that have events * Remove removed contracts from lib.cairo * Fix 'test_deserialize_abi' v1 * Fix 'test_evenet_serialization_v1' * Fix 'test_throws_when_cairo1_without_compiled_contract_casm_and_class_hash' * Fix 'test_throws_when_cairo1_without_compiled_contract_casm_and_class_hash' * Add 'Balance' contract implementation in cairo v1 * Update test for new Balance contract * Fix funny error * Remove cairo 0 'balance' contract * Remove cairo 0 'balance_struct_event' contract * Add folder with cairo 0 contracs abi; Delete 'balance_struxt_event' and 'complex_abi' contracts * Remove unused 'mock_account.cairo' contract * Remove unused 'contract.cairo' contract * Remove unused cairo 0 openzeppelin contracts * Remove unused 'Upgradable.cairo' contract * Remove usage of cairo 0 account contract; Add cairo 1 account contract * Fix 'test_compute_sierra_class_hash' * Add 'test_simple_declare_and_deploy' to skip * Remove cairo 0 'account_with_validate_deploy' contract * Remove cairo 0 contracts compiling script and workflow * Fix github workflows checks * Revert "Fix github workflows checks" This reverts commit fd9c3d9. * Reapply "Fix github workflows checks" This reverts commit fef6821. * Fix github workflows checks * Fix workflows * Revert "Fix github workflows checks" This reverts commit 3fd4e7b. * Add download * Fix 'test_deploy_account_v1' * Skip 'test_deploy_account_v1' for contract from v1 directory * Remove 'test_sign_invoke_v1_for_fee_estimation' (sign_decalre_v1) * Remove unused fixture 'deployed_balance_contract' (declare_v1) * Remove 'declare_v1' method from 'Contract' class * Remove 'sign_declare_v1' method from 'Account' and 'BaseAccount' class * Update docs 'deploying_contracts' (remove declare_v1) * Enable deploying contracts without providing abi * Fix 'test_deploy_contract_v3_without_abi' test * Update vaildating calldata * Remove 'test_throws_when_calldata_provided_without_abi' * Create 'test_constructor_arguments_contract_deploy_without_abi' * Remove 'test_throws_when_calldata_not_provided' * Rename 'is_valid_calldata' to '_is_list_of_ints_or_strings' * Add 'test_throws_when_calldata_provided_without_abi' * Lint * Update starknet_py/tests/e2e/docs/code_examples/test_contract.py Co-authored-by: Franciszek Job <54181625+franciszekjob@users.noreply.github.com> * Update docstring for '_is_list_of_ints_or_strings' * Update starknet_py/tests/e2e/deploy/deployer_test.py Co-authored-by: Franciszek Job <54181625+franciszekjob@users.noreply.github.com> * Update starknet_py/net/udc_deployer/deployer.py Co-authored-by: Franciszek Job <54181625+franciszekjob@users.noreply.github.com> * Update starknet_py/tests/e2e/deploy/deployer_test.py Co-authored-by: Franciszek Job <54181625+franciszekjob@users.noreply.github.com> * Fix '_is_list_of_ints_or_strings' docstring * Fix abi conditions * Add empty line for readability * Fix after merge * Fix 'create_contract_deployment' condition --------- Co-authored-by: Franciszek Job <54181625+franciszekjob@users.noreply.github.com>
- Loading branch information