Remlo’s execution layer is governed by a suite of five intelligent smart contracts authored in Solidity. These contracts manage treasury bounds, batching logic, streaming payroll, yield optimization, and the employee compliance registry. Before any frontend or API logic can function, these contracts must be compiled and deployed to the Tempo network. We utilize Foundry as the primary blockchain development framework due to its blazingly fast execution, native Rust compilation, and seamless contract verification workflows.Documentation Index
Fetch the complete documentation index at: https://docs.remlo.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Foundry Setup and Configuration
Make sure your local environment is configured to point to the Tempo ecosystem. Ensure that you have thetempo variant of Foundry installed:
Preparing for Deployment
You will need a funded tester wallet on the Moderato network to pay for the contract deployment gas fees.- Export your deployment wallet’s private key.
- Use the native
castutility to request funds from the Moderato sponsor faucet.
Executing the Deployment Script
TheDeploy.s.sol script handles the orchestration, ensuring the contracts are deployed in the correct order so that constructor dependencies (such as the PayrollBatcher referencing the PayrollTreasury) are respected permanently.
Deploy.s.sol script for a single-click deployment.
Post-Deployment Steps
After successful deployment, Foundry will output the live contract addresses in your terminal. You must manually copy these addresses and inject them into your.env.local configuration for the Next.js API layer to interact with the current state.