Skip to content

Instantly share code, notes, and snippets.

View manolingam's full-sized avatar
🎖️
Building

Mano manolingam

🎖️
Building
View GitHub Profile
import csv
import openai
import pinecone
import os
import ast
from dotenv import load_dotenv
load_dotenv()
openai.api_key=os.environ['OPENAI_API_KEY']
did:3:kjzl6cwe1jw148vf37tiv2tb7aqscmdguwys42pch4d8t3l85gyh0ug2ihxmmea
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
error NotYourBufficorn();
error BufficornOnSwap();
error BufficornNotGrazing();
error BufficornGrazing();
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
error NotEnoughBalance();
error NotEnoughAllowance();
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
error NotEnoughBalance();
error NotEnoughAllowance();
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract BufficornTraitSwapperEscrow {
using SafeERC20 for IERC20;
did:3:kjzl6cwe1jw149rkg8rfypos9y52lipjfhejob5ttex11a533hcei31enzbx3o8
const functions = require('./functions.js')
test('adds properly', () => {
expect(functions.sum(1, 5)).toBe(6)
})
test('subtracts properly', () => {
expect(functions.subtract(1, 2)).toBe(-1)
})
const functions = {
sum: (a, b) => {
return a + b
},
subtract: (a, b) => {
return a - b
},
copyArray: (a) => {
return [... a]
}
{
"name": "test-js",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "jest"
},
"keywords": [],
"author": "",