
What “KMAC: Finite State Machine Builder” is?
A "Finite State Machine (FSM)" represents a mathematical model employed in various computing domains, including the design and development of Smart Contracts. The KMAC project is a program constructed with the soroban-sdk, which facilitates the implementation of a Finite State Machine template, leveraging well-established design patterns and offering extensible functional capabilities.
Building a Finite State Machine with the soroban-sdk will be an experimentation journey. It's not just about making the open-source machine; it's also about creating clear guides and notes about what I'm doing. I'm going to be actively involved in the Soroban community, sharing what I learn and helping others.
Previous Work: This submission is a post-work derived from a previous submission I made for the “Sorobounty Spectacular”. See here: https://github.com/stellar/sorobounty-spectacular/discussions/15
Why?
Currently, there are limited functional modules created using the soroban-sdk. While there are good examples in the stellar/soroban-examples repository and some community-supported projects, there's still a need for more functional models. Additionally, it's crucial to follow standard design patterns when developing Smart Contracts in the soroban-sdk.
The product is a functional application that provides a template for creating an FSM-style process with additional functionalities. KMAC offers a foundation of components, implemented through a set of administrative security and error-handling functions, following standard design patterns. From a developer's perspective, as KMAC adheres to a modular design, it allows for understanding, exploring, testing, and documenting the design patterns of Smart Contracts implemented with the Soroban SDK.
The KMAC contributions:
The KMAC project will contribute to the Stellar and Soroban ecosystem by:
- Offering a comprehensive open-source Finite State Machine program that will utilize well-established design patterns. This accessible template will simplify the development for the community. KMAC's modular setup will make it easy to study, test, and document design patterns in Smart Contracts created with Soroban SDK. - Writing good articles and documentation about Soroban design patterns implementation. - Creation of open-source modules and libraries that will be available to be re-used by other developers in the ecosystem.
$7.5K
My team consists of just me (huitemagico). I hold a Computer Science degree and have over 50 years of software development experience, including the last 30 years as a project leader in banking-related projects. I also have one year of experience with Rust and the Soroban SDK.

No other submissions.