Skip to content

IDN Consumer Chain - contracts configuration #247

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

Closed
wants to merge 3 commits into from

Conversation

carloskiron
Copy link
Contributor

Overview

This pull request enhances the IDN Consumer Chain with two key improvements:

  1. Updates the ContractPulse implementation to align with the latest Pulse trait
  2. Configures essential pallets in the runtime for smart contract functionality

Changes in Detail

ContractPulse Implementation

  • Updated ContractPulse to properly implement the latest Pulse trait
  • Fixed the message() method implementation
  • Updated contract tests to work with the revised data structure
  • Ensured compatibility with ink! v5 contracts

Runtime Pallet Configuration

  • Added and configured the Contracts pallet to support ink! smart contracts
  • Added and configured the Revive pallet for transaction functionality
  • Configured pallet_assets for token handling
  • Added pallet_insecure_randomness_collective_flip for contract randomness
  • Configured pallet_utility for batch transactions
  • Implemented required API traits (ContractsApi, ReviveApi)
  • Added necessary imports and fixed pallet configurations

Testing

  • Updated e2e contract tests with instructions for using custom node
  • Added documentation for running tests with CONTRACTS_NODE environment variable

Next Steps

  • Run the network with proper connectivity between collators and validators
  • Deploy test contracts to verify full functionality of the Contracts pallet
  • Implement further ink! smart contract examples utilizing IDN functionality

This commit includes several key improvements:

1. ContractPulse Implementation:
   - Updated ContractPulse to align with latest Pulse trait
   - Fixed message() method implementation
   - Updated contract tests to work with the new structure

2. Runtime Pallet Configuration:
   - Added and configured Contracts pallet in the runtime
   - Added and configured Revive pallet in the runtime
   - Configured pallet_assets for token functionality
   - Added pallet_insecure_randomness_collective_flip for contract randomness
   - Configured pallet_utility for batch transactions
   - Implemented ContractsApi and ReviveApi traits
   - Added necessary imports for proper pallet functionality

These changes enable proper functioning of the IDN Consumer Chain
with support for ink! v5 smart contracts.
@carloskiron carloskiron changed the title Fix ContractPulse and Runtime Pallet Configuration IDN Consumer Chain - contracts configuration May 18, 2025
@carloskiron carloskiron deleted the fix/contract-pulse-and-parachain-config branch May 18, 2025 23:32
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