const ethers = require("ethers");
const contractAbi = require("MushroomsGenericKeep3rV2.abi.json");
const iface = new ethers.utils.Interface(contractAbi);
const provider = new ethers.providers.JsonRpcProvider("{your rpc node url}");
const keeper = new ethers.Wallet("{keeper private key}", provider);
const upKeepContract = new ethers.Contract("0x031D40daEbf78b12070e2BC8dde0050422746b06", contractAbi, keeper);
function earn() {
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 axios = require('axios'); | |
const mushrooms_endpoint = 'https://vjeieiw4tf.execute-api.us-east-1.amazonaws.com/apy'; | |
const bsc_chainId = 56; | |
const ftm_chainId = 250; | |
const polygon_chainId = 137; | |
const avalanche_chainId = 43114; | |
const chainNames = {1: 'ethereum', 56: 'bsc', 250: 'fantom', 137: 'polygon', 43114: 'avalanche'} | |
async function main() { |
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
0x4a205424de1a6e5fc83d5f5f415fb2296542efce | |
0x8f944f138f847efbf76ff8d15bd3fc2170dcb577 | |
0x991a3c90c9e49c80be86f968cbc749488d902b07 | |
0x28499979d6043d8eddc883dbe52495b13ce6835e | |
0x3ed0ed9fcb298429da9bfc006be7c677e5990fdb | |
0x3a45e2f5ab0218d7c35aec963fca64de03934057 | |
0x1a3f00a013670becaf3e51b5db8c0a530b5bf08f | |
0x4694e41f5008b108602102c1c87e9871fb34ed93 | |
0x1c7631dce2b7a555680d0541f6dfccf48e5c6e60 | |
0x7e3de32b65ccae9233ad666f5f7b2872ef37fa09 |
I hereby claim:
- I am mushroomsforest on github.
- I am mushrooms_fin (https://keybase.io/mushrooms_fin) on keybase.
- I have a public key ASBpxBhxxoKug8S2yz8l9AfmsKWLQ0yrdsxabsK8nI2sewo
To claim this, I am signing this object: