Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Gelato Web3 Functions shut down. Here’s how to port yours

Описание и применение

Gelato Web3 Functions отключили 31 марта 2026 г. Перенос задачи на 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.onRun with defineTask({schema, run}).
  • 2. Switch provider from multiChainProvider.default() to ctx.client (viem client).
  • 3. Rename callData to calls.
  • 4. Update secret access from secrets.get('KEY') to ctx.secrets.KEY.
  • 5. Adjust storage access from storage.get/set to ctx.storage.key.
  • 6. Update test and deploy commands from npx w3f to thyme run and thyme upload.
  • 7. Verify the task runs and returns the same calls array.

Доказательства

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