Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/basic-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
},
"dependencies": {
"@ensdomains/ensjs": "workspace:*",
"viem": "^2.30.6"
"viem": "^2.37.12"
}
}
2 changes: 1 addition & 1 deletion examples/basic-tsnode-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"@ensdomains/ensjs": "workspace:*",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"viem": "^2.30.6"
"viem": "^2.37.12"
}
}
4 changes: 2 additions & 2 deletions packages/ensjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@
"ts-node": "^10.9.2",
"typedoc": "^0.24.8",
"typedoc-plugin-markdown": "^4.0.0-next.16",
"viem": "^2.30.6",
"viem": "^2.37.12",
"vitest": "^1.3.1"
},
"peerDependencies": {
"viem": "^2.9.2"
"viem": "^2.35.0"
},
"engines": {
"node": ">=22"
Expand Down
6 changes: 3 additions & 3 deletions packages/ensjs/src/contracts/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const addresses = {
address: '0xa58E81fe9b61B5c3fE2AFD33CF304c454AbFc7Cb',
},
ensUniversalResolver: {
address: '0xaBd80E8a13596fEeA40Fd26fD6a24c3fe76F05fB',
address: '0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe',
},
legacyEthRegistrarController: {
address: '0x283Af0B28c62C092C9727F1Ee09c02CA627EB7F5',
Expand Down Expand Up @@ -98,7 +98,7 @@ export const addresses = {
address: '0x65EE0b0B030a76c95a7ff046C0e0c8f7A2d1B004',
},
ensUniversalResolver: {
address: '0xf606bc986635dab91b189aee8f565f45a0336f89',
address: '0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe',
},
legacyEthRegistrarController: {
address: '0xf13fC748601fDc5afA255e9D9166EB43f603a903',
Expand Down Expand Up @@ -139,7 +139,7 @@ export const addresses = {
address: '0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6',
},
ensUniversalResolver: {
address: '0xb7B7DAdF4D42a08B3eC1d3A1079959Dfbc8CFfCC',
address: '0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe',
},
legacyEthRegistrarController: {
address: '0x7e02892cfc2Bfd53a75275451d73cF620e793fc0',
Expand Down
57 changes: 53 additions & 4 deletions packages/ensjs/src/contracts/universalResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,53 @@ export const universalResolverErrors = [
name: 'InvalidBatchGatewayResponse',
type: 'error',
},
{
inputs: [
{
internalType: 'address',
name: 'sender',
type: 'address',
},
{
internalType: 'string[]',
name: 'urls',
type: 'string[]',
},
{
internalType: 'bytes',
name: 'callData',
type: 'bytes',
},
{
internalType: 'bytes4',
name: 'callbackFunction',
type: 'bytes4',
},
{
internalType: 'bytes',
name: 'extraData',
type: 'bytes',
},
],
name: 'OffchainLookup',
type: 'error',
},
{
inputs: [
{
internalType: 'uint256',
name: 'offset',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'length',
type: 'uint256',
},
],
name: 'OffsetOutOfBoundsError',
type: 'error',
},
{
inputs: [
{
Expand Down Expand Up @@ -117,19 +164,21 @@ export const universalResolverErrors = [
const universalResolverReverse = {
inputs: [
{
name: 'encodedAddress',
internalType: 'bytes',
name: 'lookupAddress',
type: 'bytes',
},
{
internalType: 'uint256',
name: 'coinType',
type: 'uint256',
},
],
name: 'reverse',
outputs: [
{ type: 'string', name: 'name' },
{ type: 'address', name: 'resolver' },
{ type: 'address', name: 'reverseResolver' },
{ internalType: 'string', name: 'name', type: 'string' },
{ internalType: 'address', name: 'resolver', type: 'address' },
{ internalType: 'address', name: 'reverseResolver', type: 'address' },
],
stateMutability: 'view',
type: 'function',
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/_getAbi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ it('propagates error when strict is true', async () => {
Params: (uint256, bytes)
Data: 0x1234 (2 bytes)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/_getAddr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ it('propagates error when strict is true', async () => {
Params: (address)
Data: 0x1234 (2 bytes)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ it('propagates error when strict is true', async () => {
Params: (bytes)
Data: 0x1234 (2 bytes)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/_getText.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ it('propagates error when strict is true', async () => {
Params: (string)
Data: 0x1234 (2 bytes)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/getAbiRecord.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ describe('getAbiRecord()', () => {
function: resolve(bytes name, bytes data)
args: (0x, 0x)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('getAddressRecord()', () => {
function: resolve(bytes name, bytes data)
args: (0x, 0x)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('getContentHashRecord', () => {
function: resolve(bytes name, bytes data)
args: (0x, 0x)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
})
4 changes: 2 additions & 2 deletions packages/ensjs/src/functions/public/getName.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ describe('getName', () => {

Contract Call:
address: 0x1234567890abcdef
function: reverse(bytes encodedAddress, uint256 coinType)
function: reverse(bytes lookupAddress, uint256 coinType)
args: (0x, 60)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
it('should not return unnormalised name', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/public/getRecords.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe('getRecords()', () => {
args: (0x04746573740365746800, ["0x5678"])

Docs: https://viem.sh/docs/contract/decodeErrorResult
Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('getTextRecord()', () => {
function: resolve(bytes name, bytes data)
args: (0x, 0x)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ it('throws on result decode error when strict is true', async () => {
Params: (bytes data, address resolver)
Data: 0x1234 (2 bytes)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})

Expand Down Expand Up @@ -134,7 +134,7 @@ it('throws on known contract error when strict is true', async () => {
function: resolve(bytes name, bytes data)
args: (0x, 0x)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})

Expand Down Expand Up @@ -165,7 +165,7 @@ it('throws on unknown contract error when strict is false', async () => {
args: (0x, 0x)

Docs: https://viem.sh/docs/contract/decodeErrorResult
Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})

Expand Down Expand Up @@ -196,6 +196,6 @@ it('throws on unknown contract error when strict is true', async () => {
args: (0x, 0x)

Docs: https://viem.sh/docs/contract/decodeErrorResult
Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('checkSafeUniversalResolverData', () => {
function: resolve(bytes name, bytes data)
args: (0x, 0x)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})

Expand Down Expand Up @@ -115,7 +115,7 @@ describe('checkSafeUniversalResolverData', () => {
function: resolve(bytes name, bytes data)
args: (ab, cd)

Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})

Expand Down Expand Up @@ -147,7 +147,7 @@ describe('checkSafeUniversalResolverData', () => {
args: (0x, 0x)

Docs: https://viem.sh/docs/contract/decodeErrorResult
Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})

Expand Down Expand Up @@ -179,7 +179,7 @@ describe('checkSafeUniversalResolverData', () => {
args: (0x, 0x)

Docs: https://viem.sh/docs/contract/decodeErrorResult
Version: viem@2.30.6]
Version: viem@2.37.12]
`)
})
})
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"@ensdomains/ens-test-env": "^1.0.1",
"ts-node": "^10.9.2",
"tslib": "^2.7.0",
"viem": "2.29.0",
"viem": "2.37.12",
"wagmi": "^2"
},
"peerDependencies": {
"@tanstack/react-query": "^5.54",
"viem": "^2.9.2",
"viem": "^2.35.0",
"wagmi": "^2"
},
"engines": {
Expand Down
Loading
Loading