Skip to content

Instantly share code, notes, and snippets.

View webmodularity's full-sized avatar

Rory Hellyer webmodularity

View GitHub Profile
did:3:kjzl6cwe1jw145ewp4jl1m35gmlvkxwnc6ysguvuelw8c6j6n3uq2fr8ps3qhdf
//const { default: EthersSafe, EthersAdapter } = require("../src/Safe.ts");
//const ethers = require("ethers");
//require('dotenv').config({ path: `${__dirname}/../../.env` })
import Safe from '../src'
import { EthAdapter, EthersAdapter, Web3Adapter } from '../src'
import { ethers } from "ethers";
const SafeDisperseContract = require("./artifacts/SafeDisperse.json");
const ERC20Contract = require("./artifacts/ERC20.json");
const { default: EthersSafe, EthersAdapter } = require("@gnosis.pm/safe-core-sdk");
const ethers = require("ethers");
//require('dotenv').config({ path: `${__dirname}/../../.env` })
const SafeDisperseContract = require("./artifacts/SafeDisperse.json");
const ERC20Contract = require("./artifacts/ERC20.json");
const safeDisperseInterface = new ethers.utils.Interface(SafeDisperseContract.abi);
const erc20Interface = new ethers.utils.Interface(ERC20Contract.abi);
@webmodularity
webmodularity / gist:5c05db49a59f4a72ccca5bbcd89cbf54
Created March 2, 2022 19:57
DustSweeper - sweepDust.js example node script
const { ethers } = require("ethers");
require('dotenv').config();
// Your credentials
const providerUrl = `https://mainnet.infura.io/v3/${process.env.INFURA_ID}`; // Replace with your provider info
const privateKey = process.env.PK;// Replace with your private key
async function main() {
// Example , these makers have already been swept for these tokens
const makers = [
@webmodularity
webmodularity / sweepDust.js
Created April 29, 2022 01:27
DustSweeper V2 taker sweepDust implementation
const { ethers } = require("ethers");
const axios = require('axios').default;
require('dotenv').config();
/////////////////////////
// EDIT THESE VALUES //
/////////////////////////
const makers = [
"0xFA62E6eFEc39b4Dc5E3f37D676F18B560f7dD458"
];
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.