Skip to content

Instantly share code, notes, and snippets.

View Vectorized's full-sized avatar
🎡

Vectorized Vectorized

🎡
View GitHub Profile
@Vectorized
Vectorized / Multicallable.sol
Last active July 24, 2022 18:40
Multicallable
// SPDX-License-Identifier: MIT
// Author: vectorized.eth
pragma solidity ^0.8.4;
// Normal Solidity: 45845
// Yul: 45350
abstract contract Multicallable {
function multicall(bytes[] calldata data) public payable returns (bytes[] memory results) {
assembly {
results := mload(0x40)
@Vectorized
Vectorized / Sprinkly.sol
Last active August 3, 2022 02:04
Sprinkly Headers
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;
library SafeTransferLib {
/*´:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:*/
/* CUSTOM ERRORS */
/*.•°:°.´•˚.*°.˚:*.´•*.•°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´•*.•*/
error ETHTransferFailed();
@Vectorized
Vectorized / MiladyRaveMaker.sol
Last active October 21, 2023 00:38
MiladyRaveMaker
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "solady/src/utils/ECDSA.sol";
import "solady/src/utils/LibString.sol";
import "solady/src/utils/SafeTransferLib.sol";
@Vectorized
Vectorized / RareSkills zk Bootcamp Testimonial.md
Last active February 3, 2024 07:42
RareSkills zk Bootcamp Testimonial

If you have ever felt FOMO from all the zk moon math talk, just take RareSkills zk bootcamp.

Yes, they have published superb free public reading materials, but you will learn much better with live, well-paced customized lessons, and the 1:1 homework feedback.

Even if you do not have concrete plans to use zk in your professional work, the zk bootcamp will help you achieve a much deeper understanding and appreciation of the EVM ecosystem in general.

Take the dive.

@Vectorized
Vectorized / lib.rs
Created January 27, 2025 19:47
Solana Basic NFT Sale Program
use anchor_lang::prelude::*;
use anchor_spl::associated_token::{self, AssociatedToken};
use anchor_spl::token::{self, InitializeMint, Mint, MintTo, Token, TokenAccount};
use mpl_token_metadata::instruction::{create_master_edition_v3, create_metadata_accounts_v3};
use mpl_token_metadata::state::{Creator, DataV2};
use solana_program::program::invoke_signed;
use solana_program::system_instruction;
declare_id!("FILL_IN_YOUR_PROGRAM_ID_HERE");