Skip to content

Instantly share code, notes, and snippets.

View jordaniza's full-sized avatar
🎲
All In

Jordan jordaniza

🎲
All In
View GitHub Profile
@jordaniza
jordaniza / Start.t.sol
Created September 18, 2024 13:27
Check When We start
pragma solidity ^0.8.17;
import {Test, console2 as console} from "forge-std/Test.sol";
import {Clock} from "src/clock/Clock.sol";
contract TestWhenWeStart is Test {
Clock clock;
function setUp() public {
clock = new Clock();
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC165, IERC721, IERC721Metadata} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import {IERC6372} from "@openzeppelin/contracts/interfaces/IERC6372.sol";
import {IERC4906} from "@openzeppelin/contracts/interfaces/IERC4906.sol";
import {IVotes} from "./IVotes.sol"; // modified ivotesish interface for dynamic voting
/*///////////////////////////////////////////////////////////////
CORE FUNCTIONALITY

This working document aims to give a brief overview of how Aragon can architect a RISC-0 application for Zk voting.

Overview of a RISC-0 application

In this section we distill the elements of the RISC-0 toolchain relevant for our application.

CLICK TO OPEN IN A BROWSER

image

@jordaniza
jordaniza / Flattened.sol
Created May 7, 2024 17:08
Flattened version of DAO.sol using yarn hardhat flatten
// Sources flattened with hardhat v2.22.3 https://hardhat.org
// SPDX-License-Identifier: AGPL-3.0-or-later AND MIT
// File @openzeppelin/contracts-upgradeable/interfaces/[email protected]
// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
pragma solidity ^0.8.0;
@jordaniza
jordaniza / mounted_tree.sh
Created September 1, 2022 12:35
tree /boot after mount /dev/nvme0n1p1 /mnt/boot/efi
/boot
|-- EFI
|-- efi
| `-- EFI
| |-- BOOT
| | `-- BOOTX64.EFI
| |-- GRUB
| | `-- grubx64.efi
| `-- grub_uefi
| `-- grubx64.efi
@jordaniza
jordaniza / tree.sh
Created September 1, 2022 12:30
tree /boot
/boot
|-- EFI
|-- efi
|-- grub
| |-- fonts
| | `-- unicode.pf2
| |-- grub.cfg
| |-- grubenv
| |-- locale
| | |-- ast.mo