Protocol Identifiers
Protocol-interaction tasks identify protocols and actions using keccak256 hashes of UTF-8 string names.
Compute with viem:
import { keccak256, toBytes } from "viem";
keccak256(toBytes("raffles"));
keccak256(toBytes("buyTicket"));Registered protocols
raffles
Protocol name
raffles
Protocol hash
0x4dbce8120d8053ee8aea0d3534f8f5019eb971dfc14c0686f6422b40ac39337c
Destination chains
Base (8453), Base Sepolia (84532)
Actions
buyTicket
0xa373ddddfee8d2b488aaa8d0eb111c537a84f43f82a2fd27cc3375908a96708e
Purchase raffle tickets
createRaffle
0x0a35c5f95cd6d0a0b20afc747b32027a1fe1395dca1e7a797211b17f00f4b020
Fund and create a new raffle
extraData schemas
buyTicket
Type string:
Example:
createRaffle
Type string:
Example:
Task type identifiers
Task types use the first 4 bytes of keccak256(taskTypeString):
gettokenout
TaskType.GetTokenOut
deposit
TaskType.Deposit
protocol-interaction
TaskType.ProtocolInteraction
Adding a new protocol
Contact Epoch with:
Protocol name (string) → will be hashed
Action names (strings) → will be hashed
extraDatafield schema (ABI type string + JSON example)Destination chain(s) and contract addresses
Last updated