Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.21;
import {Test} from 'forge-std/Test.sol';
import {IVault} from 'contracts/interfaces/balancer/IVault.sol';
import {IManagedPoolFactory} from 'contracts/interfaces/balancer/IManagedPoolFactory.sol';
import {IWETH} from 'contracts/interfaces/misc/IWETH.sol';
bytes constant WETH_CREATION_CODE = hex'60606040526040805190810160405280600d81526020017f57726170706564204574686572000000000000000000000000000000000000008152506000908051906020019061004f9291906100c8565b506040805190810160405280600481526020017f57455448000000000000000000000000000000000000000000000000000000008152506001908051906020019061009b9291906100c8565b506012600260006101000a81548160ff021916908360ff16021790555034156100c357600080fd5b61016d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010957805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013657825182559160200191906001019061011b565b5b5090506101449190610148565b5090565b61016a91
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.21;
import {Test} from 'forge-std/Test.sol';
import {IVault} from '@balancer-v2/contracts/interfaces/contracts/vault/IVault.sol';
import {IManagedPoolFactory} from '../../contracts/interfaces/IManagedPoolFactory.sol';
bytes constant WETH_CREATION_CODE = hex'60606040526040805190810160405280600d81526020017f57726170706564204574686572000000000000000000000000000000000000008152506000908051906020019061004f9291906100c8565b506040805190810160405280600481526020017f57455448000000000000000000000000000000000000000000000000000000008152506001908051906020019061009b9291906100c8565b506012600260006101000a81548160ff021916908360ff16021790555034156100c357600080fd5b61016d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010957805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013657825182559160200191906001019061011b565b5b5090506101449190610148565b5090565b61016a91905b80821115610166576000816000905550600101
@solimander
solimander / keccak256.rs
Last active April 21, 2023 15:15
Keccak256
const RHO: [u32; 24] = [
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 2, 14, 27, 41, 56, 8, 25, 43, 62, 18, 39, 61, 20, 44,
];
const PI: [usize; 24] = [
10, 7, 11, 17, 18, 3, 5, 16, 8, 21, 24, 4, 15, 23, 19, 13, 12, 2, 20, 14, 22, 9, 6, 1,
];
const WORDS: usize = 25;
const ROUNDS: usize = 24;
const RC: [u64; ROUNDS] = [
0x0000000000000001,
@solimander
solimander / keybase.md
Created December 9, 2021 23:27
keybase.md

Keybase proof

I hereby claim:

  • I am solimander on github.
  • I am solimander (https://keybase.io/solimander) on keybase.
  • I have a public key ASCiLZnia4p2I_EXMZelevzeFSjwAIWu4vg2O6eKhF6mCQo

To claim this, I am signing this object: