Skip to content

Instantly share code, notes, and snippets.

View asanpardazzagrosheyrani's full-sized avatar
💭
I may be slow to respond.

a.p.z. eth asanpardazzagrosheyrani

💭
I may be slow to respond.
View GitHub Profile
از همه عزیزان عذرخواهی میکنم بابت مشکل پیش آمدهتا امروز متوجه اشتباه نبودم i AM Sorry 😔 🙏🌹
@asanpardazzagrosheyrani
asanpardazzagrosheyrani / ethers-basename.js
Created August 27, 2024 23:10 — forked from okwme/ethers-basename.js
This is an example of how to resolve base names using ethers.js
import { Contract, utils } from 'ethers'
import { getProvider } from './contracts' // https://docs.ethers.org/v5/api/providers/
import L2ResolverAbi from './L2ResolverAbi.json' // https://gist.github.com/hughescoin/adf1c90b67cd9b2b913b984a2cc98de9
const BASENAME_L2_RESOLVER_ADDRESS = '0xC6d566A56A1aFf6508b41f6c90ff131615583BCD'
const convertChainIdToCoinType = (chainId) => {
// L1 resolvers to addr
if (chainId === 1) { // 1 is mainnet chain id
return 'addr'
}
@okwme
okwme / ethers-basename.js
Created August 27, 2024 16:13
This is an example of how to resolve base names using ethers.js
import { Contract, utils } from 'ethers'
import { getProvider } from './contracts' // https://docs.ethers.org/v5/api/providers/
import L2ResolverAbi from './L2ResolverAbi.json' // https://gist.github.com/hughescoin/adf1c90b67cd9b2b913b984a2cc98de9
const BASENAME_L2_RESOLVER_ADDRESS = '0xC6d566A56A1aFf6508b41f6c90ff131615583BCD'
const convertChainIdToCoinType = (chainId) => {
// L1 resolvers to addr
if (chainId === 1) { // 1 is mainnet chain id
return 'addr'
}
@eust-w
eust-w / 📊 Weekly development breakdown
Last active February 12, 2025 17:23
weeklyCodingTime
Markdown 4 mins █████████████████████ 100.0%