Gelato Web3 Functions shut down. Here’s how to port yours
说明与用途
Gelato Web3 Functions 在 2026 年 3 月 31 日停止运行。迁移到 Thyme Flow 需要替换入口点、提供者、字段名和秘密访问。逻辑保持不变,但现在使用 defineTask、ctx.client 和 calls。
问题
Gelato ended Web3 Functions on March 31 2026, stopping all tasks, triggers, and logs that depended on its executor.
结果
The migration preserves the original decision logic and API calls while adapting to Thyme Flow’s API and tooling. Validation, storage, and secret handling are streamlined, and the task can be tested and deployed with Thyme’s CLI.
工作流
- 1. Replace
Web3Function.onRunwithdefineTask({schema, run}). - 2. Switch provider from
multiChainProvider.default()toctx.client(viem client). - 3. Rename
callDatatocalls. - 4. Update secret access from
secrets.get('KEY')toctx.secrets.KEY. - 5. Adjust storage access from
storage.get/settoctx.storage.key. - 6. Update test and deploy commands from
npx w3ftothyme runandthyme upload. - 7. Verify the task runs and returns the same
callsarray.
证据
Gelato ended Web3 Functions and Automate on March 31 2026. Every task created there stopped: the triggers, the recurring jobs, the logs.
The entry point: Web3Function.onRun(...) becomes defineTask({ schema, run }).
The provider: ethers via multiChainProvider becomes ctx.client, a read-only viem client.
One field name: callData becomes calls.
Same check, same API call, same call returned.
- 记录日期: 2026-10-19T09:56:00.382Z