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
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: |
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 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", |
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 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", |
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 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", |
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 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", |
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
{ | |
"token": "YOUR_TOKEN", | |
"clientId": "YOUR_CLIENT_ID", | |
"guildId": "YOUR_GUILD_ID" | |
} |
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 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) |
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
aavegotchiDiamond.on("GotchiLendingAdd", async (listingId) => { | |
console.log("GotchiLendingAdd", listingId); | |
}); |
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
// replace 0x86935F11C86623deC8a25696E1C19a8659CbF95d with the smart contract address you wish to monitor | |
const aavegotchiDiamond = new ethers.Contract('0x86935F11C86623deC8a25696E1C19a8659CbF95d', abi, provider); |
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 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); |
NewerOlder