Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Contract_Read_ABCI with Learning ABCI to Enhance FSM Workflow #14

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

PriyanshuVijay-S
Copy link

Overview

This pull request introduces changes across multiple ABCI skills to enhance the Finite State Machine (FSM) workflow within our blockchain application framework. The key integration point is the linking of the DecisionMakingRound from the learning_abci skill directly to the ContractDataReadRound of the newly created contract_read_abci skill. This ensures that once decision-making is completed, the system seamlessly transitions to contract data reading, enhancing the data flow and consistency across operations.

Changes

skill/learning_chained_abci

  • Updated skill.yaml to include new dependencies and entry points for the contract_read_abci.
  • Modified fsm_specification.yaml to reflect new state transitions that link to the contract_read_abci.
  • Adjusted composition.py to integrate new skill operations within the ABCI app chain.
  • Enhanced models.py and behaviours.py to support new logic and state transitions.

skill/contract_read_abci

  • Established new skill with foundational files (init.py, behaviours.py, modules.py, payloads.py, rounds.py, dialogues.py, handles.py, fsm-specification.yaml) to manage contract data reading processes.
  • Designed fsm-specification.yaml to define clear entry and exit points for contract data interactions.

skill/learning_abci/rounds.py

  • Refined logic in DecisionMakingRound to trigger transitions into the contract_read_abci skill upon completion.

Configuration and Deployment

  • Updated agents/aea-config.yaml to include new skill configurations and ensure proper agent setups.

cpp-priyanshu added 12 commits December 1, 2024 04:05
…nents

This commit introduces the ERC20_NEW contract package into the contracts folder, featuring the new class ERC20_NEW designed to enhance our ABCI learning agents with updated token handling capabilities. Changes span across several components to ensure comprehensive integration:

1. **Contracts:**
   - Added ERC20_NEW class in the erc20_new package to manage interactions with ERC20 tokens more effectively.

2. **Agent Configuration:**
   - Updated �ea-config.yaml to reference the new ERC20_NEW contract, ensuring that the agent recognizes and utilizes this new contract class.

3. **Service Configuration:**
   - Modified service.yaml to include configurations that align with the changes in the ERC20_NEW contract operations.

4. **Skill Updates:**
   - Updated skill.yaml in both skill/learning_abci and skill/learning_chained_abci to ensure skills are compatible with the new contract functionalities.
   - Revised behaviors in �ehaviours.py to incorporate methods from ERC20_NEW for enhanced token transactions.

These updates ensure that our learning agents are well-equipped to handle ERC20 token transactions with the latest contract logic, reflecting improved efficiency and compliance with current blockchain standards.
- Extend ConditionalNativeTransferBehaviour to handle conditional deposits into an ERC20 contract.
- Add logic to deposit native coins based on the parity of the calculated transaction value.
- Update contract.py in erc20_new and behaviours.py in skill/learning_abci with new deposit functionality.
…actions

This commit updates the ConditionalNativeTransferBehaviour to bundle native token transfers and ERC20 deposits into a single multisend transaction. It modifies the get_multisend_safe_tx_hash function to accept both native transfer and ERC20 deposit data. This integration allows for more efficient transaction processing and cost optimization by executing both actions in a single blockchain transaction.

Changes:
- Modified ConditionalNativeTransferBehaviour to support gathering data for native and ERC20 transactions.
- Updated get_multisend_safe_tx_hash to handle the packaging of multiple transaction data.
- Integrated _build_safe_tx_hash to create the actual multisend transaction from the prepared data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant