curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
- Metamask: https://metamask.io/
- Remix: https://remix.ethereum.org/
- Sepolia faucet: https://sepoliafaucet.com/
- Other faucets: https://docs.scroll.io/en/user-guide/faucet/
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
const NETWORK_ID = 534351 | |
const MY_CONTRACT_ADDRESS = "0xdE19032216f861c6011F6898B14fb49Fd26c45F2" | |
const MY_CONTRACT_ABI_PATH = "./json_abi/MyContract.json" | |
var my_contract | |
var accounts | |
var web3 | |
function metamaskReloadCallback() { |
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
// run with node etherscan_script.mjs | |
var ACCOUNT = "XXX" | |
var API_URL= "https://api-optimistic.etherscan.io/api" | |
var API_KEY = "YYY" | |
var MY_TX_COUNT = 0 | |
var INTRACTIONS_WITH_MY_CONTRACTS_COUNT = 0 | |
var ONBOARDED_COUNT = 0 | |
var ONBOARDED_MULTI_TX_COUNT = 0 |
mkdir -p $HOME/.nargo/bin && \
curl -o $HOME/.nargo/bin/nargo-x86_64-unknown-linux-gnu.tar.gz -L https://github.com/noir-lang/noir/releases/download/v0.17.0/nargo-x86_64-unknown-linux-gnu.tar.gz && \
tar -xvf $HOME/.nargo/bin/nargo-x86_64-unknown-linux-gnu.tar.gz -C $HOME/.nargo/bin/ && \
echo -e '\nexport PATH=$PATH:$HOME/.nargo/bin' >> ~/.bashrc && \
source ~/.bashrc
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: MIT | |
pragma solidity ^0.8.23; | |
import { IEAS, AttestationRequest, AttestationRequestData, RevocationRequest, RevocationRequestData } from "@ethereum-attestation-service/eas-contracts/contracts/IEAS.sol"; | |
import { ISchemaRegistry, SchemaRecord, ISchemaResolver } from "@ethereum-attestation-service/eas-contracts/contracts/ISchemaRegistry.sol"; | |
import { NO_EXPIRATION_TIME, EMPTY_UID } from "@ethereum-attestation-service/eas-contracts/contracts/Common.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; |
https://docs.scroll.io/en/developers/guides/scroll-messenger-cross-chain-interaction/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
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
/* | |
Scroll gas fees are a combination of "L2 execution fees" (on Scroll) and "L1 security fees" (on Ethereum): | |
totalFee = (l2GasPrice * l2GasUsed) + l1Fee | |
Where: | |
- `l2_gas_price` corresponds to the cost of execution on L2 | |
- `l2_gas_used` corresponds to the amount of gas used on L2 | |
- `l1Fee` corresponds to the data availibity and validity proof costs on L1 |
NewerOlder