sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
#!/usr/bin/env bash | |
# Pre-requisites: | |
# - foundry (https://getfoundry.sh/) | |
# - rsync (https://github.com/WayneD/rsync) | |
# - pnpm (https://pnpm.io) | |
# - sd (https://github.com/chmln/sd) | |
# Strict mode: https://gist.github.com/vncsna/64825d5609c146e80de8b1fd623011ca | |
set -euo pipefail |
// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity >=0.8.4; | |
import "https://github.com/Rari-Capital/solmate/blob/audit-fixes/src/utils/SafeTransferLib.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/interfaces/IERC3156FlashLender.sol"; | |
contract FlashPotBorrow is IERC3156FlashBorrower { | |
using SafeTransferLib for address; |
// SPDX-License-Identifier: GPL-3.0-or-later | |
error NoExecParity(); | |
error NoSigParity(); | |
error NotSigner(); | |
error SigOutOfOrder(); |
const { expect } = require("chai"); | |
describe("NFTOptions", function () { | |
const penguAddr = "0xBd3531dA5CF5857e7CfAA92426877b022e612cf8"; | |
const penguOwner = "0x2c2c2F6DBe08942280d4F7626b6BAd5C11D20215"; | |
const ids = ["2036", "4205"]; | |
const buyer = "0xe5ee2B9d5320f2D1492e16567F36b578372B3d9F"; | |
const erc721Abi = [ | |
"function approve(address to, uint256 tokenId)" |
Based on this blogpost.
Install with Homebrew:
$ brew install postgresql@14
(The version number 14
needs to be explicitly stated. The @
mark designates a version number is specified. If you need an older version of postgres, use postgresql@13
, for example.)
import React from 'react' | |
import { createClient } from 'urql' | |
const client = createClient({ | |
url: 'https://api.thegraph.com/subgraphs/name/dabit3/zoranftsubgraph' | |
}) | |
const query = ` | |
query { | |
tokens( |