Skip to content

Conversation

@Alhibb
Copy link

@Alhibb Alhibb commented Dec 2, 2025

Summary

Closes #_

  • y/n | Does it introduce breaking changes?
  • y/n | Is it dependent on a specific version of cargo-contract or pallet-revive?

Description

Checklist before requesting a review

  • I have added an entry to CHANGELOG.md
  • I have commented on my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules


- **[`flipper`](basics/flipper)**: The classic "Hello World" of smart contracts. A simple boolean value you can flip.
- **[`incrementer`](basics/incrementer)**: Demonstrates simple state mutation with integers.
- **[`dns`](basics/dns)**: Shows how to use the storage `Mapping` type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put this under the folder use-case

- **[`incrementer`](basics/incrementer)**: Demonstrates simple state mutation with integers.
- **[`dns`](basics/dns)**: Shows how to use the storage `Mapping` type.
- **[`events`](basics/events)**: Examples of defining and emitting events.
- **[`terminator`](basics/terminator)**: How to remove a contract from storage using `terminate`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put this under the folder operations

- **[`call-contract`](runtime/call-contract)**: The runtime calling into a contract.
- **[`e2e-call`](runtime/e2e-call)**: A contract calling a runtime dispatchable (pallet function).
- **[`xcm`](runtime/xcm)**: Cross-Consensus Messaging examples.
- **[`precompile`](runtime/precompile)**: interacting with runtime precompiles.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assets-precompile example should be here as well.

- **[`lazyvec`](storage/lazyvec)**: Using `Lazy` vector types for gas optimization.
- **[`allocator`](storage/allocator)**: Using a custom heap allocator (e.g., `bumpalo`).

### Runtime & Chain
Copy link
Contributor

@Daanvdplas Daanvdplas Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Precompiles

### Advanced
*Complex patterns and niche features.*

- **[`upgradeable`](advanced/upgradeable)**: Contracts that can upgrade their own code (`set_code_hash`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in the folder operations

Comment on lines +65 to +66
- **[`fuzzing`](advanced/fuzzing)**: Setup for property-based fuzz testing.
- **[`debugging`](advanced/debugging)**: Techniques for interpreting debug buffers.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be in the folder testing

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.

2 participants