Skip to content

Commit

Permalink
fix(deps): upgrade ethers and did-provider-ethr for sepolia support (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
strumswell committed Dec 13, 2023
1 parent 2157e70 commit ac1b620
Show file tree
Hide file tree
Showing 16 changed files with 3,399 additions and 1,006 deletions.
5 changes: 5 additions & 0 deletions __tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ const setup = async (options?: IAgentOptions): Promise<boolean> => {
chainId: 5,
rpcUrl: 'https://goerli.infura.io/v3/' + infuraProjectId,
},
{
name: 'sepolia',
chainId: 11155111,
rpcUrl: 'https://sepolia.infura.io/v3/' + infuraProjectId,
},
{
chainId: 421613,
name: 'arbitrum:goerli',
Expand Down
5 changes: 5 additions & 0 deletions __tests__/localJsonStoreAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ const setup = async (options?: IAgentOptions): Promise<boolean> => {
name: 'goerli',
rpcUrl: 'https://goerli.infura.io/v3/' + infuraProjectId,
},
{
name: 'sepolia',
chainId: 11155111,
rpcUrl: 'https://sepolia.infura.io/v3/' + infuraProjectId,
},
{
chainId: 421613,
name: 'arbitrum:goerli',
Expand Down
5 changes: 5 additions & 0 deletions __tests__/localMemoryStoreAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ const setup = async (options?: IAgentOptions): Promise<boolean> => {
name: 'goerli',
rpcUrl: 'https://goerli.infura.io/v3/' + infuraProjectId,
},
{
name: 'sepolia',
chainId: 11155111,
rpcUrl: 'https://sepolia.infura.io/v3/' + infuraProjectId,
},
{
chainId: 421613,
name: 'arbitrum:goerli',
Expand Down
5 changes: 5 additions & 0 deletions __tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ const setup = async (options?: IAgentOptions): Promise<boolean> => {
name: 'goerli',
rpcUrl: 'https://goerli.infura.io/v3/' + infuraProjectId,
},
{
name: 'sepolia',
chainId: 11155111,
rpcUrl: 'https://sepolia.infura.io/v3/' + infuraProjectId,
},
{
chainId: 421613,
name: 'arbitrum:goerli',
Expand Down
11 changes: 11 additions & 0 deletions __tests__/shared/didManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ export default (testContext: {
expect(identifier.controllerKeyId).toEqual(identifier.keys[0].kid)
})

it('should create identifier using did:ethr:sepolia provider', async () => {
identifier = await agent.didManagerCreate({
provider: 'did:ethr:sepolia',
})
expect(identifier.provider).toEqual('did:ethr:sepolia')
expect(identifier.did).toMatch(/^did:ethr:sepolia:0x.*$/)
expect(identifier.keys.length).toEqual(1)
expect(identifier.services.length).toEqual(0)
expect(identifier.controllerKeyId).toEqual(identifier.keys[0].kid)
})

it('should translate identifier using chainId 421613 to arbitrum', async () => {
identifier = await agent.didManagerCreate({
provider: 'did:ethr',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"did-jwt": "7.4.2",
"did-jwt-vc": "3.2.11",
"did-resolver": "4.1.0",
"ethers": "6.7.1",
"ethers": "6.9.0",
"ethr-did-resolver": "10.1.0",
"express": "4.18.2",
"ganache": "7.9.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/did-provider-ethr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@veramo/core-types": "workspace:^",
"@veramo/did-manager": "workspace:^",
"debug": "^4.3.3",
"ethers": "^6.7.1",
"ethr-did": "^3.0.1"
"ethers": "^6.9.0",
"ethr-did": "^3.0.5"
},
"devDependencies": {
"@types/debug": "4.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-ion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cross-fetch": "^4.0.0",
"debug": "^4.3.3",
"did-resolver": "^4.1.0",
"ethers": "^6.7.1",
"ethers": "^6.9.0",
"multihashes": "^4.0.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-key/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@veramo/utils": "workspace:^",
"debug": "^4.3.3",
"did-resolver": "^4.1.0",
"ethers": "^6.7.1"
"ethers": "^6.9.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-pkh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"caip": "^1.1.0",
"debug": "^4.3.3",
"did-resolver": "^4.1.0",
"ethers": "^6.7.1"
"ethers": "^6.9.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/key-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@veramo/utils": "workspace:^",
"debug": "^4.3.4",
"did-jwt": "^7.4.1",
"ethers": "^6.7.1",
"ethers": "^6.9.0",
"uint8arrays": "^4.0.6",
"uuid": "^9.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/kms-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@veramo/utils": "workspace:^",
"debug": "^4.3.3",
"did-jwt": "^7.4.1",
"ethers": "^6.7.1"
"ethers": "^6.9.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/kms-web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@veramo/core-types": "workspace:^",
"@veramo/key-manager": "workspace:^",
"debug": "^4.3.3",
"ethers": "^6.7.1"
"ethers": "^6.9.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
Expand Down
5 changes: 5 additions & 0 deletions packages/test-react-app/src/veramo/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export function getAgent(options?: IAgentOptions): TAgent<InstalledPlugins> {
name: 'goerli',
rpcUrl: 'https://goerli.infura.io/v3/' + INFURA_PROJECT_ID,
},
{
name: 'sepolia',
chainId: 11155111,
rpcUrl: 'https://sepolia.infura.io/v3/' + INFURA_PROJECT_ID,
},
{
chainId: 421613,
name: 'arbitrum:goerli',
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"credential-status": "^2.0.5",
"cross-fetch": "^4.0.0",
"debug": "^4.3.3",
"ethers": "^6.7.1",
"did-jwt": "^7.4.1",
"did-jwt-vc": "^3.2.10",
"did-resolver": "^4.1.0",
"ethers": "^6.9.0",
"ipfs-unixfs": "^11.1.0",
"multiformats": "^12.0.1",
"uint8arrays": "^4.0.6"
Expand Down
Loading

0 comments on commit ac1b620

Please sign in to comment.