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
| /** | |
| * Quicktest: End-to-end pNFT candy machine creation and mint | |
| * | |
| * Runs the full flow: | |
| * 1. Upload assets (skips if cache exists) | |
| * 2. Create collection NFT | |
| * 3. Update timestamps & wallet in config | |
| * 4. Generate allowlists & update config | |
| * 5. Create pNFT candy machine (token standard 4) with guard groups | |
| * 6. Add items to candy machine |
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 { hash } from "./blake3.js"; | |
| function formatSize(bytes) { | |
| if (bytes < 1024) return `${bytes} B`; | |
| if (bytes < 1024 * 1024) return `${bytes / 1024} KB`; | |
| return `${bytes / (1024 * 1024)} MB`; | |
| } | |
| const CASES = [ |
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
| const OUT_LEN = 32; | |
| const KEY_LEN = 32; | |
| const BLOCK_LEN = 64; | |
| const CHUNK_LEN = 1024; | |
| const CHUNK_START = 1 << 0; | |
| const CHUNK_END = 1 << 1; | |
| const PARENT = 1 << 2; | |
| const ROOT = 1 << 3; |
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
| const puppeteer = require('puppeteer'); | |
| const fs = require('fs'); | |
| (async () => { | |
| const chromePaths = [ | |
| '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', | |
| '/Applications/Chromium.app/Contents/MacOS/Chromium' | |
| ]; | |
| // update this to your OS enviroment |
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.8.7; | |
| // final i working | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/token/ERC20/ERC20.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/token/ERC20/extensions/ERC20Burnable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/access/Ownable.sol"; | |
| import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol"; | |
| import "@chainlink/contracts/src/v0.8/ConfirmedOwner.sol"; | |
| contract CustomToken is ERC20, ERC20Burnable, Ownable, ChainlinkClient { |
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
| <div class="container"> | |
| <h1>Coming Soon.</h1> | |
| </div> | |
| <footer> | |
| <a href="mailto:me@jonathano.com">me@jonathano.com</a> | © 2016 Jonathan Ohayon | |
| </footer> |
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
| canvas | |
| menu | |
| form(onsubmit='init(event)') | |
| input( | |
| type='text' | |
| id='textInput' | |
| maxLength='90' | |
| placeholder='Random text' | |
| ) | |
| button Run |