Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added support for mainnet #34

Merged
merged 4 commits into from
Jun 4, 2024
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The polygon resolver library is used for resolving DID’s in Polygon Method Spa
## Install

```
npm install
pnpm install
```

## Usage
Expand All @@ -24,5 +24,5 @@ The function returns a DID Document.
For testing use the command

```
npm run test
pnpm run test
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -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',
},
}
Loading