This file contains 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.8.22; | |
import {wadLn, unsafeWadMul, unsafeWadDiv} from "solmate/utils/SignedWadMath.sol"; | |
/// @notice Approximated principal branch of [Lambert W function](https://en.wikipedia.org/wiki/Lambert_W_function) | |
/// @dev Only supports the [1/e, 3+1/e] and [3+1/e, inf] interval | |
/// @dev Approximate [1/e, 3+1/e] with a lookup table weighted average | |
/// @dev Approximate and [3+1/e, inf] with ln(x) - ln(ln(x)) + ln(ln(x))/ln(x) | |
contract Lambert { |
This file contains 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
[ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ |
This file contains 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
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_factory", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", |
This file contains 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
[ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ |
This file contains 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.8.12; | |
import {IERC20} from "../interfaces/IERC20.sol"; | |
contract BetEscrow { | |
event BetOffered(uint betId); | |
enum Status { |
This file contains 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: GPL-3.0 | |
/** | |
Cycle through NFTX pools until you find the ID you want | |
See https://github.com/NFTX-project/x-contracts-private/blob/4650f3cae4c2d776ca45effba65513c9e6ec4b6b/contracts/NFTX.sol | |
*/ |
This file contains 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
{ | |
"0xAb2e11C99D8830D5d9B2494A565c974595e39eef": [ | |
"https://opensea.io/bundles/hdpunks-reservation-bundle-0xab2e11c99d8830d5d-eh2" | |
], | |
"0x94eB448740ff114046d2Dd4A9E7e36Ce25adCC06": [ | |
"https://opensea.io/bundles/hdpunks-reservation-bundle-0x94eb448740ff11404-AKX" | |
], | |
"0xE9Fb10063CF707EF741Ff7149a27880cE5adB296": [ | |
"https://opensea.io/bundles/hdpunks-reservation-bundle-0xe9fb10063cf707ef7-sFF" | |
], |
This file contains 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
{ | |
"0xAb2e11C99D8830D5d9B2494A565c974595e39eef": [], | |
"0x94eB448740ff114046d2Dd4A9E7e36Ce25adCC06": [ | |
"https://opensea.io/bundles/hdpunks-reservation-bundle-0x94eb448740ff11404-AKX" | |
], | |
"0xE9Fb10063CF707EF741Ff7149a27880cE5adB296": [ | |
"https://opensea.io/bundles/hdpunks-reservation-bundle-0xe9fb10063cf707ef7-sFF" | |
], | |
"0xdFB6B1febdEcBfDCe1014216D5F80BA52109Eb1A": [ | |
"https://opensea.io/bundles/hdpunks-reservation-bundle-0xdfb6b1febdecbfdce-kuH" |
This file contains 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
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)" |
This file contains 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
Token data: ipfs://QmZ4vBPDdKfTBKvDMBwjsuPXrpTQnbJo4LPJEBF1rJrGic | |
Salt 0xe32ad8bca184ff49cadbc377d1cbecf6650b069302ce642a8bcada028828c873 (13374200) | |
0x60806040527310b16eede03cf73cbf44e4bfffa3e6bff36f1fad600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060405180606001604052806035815260200162002ad360359139600790805190602001906200008a9291906200042c565b506360eec8606008556040518060400160405280600881526020017f47616d6573746f700000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f474d4500000000000000000000000000000000000000000000000000000000008152508160009080519060200190620001179291906200042c565b508060019080519060200190620001309291906200042c565b50505062000168600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000620001d560201b60201c565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cd |
NewerOlder