This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generates a prompt for creating professional profile summaries optimized for search and AI embeddings | |
* @param {Object} data - Structured data about the professional | |
* @param {string} [data.fullName] - Professional's full name | |
* @param {string} [data.jobTitle] - Current job title | |
* @param {string} [data.companyName] - Current company name | |
* @param {string} [data.location] - Professional's location | |
* @param {string} [data.industry] - Primary industry | |
* @param {string[]} [data.specialties] - Key areas of specialization | |
* @param {Object[]} [data.experience] - Array of work experiences |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.7.0 <0.9.0; | |
interface IMyToken { | |
function getPastVotes(address, uint256) external view returns (uint256); | |
} | |
contract TokenizedBallot { | |
struct Proposal { | |
bytes32 name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { expect } from "chai"; | |
import { viem } from "hardhat" | |
import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; | |
import { parseEther, keccak256, toHex } from 'viem' | |
const MINT_VALUE = 100n; | |
async function deployContractFixture() { | |
const publicClient = await viem.getPublicClient(); | |
const [deployer, acc1, acc2] = await viem.getWalletClients(); |