Skip to content

Instantly share code, notes, and snippets.

View Turupawn's full-sized avatar
🇭🇳
Karaoke veteran

Ahmed Castro Turupawn

🇭🇳
Karaoke veteran
View GitHub Profile
git clone https://github.com/Layr-Labs/eigenda.git
cd eigenda

Run

./grpcurl -proto ./api/proto/disperser/disperser.proto -d '{"data": "0420", "security_params": [{"quorum_id": 0, "adversary_threshold": 25, "quorum_threshold": 50}]}' disperser-goerli.eigenda.xyz:443 disperser.Disperser/DisperseBlob
const {Web3} = require("web3");
const HttpProviderOptions = require("web3-core-helpers").HttpProviderOptions;
const BlockTransactionString = require("web3-eth").BlockTransactionString;
const ethers = require("ethers");
const concat = ethers.concat;
// Initialize web3 instance with HttpProvider
const url ='https://sepolia-rpc.scroll.io';
const httpProvider = new Web3.providers.HttpProvider(url);
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
struct ExactInputSingleParams {
address tokenIn;
address tokenOut;
uint24 fee;
address recipient;
uint amountIn;
@Turupawn
Turupawn / EmojiToken.emoji
Last active January 10, 2024 23:59
Emoji Token
🗺️💰
🗺️🗺️🛂
💰👤📥1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
🪙💰👀↩️🔢
🏁
↩️1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
🔚
grpcurl -proto ./api/proto/disperser/disperser.proto -d '{"request_id": "MjU3NzFjZTMwYjAwZmYzM2YyM2UzMDg4ZGM2MWI3MGE1NGRkMjIyZDMwZDBkYzFkZjVjN2FlOTA5ZThkMGE4MC0zMTM3MzAzNDMwMzUzNTM5MzEzMTM5MzYzMjMzMzczNDMwMzEzODJmMzAyZjMyMzUyZmUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTU="}' disperser-goerli.eigenda.xyz:443 disperser.Disperser/GetBlobStatus
{
"status": "CONFIRMED",
"info": {
"blobHeader": {
"commitment": "JH8DAQEKQ29tbWl0bWVudAH/gAABAQEHRzFQb2ludAH/ggAAACP/gQMBAQdHMVBvaW50Af+CAAECAQFYAf+EAAEBWQH/hAAAABf/gwEBAQdFbGVtZW50Af+EAAEGAQgAAFH/gAEBBPiSouQCrCVsQ/gK9Q2VEy8Ex/hMRb3Ra9mi+PgXEiFGHiunXgEE+Cdn0C1imPJi+IqXjBamlBPz+BlA0tebQfFL+Co2eKCRSeVXAAA=",
"dataLength": 1,
"blobQuorumParams": [
{
"adversaryThresholdPercentage": 25,
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import "https://github.com/Layr-Labs/eigenlayer-contracts/blob/m2-mainnet/src/contracts/libraries/Merkle.sol";
import "https://github.com/Layr-Labs/eigenlayer-contracts/blob/m2-mainnet/src/contracts/interfaces/ISignatureUtils.sol";
import "https://github.com/Layr-Labs/eigenlayer-middleware/blob/m2-mainnet/src/interfaces/IDelayedService.sol";
import {IBLSApkRegistry} from "https://github.com/Layr-Labs/eigenlayer-middleware/blob/m2-mainnet/src/interfaces/IBLSApkRegistry.sol";
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
struct ExactInputSingleParams {
address tokenIn;
address tokenOut;
uint24 fee;
address recipient;
uint deadline;
uint256 amountIn;