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
| pragma circom 2.0.0; | |
| include "../node_modules/circomlib/circuits/mimcsponge.circom"; | |
| template attestValidMove () { | |
| signal input move; | |
| signal input secret; | |
| signal output moveAttestation; | |
| component mimcAttestation = MiMCSponge(2, 220, 1); |
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
| curl 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3' -X POST -H 'content-type: application/json' --data-raw '{"operationName":"topPools","variables":{},"query":"query topPools {\n pools(\n first: 50\n orderBy: totalValueLockedUSD\n orderDirection: desc\n subgraphError: allow\n ) {\n id\n __typename\n totalValueLockedUSD \n }\n}\n"}' |
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: UNLICENSED | |
| pragma solidity ^0.8.11; | |
| import "./utils/Bytecode.sol"; | |
| contract CREATE07Proxy { | |
| error ErrorDestroyingContract(); | |
| error ErrorDeployingToDeterministicAddress(); | |
| function deployDataContract(bytes memory data) external { |
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
| FROM rust as builder | |
| WORKDIR /usr/src/power-clash/ | |
| COPY Cargo.toml . | |
| COPY Cargo.lock . | |
| # This is a dummy build to get the dependencies cached. | |
| RUN mkdir src \ | |
| && echo "fn main() {}" > src/main.rs \ | |
| && cargo build --release |
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 { BigNumber } from 'ethers' | |
| const BASE_FEE_MAX_CHANGE_DENOMINATOR = 8 | |
| export const getBaseFeeInNextBlock = ( | |
| currentBaseFeePerGas: BigNumber, | |
| currentGasUsed: BigNumber, | |
| currentGasLimit: BigNumber | |
| ): BigNumber => { | |
| const currentGasTarget = currentGasLimit.div(2) |