Skip to content

Commit

Permalink
import https to fix examples (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
tirumerla authored Mar 29, 2024
1 parent 6fb1eae commit 25f2158
Show file tree
Hide file tree
Showing 23 changed files with 123 additions and 545 deletions.
1 change: 1 addition & 0 deletions examples/create-action/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/create-batch-proposal/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

const ERC20Token = '0x24B5C627cF54582F93eDbcF6186989227400Ac75';
const RolesContract = '0xa50d145697530e8fef3F59a9643c6E9992d0f30D';
Expand Down
1 change: 1 addition & 0 deletions examples/create-forked-network/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/create-monitor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require('dotenv').config();

const abi = require('./abis/erc721.json');
const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/create-proposal/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/create-relayer-key/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/create-relayer/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/deploy-contract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const { AbiCoder } = require('ethers');
const https = require('https');

const artifactFile = require('./artifacts/Box.json');

Expand Down
1 change: 1 addition & 0 deletions examples/ethers-signer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const ERC20Abi = require('./erc20.json');
const ERC20Bytecode = require('./bytecode.json')[0].data.bytecode.object;
const { domain, types, value } = require('./typedData.json');
const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/get-usage/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/list-contracts/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/list-networks/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/list-proposals/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/relayer-web3-provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require('dotenv').config();

const { DefenderRelayProvider } = require('@openzeppelin/defender-sdk-relay-signer-client/lib/web3');
const { Web3 } = require('web3');
const https = require('https');

const ERC20Abi = require('./erc20.json');
const ERC20Bytecode = require('./bytecode.json')[0].data.bytecode.object;
Expand Down
1 change: 1 addition & 0 deletions examples/simulate-proposal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const { Interface } = require('ethers');
const https = require('https');

const contractABI = require('./abi/demoflash.json');

Expand Down
1 change: 1 addition & 0 deletions examples/update-action-env-variables/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
// Gather actionId and api key
Expand Down
1 change: 1 addition & 0 deletions examples/update-action/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
// Gather actionId and api key
Expand Down
1 change: 1 addition & 0 deletions examples/update-action/update-code.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
// Gather actionId and api key
Expand Down
1 change: 1 addition & 0 deletions examples/update-monitor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require('dotenv').config();

const abi = require('./abis/erc721.json');
const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function ensureNotificationChannelExists(client) {
// use an existing notification channel
Expand Down
1 change: 1 addition & 0 deletions examples/update-relayer/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

async function main() {
const creds = {
Expand Down
1 change: 1 addition & 0 deletions examples/upgrade-contract/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('dotenv').config();

const { Defender } = require('@openzeppelin/defender-sdk');
const https = require('https');

const boxAbiFile = require('./abis/Box.json');

Expand Down
Loading

0 comments on commit 25f2158

Please sign in to comment.