Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.43 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.43 KB

Gelato Secrets Smart Contract and Task Automation

This project demonstrates how to use Gelato Automate to create a task and set secrets for a smart contract using a trusted signer mechanism and the Sign-In With Ethereum (SIWE) flow.

Introduction

The GelatoSecretsContract contract uses Gelato Automate to automate tasks. The contract integrates with Gelato Automate and allows a trusted signer to create tasks and interact with secrets securely using the SIWE (Sign-In With Ethereum) flow.

This project includes:

A smart contract that supports task automation. A script to create tasks using the smart contract. A script to set secrets for tasks using SIWE.

How to run the project

Install dependencies

npm install

Compile the smart contract

npx hardhat compile

Deploy the smart contract

npx hardhat deploy --tags GelatoSecretsContract --network arbitrumSepolia

Create a task

npx hardhat run scripts/create-task-gelato.ts --network arbitrumSepolia

Set secrets for the task

npx hardhat run scripts/siwe-secrets-gelato.ts --network arbitrumSepolia