Skip to content

Commit

Permalink
build: deploy new contracts on Sepolia and publish 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceban Mihail committed Jan 17, 2024
1 parent cec4e69 commit 324fb83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xype-resolver",
"version": "1.0.0",
"version": "1.1.0",
"description": "The Xype Name Resolver Library",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -123,4 +123,4 @@
"@semantic-release/github"
]
}
}
}
6 changes: 3 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const XYPE_REGISTRY_ADDRESS = {
1: '0x5e15Be567B44800c88A5775Da5689b6A31e74705',
5: '0x5e15Be567B44800c88A5775Da5689b6A31e74705',
11155111: '0x5e15Be567B44800c88A5775Da5689b6A31e74705',
1: '0x2C1E6E5F4cd8Aa0f103e8653ea109A0b8b1aAf70',
5: '0x2C1E6E5F4cd8Aa0f103e8653ea109A0b8b1aAf70',
11155111: '0x2C1E6E5F4cd8Aa0f103e8653ea109A0b8b1aAf70',
} as Record<number, string>;

export const REGISTRY_ABI = [
Expand Down
8 changes: 4 additions & 4 deletions test/resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ describe('XypeResolver', () => {

describe('resolveName', () => {
it('resolveName: test1.sxt - success resolution', async () => {
const addr = await xypeResolver.resolveName('ion.eps');
const addr = await xypeResolver.resolveName('xxx.sxt');
expect(addr).toEqual(
getAddress('0xb305c1f2200a17E0502416B1746aB88C9B5C449f')
getAddress('0xc46DA945f66EBe2E55f49EF9e401ec9eA7C3eC61')
);
});

Expand All @@ -47,9 +47,9 @@ describe('XypeResolver', () => {
describe('lookupAddress', () => {
it('lookupAddress: 0xb305c1f2200a17E0502416B1746aB88C9B5C449f - success resolution', async () => {
const addr = await xypeResolver.lookupAddress(
'0xb305c1f2200a17E0502416B1746aB88C9B5C449f'
'0xc46DA945f66EBe2E55f49EF9e401ec9eA7C3eC61'
);
expect(addr).toEqual('ion.eps');
expect(addr).toEqual('qwery.sxt');
});

it('lookupAddress: 0xf2EA5Fd6538EAb3B0466f1b1A447C742d8b30eFe - expired', async () => {
Expand Down

0 comments on commit 324fb83

Please sign in to comment.