Skip to content

gelatodigital/w3f-poc-secrets-smart-contract

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published