Skip to content

Instantly share code, notes, and snippets.

View sarvagnakadiya's full-sized avatar
🎯
Focusing

Sarvagna Kadiya sarvagnakadiya

🎯
Focusing
View GitHub Profile
@sarvagnakadiya
sarvagnakadiya / index.js
Created April 21, 2025 13:47
/Users/sarvagnakadiya/projects/ek-leaf/ekcore/packages/tests/src/index.ts
import dotenv from "dotenv";
dotenv.config();
import { anthropic } from "@ek/anthropic";
import {
agent,
AgentStream,
AgentToolCall,
AgentToolCallResult,
StopEvent,
@sarvagnakadiya
sarvagnakadiya / route.tsx
Created April 10, 2025 20:16
getting swap data next api
import {
AlphaRouter,
SwapOptionsSwapRouter02,
SwapType,
} from '@uniswap/smart-order-router';
import {
TradeType,
CurrencyAmount,
Percent,
Token,
@sarvagnakadiya
sarvagnakadiya / campaign.tsx
Created January 27, 2025 08:04
campaign.tsx file with metaTransaction
"use client";
import { Button } from "@/components/ui/Button";
import { signOut } from "next-auth/react";
import { useCallback, useState } from "react";
import { useRouter } from "next/navigation";
import { ethers } from "ethers";
import CampaignsNativeGaslessClaim from "@/lib/abi/CampaignsNativeGaslessClaim.json";
import {
useAccount,
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
contract HandshakeTokenTransfer is EIP712 {
"use client";
import React from "react";
import {
SignProtocolClient,
SpMode,
OffChainSignType,
OffChainRpc,
DataLocationOffChain,
IndexService,
} from "@ethsign/sp-sdk";

DISCIPLINE

Incorporate foods that promote healthy skin and overall well-being. Additionally, ensure proper hydration and include exercises to enhance muscle growth.

Water Intake:

  • Daily Goal: Aim for at least 3-4 liters of water per day.
  • Tips:
    • Start your day with a glass of water.
    • Carry a water bottle with you to stay hydrated throughout the day.
  • Drink water before and after meals.
@sarvagnakadiya
sarvagnakadiya / vaults.md
Last active July 3, 2024 11:31
The notes and explanation for vaults
const express = require("express");
const {
SchemaEncoder,
SchemaRegistry,
createOffchainURL,
EAS,
Delegated,
ZERO_BYTES32,
NO_EXPIRATION,
} = require("@ethereum-attestation-service/eas-sdk");
const express = require("express");
const {
SchemaEncoder,
SchemaRegistry,
createOffchainURL,
EAS,
Delegated,
ZERO_BYTES32,
NO_EXPIRATION,
} = require("@ethereum-attestation-service/eas-sdk");
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "https://github.com/ethereum-attestation-service/eas-contracts/blob/master/contracts/resolver/SchemaResolver.sol";
import "https://github.com/ethereum-attestation-service/eas-contracts/blob/master/contracts/IEAS.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/// @title AttesterResolver
/// @notice A chora_club schema resolver that checks whether the attestation is from chora_club' address.