Skip to content

Instantly share code, notes, and snippets.

View jarrodlilkendey's full-sized avatar

Jarrod Lilkendey jarrodlilkendey

View GitHub Profile
name: Deploy Azure Functions Node.js project to Azure Function App
on: [push]
env:
AZURE_FUNCTIONAPP_NAME: "cloudengineerskillsfuncapp"
AZURE_FUNCTIONAPP_PACKAGE_PATH: "."
NODE_VERSION: "20.x"
jobs:
const abi = require("./abi.json");
const { token } = require('./config.json');
const ethers = require('ethers');
const { Client, Intents, MessageEmbed, MessageAttachment } = require('discord.js');
require('dotenv').config();
const network = {
name: "polygon",
const abi = require("./abi.json");
const { token } = require('./config.json');
const ethers = require('ethers');
const { Client, Intents, MessageEmbed, MessageAttachment } = require('discord.js');
require('dotenv').config();
const network = {
name: "polygon",
const abi = require("./abi.json");
const { token } = require('./config.json');
const ethers = require('ethers');
const { Client, Intents, MessageEmbed, MessageAttachment } = require('discord.js');
require('dotenv').config();
const network = {
name: "polygon",
const abi = require("./abi.json");
const { token } = require('./config.json');
const ethers = require('ethers');
const { Client, Intents, MessageEmbed, MessageAttachment } = require('discord.js');
require('dotenv').config();
const network = {
name: "polygon",
{
"token": "YOUR_TOKEN",
"clientId": "YOUR_CLIENT_ID",
"guildId": "YOUR_GUILD_ID"
}
const abi = require("./abi.json");
const ethers = require('ethers');
require('dotenv').config();
const network = {
name: "polygon",
chainId: 137,
_defaultProvider: (providers) => new providers.JsonRpcProvider(process.env.ALCHEMY_URL)
aavegotchiDiamond.on("GotchiLendingAdd", async (listingId) => {
console.log("GotchiLendingAdd", listingId);
});
// replace 0x86935F11C86623deC8a25696E1C19a8659CbF95d with the smart contract address you wish to monitor
const aavegotchiDiamond = new ethers.Contract('0x86935F11C86623deC8a25696E1C19a8659CbF95d', abi, provider);
const network = {
name: "polygon", // replace this with the network your contract is on
chainId: 137, // replace this with the ChainID your contract is on
_defaultProvider: (providers) => new providers.JsonRpcProvider(process.env.ALCHEMY_URL)
};
const provider = ethers.getDefaultProvider(network);