494 Commits

Author SHA1 Message Date
kevin Heifner 06a3c518fe Move deferred transaction into deferred_transaction.hpp 2025-08-27 08:20:04 -05:00
Lin Huang 92945e4572 Add tests for customized sync call entry function 2025-07-27 18:23:52 -04:00
Lin Huang d607a92712 Revert back the change for allowing private deriving from eosio::contract 2025-07-22 08:12:13 -04:00
Lin Huang 00cb315396 Allow a contract derives from eosio::contract privately 2025-07-22 07:46:50 -04:00
Lin Huang a294a08ab7 Make separate_cpp_hpp derive publicly from eosio::contract such that set_exec_type() can be used 2025-07-21 15:46:46 -04:00
Lin Huang db42ab457f Use set_exec_type() to explicitly set a contract's execution type (action or call) to prevent accidental errors by contract authors 2025-07-21 15:08:17 -04:00
Lin Huang b086797420 Add tests for is_sync_call() 2025-07-18 15:54:51 -04:00
Lin Huang 09b234bf35 Update sync_call_addr_book_callee for new eosio::contract constructor 2025-07-18 15:44:45 -04:00
Lin Huang 06c541cece Update toolchain tests not to use --abi-version option any more as it is disabled 2025-07-14 21:51:43 -04:00
Lin Huang b38155045a Merge remote-tracking branch 'origin/main' into merge_main_july_14 2025-07-14 16:34:36 -04:00
Lin Huang 4c56554cdf update tests for a function tagged both as an action and a call 2025-07-13 23:15:42 -04:00
Lin Huang ecb339bb64 Consolidate all sync call related fields into a single call section in ABI and allow a function to be tagged both as an action and a call 2025-07-13 23:14:20 -04:00
Gregory Popovitch fdfc1908c3 Merge pull request #358 from AntelopeIO/gh_338
Add test for array/fixed size array support in action data and action return value.
2025-07-09 10:18:39 -04:00
Lin Huang 04367180e9 Update toolchain abi test for new id field 2025-07-08 21:29:05 -04:00
Lin Huang b8b927822e Update sync_call_params_num_tests for using identifier 2025-07-08 17:24:36 -04:00
Lin Huang 9ff9017aa4 Update sync_call_params_type_tests to use new identifer 2025-07-08 16:29:28 -04:00
Lin Huang 4d84c74e64 Update tests to use long sync call function names 2025-07-08 15:04:10 -04:00
Lin Huang 60902e9e38 Remove a missed eosio::action tag in a test contract 2025-07-07 10:50:36 -04:00
Lin Huang 7bdb80e33f Add tests for verifying methods are not allowed both as an action and a call 2025-07-07 08:22:03 -04:00
Lin Huang 2e0a036574 Do not allow a method to be tagged both as an action and a call 2025-07-07 08:20:05 -04:00
Lin Huang dcd84c4da0 Merge branch 'call_wrapper' into call_abi 2025-07-06 14:24:08 -04:00
Lin Huang 96fb93bb38 Merge branch 'sync_call_entry_func' into call_wrapper 2025-07-06 14:04:04 -04:00
Lin Huang d25324cf8a Point CICD Spring target to the matching branch and remove an obsolete test which will be tested in another way in future PRs 2025-07-06 09:21:55 -04:00
greg7mdp bc2420a3cf Make abi base version 1.2 and increase to 1.3 when bitset used, add tests. 2025-07-02 12:13:15 -04:00
Lin Huang 21133bba37 Update expected sync call ABI file for toolchain-tester's abigen-pass test 2025-06-27 13:13:12 -04:00
greg7mdp 64cbbd29a4 Whitespace change 2025-06-26 10:48:42 -04:00
greg7mdp 204dcf0baf Merge branch 'main' of github.com:AntelopeIO/cdt into gh_338 2025-06-26 07:59:31 -04:00
greg7mdp 58559f7915 Use Spring's release/2.0 branch for integration tests. 2025-06-25 16:14:34 -04:00
greg7mdp dc19551940 Don't set the abi either if bitset not present 2025-06-25 12:07:20 -04:00
greg7mdp b9b3c70b1e can't std::is_class a type that doesn't exist 2025-06-25 11:53:03 -04:00
greg7mdp 9e43412631 Enable test only if fc::bitset is defined (Spring 2.0+) 2025-06-25 10:55:57 -04:00
greg7mdp 733be5fde5 Add test foir using bitset in contract. 2025-06-19 10:40:12 -04:00
greg7mdp d697c579ee cleanup array_tests.cpp and add action. 2025-06-18 15:10:05 -04:00
greg7mdp 259f42785f Add more array tests. 2025-06-16 14:56:29 -04:00
greg7mdp 00f721cbc8 Add test for fixed size array action call. 2025-06-16 09:54:39 -04:00
greg7mdp 5f70b45944 Add retrieval functions for array_test contract. 2025-06-16 09:30:38 -04:00
Lin Huang 47554ec338 Add call_data_header definition to ABI structs and header field to each sync call struct 2025-06-02 21:31:20 -04:00
Lin Huang bc5974f2a0 Add tests for complex parameter passing (a mix of structs and integer) 2025-05-31 14:12:56 -04:00
Lin Huang 2ba236cdd5 Initialize abi field in acct_and_code 2025-05-28 14:15:50 -04:00
Lin Huang d51ad33ef5 Use eosio::name instead of uint64_t for receiver in host function call; it is much cleanner 2025-05-23 15:20:42 -04:00
Lin Huang 061efae475 Update unknown function and invalid header tests to accommodate new error code values 2025-05-23 08:26:52 -04:00
Lin Huang 1df88ab31c Add test to verify new sync call section is generated in ABI version 1.3 2025-05-22 11:14:52 -04:00
Lin Huang 438cc150ae Update existing ABI tests by setting the ABI version to 1.2 which is what expected ABI files were generated 2025-05-22 11:13:47 -04:00
Lin Huang 58bd4c0ad5 Add toolchain tests for the validation of arguments types and numbers by call_wrapper 2025-05-21 08:37:05 -04:00
Lin Huang 8af48755a0 Return std::optional for support_mode::no_op calls; add comprehensive tests 2025-05-20 14:20:48 -04:00
Lin Huang 4848fb2423 Rename execution_mode to access_mode, and on_call_not_supported_mode to support_mode for simplicity 2025-05-20 08:17:53 -04:00
Lin Huang e798246586 Implement data header and validate it 2025-05-16 18:45:21 -04:00
Lin Huang 755ddc5d54 Refactor call_warpper
- Remove unnecessary call class
- Make C++ call host function simply invoke C version
- Make call_wrapper constructor take only one argument (receiver); all
  others are template parameters
- Make call_wrapper handle high level logic
2025-05-14 18:24:07 -04:00
Lin Huang b35845994b Add tests for updating and reading from tables using sync calls and read-only enforcement 2025-05-13 15:29:03 -04:00
Lin Huang de050b2959 Automatically derive return type of sync call functions in wrapper 2025-05-13 08:16:18 -04:00