From a16d441b419b84f7abc61d340a822a6e72345513 Mon Sep 17 00:00:00 2001 From: tipusinghaw Date: Wed, 29 May 2024 15:19:23 +0530 Subject: [PATCH 1/3] feat: added contract details for mainnet Signed-off-by: tipusinghaw --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 3417989..afe9c91 100644 --- a/src/config.ts +++ b/src/config.ts @@ -5,6 +5,6 @@ export const networkConfig = { }, mainnet: { URL: 'https://polygon-rpc.com', - CONTRACT_ADDRESS: '0x98bF771e1E93Db917A89986bcdaBa3b43643F367', + CONTRACT_ADDRESS: '0xdEBc41520F2d8203b282c4dc6c5973e61a14c727', }, } From a1f2532c9cc7633d43d6893f3a608857a67a1767 Mon Sep 17 00:00:00 2001 From: tipusinghaw Date: Wed, 29 May 2024 15:26:51 +0530 Subject: [PATCH 2/3] chore: updated the package Signed-off-by: tipusinghaw --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9b58d5e..9e3f340 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "release": "release-it" }, "dependencies": { - "@ayanworks/polygon-did-registry-contract": "2.0.1-alpha.7", + "@ayanworks/polygon-did-registry-contract": "2.0.1-alpha.8", "did-resolver": "^4.1.0", "ethers": "^5.1.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 31589bf..be44fd3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@ayanworks/polygon-did-registry-contract': - specifier: 2.0.1-alpha.7 - version: 2.0.1-alpha.7 + specifier: 2.0.1-alpha.8 + version: 2.0.1-alpha.8 did-resolver: specifier: ^4.1.0 version: 4.1.0 @@ -36,8 +36,8 @@ importers: packages: - '@ayanworks/polygon-did-registry-contract@2.0.1-alpha.7': - resolution: {integrity: sha512-pwX45XsGT3LrIBpnIJ6FrzPuB3gSTWiNVSyGGniL0ofUgcsNGqXOv2g3WQSDcG9b7/+AGeoJ6tYqshCbnjsmvQ==} + '@ayanworks/polygon-did-registry-contract@2.0.1-alpha.8': + resolution: {integrity: sha512-5PI/poy+zWrT3iAQGc4w4hsj39lATIv2ucWeRwMq5uwu1NRQAYRWfoIez4bF/HxBMgI5dYuXWIqLtksLBmTiag==} '@babel/code-frame@7.22.10': resolution: {integrity: sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==} @@ -1834,7 +1834,7 @@ packages: snapshots: - '@ayanworks/polygon-did-registry-contract@2.0.1-alpha.7': {} + '@ayanworks/polygon-did-registry-contract@2.0.1-alpha.8': {} '@babel/code-frame@7.22.10': dependencies: From ac385927123889244dc75ff364a5f4e76671b51e Mon Sep 17 00:00:00 2001 From: tipusinghaw Date: Tue, 4 Jun 2024 11:50:29 +0530 Subject: [PATCH 3/3] chore: updated the contract address Signed-off-by: tipusinghaw --- README.md | 4 ++-- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- src/config.ts | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 637b9a6..7553097 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The polygon resolver library is used for resolving DID’s in Polygon Method Spa ## Install ``` -npm install +pnpm install ``` ## Usage @@ -24,5 +24,5 @@ The function returns a DID Document. For testing use the command ``` -npm run test +pnpm run test ``` diff --git a/package.json b/package.json index 9e3f340..da48ee3 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "release": "release-it" }, "dependencies": { - "@ayanworks/polygon-did-registry-contract": "2.0.1-alpha.8", + "@ayanworks/polygon-did-registry-contract": "3.0.0", "did-resolver": "^4.1.0", "ethers": "^5.1.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index be44fd3..d798424 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@ayanworks/polygon-did-registry-contract': - specifier: 2.0.1-alpha.8 - version: 2.0.1-alpha.8 + specifier: 3.0.0 + version: 3.0.0 did-resolver: specifier: ^4.1.0 version: 4.1.0 @@ -36,8 +36,8 @@ importers: packages: - '@ayanworks/polygon-did-registry-contract@2.0.1-alpha.8': - resolution: {integrity: sha512-5PI/poy+zWrT3iAQGc4w4hsj39lATIv2ucWeRwMq5uwu1NRQAYRWfoIez4bF/HxBMgI5dYuXWIqLtksLBmTiag==} + '@ayanworks/polygon-did-registry-contract@3.0.0': + resolution: {integrity: sha512-RnW31nkDIMG1YzuOycxGGrJFpgTcpBwS/UZR6/wMPrsJBKBEN28k2CZImwXkbgaknyTfL7xe1u3C8NxfDvhI4Q==} '@babel/code-frame@7.22.10': resolution: {integrity: sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==} @@ -1834,7 +1834,7 @@ packages: snapshots: - '@ayanworks/polygon-did-registry-contract@2.0.1-alpha.8': {} + '@ayanworks/polygon-did-registry-contract@3.0.0': {} '@babel/code-frame@7.22.10': dependencies: diff --git a/src/config.ts b/src/config.ts index afe9c91..5cf8dd1 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,10 +1,10 @@ export const networkConfig = { testnet: { URL: 'https://rpc-amoy.polygon.technology', - CONTRACT_ADDRESS: '0x1adeA199dCf07E17232415Cb232442BE52517Add', + CONTRACT_ADDRESS: '0xcB80F37eDD2bE3570c6C9D5B0888614E04E1e49E', }, mainnet: { URL: 'https://polygon-rpc.com', - CONTRACT_ADDRESS: '0xdEBc41520F2d8203b282c4dc6c5973e61a14c727', + CONTRACT_ADDRESS: '0x0C16958c4246271622201101C83B9F0Fc7180d15', }, }