A magical Python3 -> TON portal
Rift is a full-stack development framework for TON (The Open Network) that makes it easy for developers to use Python to develop, test, and deploy smart contracts on the TON network. With Rift, you can leverage the simplicity and versatility of Python to build and interact with TON, without having to learn the complexities of FunC or Fift. For examples of how Rift simplifies these processes, visit Rift's website.
- Develop smart contracts using Python syntax and OOP features
- Interact with the TON network to query data and deploy contracts
- Test smart contracts with an easy-to-use testing framework
- Standalone framework that only requires
Python 3.10
- Can be used at any stage of the project, from development to testing to deployment
Warning
Rift's stable version is currently in release-candidate state, and we strongly advise thorough testing before transitioning to production. We are still in the process of battle-testing some internal modules, and we anticipate announcing a stable release in the near future. It is advisable to first deploy your contracts to
testnet
and test them meticulously before making the decision to move to production. Additionally, please verify theFunC
contracts generated.
- Install
Python 3.10+
- Install
rift
pip install rift-framework==1.0.0-rc1 # or from source git clone https://github.com/sky-ring/rift cd rift pip install -e .
- Initialize your project:
rift init <project-name>
- Develop your contracts in
<project>/contracts/
- Write your tests in
<project>/tests/
- Place your deploy scripts in
<project>/deployers/
- Use
rift
to build, test, or deploy:# in project folder # builds TARGET rift build TARGET # tests TARGET rift test TARGET # deploys TARGET rift deploy TARGET
- For more information, visit the documentation website at docs.skyring.io/rift.
- Step-by-Step with Rift: Simple Storage Contract
- Step-by-step guide on integrating
Rift
into existingFunC
projects: Coming Soon!
- Jetton Implementation (jettons)
- NFT Implementation
- DEX Implementation
- Semi One-to-One Mapping of Functions and Expressions (Base Compiler, Python -> FunC)
- First Higher Layer over the Base Mappings to Simplify Type Calls (leveraging OOP Capabilities)
- Second Higher Layer over the Base, Simplifying Contract Development towards Maximizing Code Reusability and Simplicity (leveraging Meta Programming Capabilities)
- Providing Standard Smart Contracts Implementation with Rift
- Simple Interaction Interface with TON Blockchain
- Simple Deploying Options of Developed Contracts
- Testing Framework for the Contracts Developed with Rift
In this milestone, we are thrilled to unveil the stable version of Rift, primed and ready for integration into real-world projects. Our vision is to foster a Rift ecosystem that thrives on the collective intelligence of its community. We are opening doors and creating avenues for our community members to contribute, refine, and evolve Rift. Here are some of the exciting initiatives we have in mind:
-
Rift Advancement Proposals (RAPs): A dynamic platform for you to propose and discuss enhancements for Rift. This is your chance to help shape the future of Rift!
-
Comprehensive Documentation: We are committed to offering an in-depth, yet user-friendly guide that reveals the full potential of Rift. Explore the inner workings and capabilities of Rift with ease and precision.
-
Extensive Example Sets: Gain a deeper understanding of Rift through practical examples that showcase its robust features and functionalities.
-
Multi-Contract Testing / Sandbox Integration: Embrace a worry-free testing environment. Experiment, play, and validate your projects with our integrated sandbox feature.
Join us on this thrilling journey, shaping the future of Rift, one milestone at a time. We can't wait to see where your contributions will lead us next!
- If
Rift
has been a lifesaver for you, giving it a star on GitHub is the ultimate high five! - You can also show your love by contributing to
Rift
through code, ideas, or even a kind word. - Feeling extra generous? Treat
Rift
to a coffee by donating to this TON address:EQAIhZCDT7-pvweWh6c_76X7Dnv6Qlzt7-l1NNP8upZ_Areu
- Finally, spreading the word about
Rift
is a big boost for the project and helps us reach more people.
If you're interested in contributing to Rift, please see CONTRIBUTING.md for the necessary specifications and procedures.
Special thanks to the TON Society for their support and grant, without which the project would not be feasible.