Skip to content

Commit

Permalink
Merge pull request #110 from poap-xyz/release/v1.6.9
Browse files Browse the repository at this point in the history
Release v1.6.9
  • Loading branch information
jm42 authored Oct 9, 2023
2 parents 6dd22fb + 1cb0a68 commit 3da5398
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Configure CRA
PORT=3033

# Infura is used as ENS provider to resolve domains and reverse addresses
REACT_APP_INFURA_API_KEY=
# POAP Node is used as ENS provider to resolve domains and reverse addresses
REACT_APP_POAP_NODE_API_KEY=

# Request API access and include POAP API key
# https://documentation.poap.tech/docs/api-access
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/poap-family",
"version": "1.6.8",
"version": "1.6.9",
"author": {
"name": "POAP",
"url": "https://poap.xyz"
Expand Down
6 changes: 3 additions & 3 deletions src/loaders/ethereum.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { InfuraProvider } from '@ethersproject/providers'
import { StaticJsonRpcProvider } from '@ethersproject/providers'
import { Contract } from '@ethersproject/contracts'
import {
INFURA_API_KEY,
MAINNET_PROVIDER_URL,
MAINNET_ENS_REVERSE_RECORDS,
ENS_REVERSE_RECORDS_BATCH_SIZE,
ENS_RESOLVE_MAX_ERRORS,
} from '../models/ethereum'

const ensProvider = new InfuraProvider('mainnet', INFURA_API_KEY)
const ensProvider = new StaticJsonRpcProvider(MAINNET_PROVIDER_URL, 'mainnet')
const ensReverseRecordsContract = new Contract(
MAINNET_ENS_REVERSE_RECORDS,
[
Expand Down
4 changes: 2 additions & 2 deletions src/models/ethereum.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const INFURA_API_KEY = process.env.REACT_APP_INFURA_API_KEY
const MAINNET_PROVIDER_URL = `https://public-eth-node.poap.tech/${process.env.REACT_APP_POAP_NODE_API_KEY}`
const MAINNET_ENS_REVERSE_RECORDS = '0x3671aE578E63FdF66ad4F3E12CC0c0d71Ac7510C'
const ENS_REVERSE_RECORDS_BATCH_SIZE = 300
const ENS_RESOLVE_BATCH_SIZE = 6
const ENS_RESOLVE_MAX_ERRORS = 100

export {
INFURA_API_KEY,
MAINNET_PROVIDER_URL,
MAINNET_ENS_REVERSE_RECORDS,
ENS_REVERSE_RECORDS_BATCH_SIZE,
ENS_RESOLVE_BATCH_SIZE,
Expand Down

0 comments on commit 3da5398

Please sign in to comment.