Claiming the airdrop for Diva
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
%{ | |
configs: [ | |
%{ | |
name: "default", | |
strict: true, | |
color: true, | |
checks: [ | |
# Consistency | |
{Credo.Check.Consistency.MultiAliasImportRequireUse, false}, |
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
let g:focused = 0 | |
function! Focus() | |
let g:focused = 1 - g:focused | |
if g:focused == 1 | |
let b:coc_suggest_disable = 1 | |
:Goyo 120 | |
:Limelight | |
:Voom markdown | |
:exe "normal \<C-w>\<C-w>" |
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 | |
pragma solidity >=0.7.0 <0.9.0; | |
/// @title Voting with delegation. | |
contract Ballot { | |
// This declares a new complex type which will | |
// be used for variables later. | |
// It will represent a single voter. | |
struct Voter { | |
uint weight; // weight is accumulated by delegation | |
bool voted; // if true, that person already voted |
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
set positional-arguments | |
build_dir := "./build" | |
all: | |
just compile Hello | |
# TODO add other circuits | |
# | |
# Circom compilation |
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
name: Test contracts (foundry) | |
on: | |
push: | |
branches: | |
- master | |
- foundry | |
tags: | |
- "*" | |
pull_request: |
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
pragma solidity ^0.8.13; | |
import "forge-std/Script.sol"; | |
interface UniV3 { | |
struct ExactInputParams { | |
bytes path; | |
address recipient; | |
uint256 amountIn; | |
uint256 amountOutMinimum; |
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
#!/usr/bin/env bash | |
function check_root() { | |
id -u | |
ps -o comm= -p $PPID | |
if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then | |
echo -e "\nExiting..." | |
exit | |
fi | |
} | |
echo "asd" |
overall goal: unified setup for building, testing and deploying web3 apps, both smart contracts & web app
- lots of improvements to be made, but the main core is good enough to build on top of (famous last words, I know)
- I truly believe we offer some ideas that are not present in any other developer tool
- some ideas can absolutely be adapted for end-users (i.e. to provide power-user features, robustness, and a good trade-off between UX and security)
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: UNLICENSED | |
pragma solidity ^0.8.24; | |
import "openzeppelin-contracts/contracts/utils/math/Math.sol"; | |
import "src/Interfaces/IBorrowerOperations.sol"; | |
import {DECIMAL_PRECISION} from "src/Dependencies/Constants.sol"; | |
import "src/Zappers/Modules/Exchanges/UniswapV3/IUniswapV3Pool.sol"; | |
import "src/Zappers/Modules/Exchanges/UniswapV3/INonfungiblePositionManager.sol"; |
OlderNewer