Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| const { ethers } = require("ethers"); | |
| const axios = require('axios').default; | |
| require('dotenv').config(); | |
| ///////////////////////// | |
| // EDIT THESE VALUES // | |
| ///////////////////////// | |
| const makers = [ | |
| "0xFA62E6eFEc39b4Dc5E3f37D676F18B560f7dD458" | |
| ]; |
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
| 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 = [ |
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
| 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); |
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
| //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"); |
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
| did:3:kjzl6cwe1jw145ewp4jl1m35gmlvkxwnc6ysguvuelw8c6j6n3uq2fr8ps3qhdf |