@ayanworks/credo-polygon-w3c-module 2.0.2 → 2.1.0-alpha-20260518081015
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/package.json +6 -9
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Credo did:polygon W3C Module
|
|
2
|
+
|
|
3
|
+
- W3C did:polygon method registry for [credo-ts](https://github.com/openwallet-foundation/credo-ts).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { PolygonDidResolver, PolygonDidRegistrar, PolygonModule } from 'afj-polygon-w3c-module'
|
|
9
|
+
|
|
10
|
+
const agent = new Agent({
|
|
11
|
+
config: {
|
|
12
|
+
/* agent config */
|
|
13
|
+
},
|
|
14
|
+
dependencies,
|
|
15
|
+
modules: {
|
|
16
|
+
/* ... */
|
|
17
|
+
dids: new DidsModule({
|
|
18
|
+
resolvers: [ /* ... */, new PolygonDidResolver()],
|
|
19
|
+
registrars: [ /* ... */, new PolygonDidRegistrar()],
|
|
20
|
+
}),
|
|
21
|
+
/* ... */
|
|
22
|
+
polygon: new PolygonModule({
|
|
23
|
+
rpcUrl: 'rpcUrl' // polygon rpc url,
|
|
24
|
+
didContractAddress: 'didContractAddress' // polygon did contract address,
|
|
25
|
+
fileServerToken: 'fileServerToken' // polygon file server token to store schema json,
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ayanworks/credo-polygon-w3c-module",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0-alpha-20260518081015",
|
|
4
4
|
"files": [
|
|
5
5
|
"build"
|
|
6
6
|
],
|
|
7
7
|
"exports": {
|
|
8
|
-
".":
|
|
9
|
-
"require": "./build/index.mjs",
|
|
10
|
-
"import": "./build/index.d.mts"
|
|
11
|
-
},
|
|
8
|
+
".": "./build/index.mjs",
|
|
12
9
|
"./package.json": "./package.json"
|
|
13
10
|
},
|
|
14
11
|
"license": "Apache-2.0",
|
|
@@ -26,14 +23,14 @@
|
|
|
26
23
|
"@credo-ts/core": "^0.6.1",
|
|
27
24
|
"did-resolver": "^4.1.0",
|
|
28
25
|
"ethers": "^6.16.0",
|
|
29
|
-
"@ayanworks/polygon-did-
|
|
30
|
-
"@ayanworks/polygon-did-
|
|
31
|
-
"@ayanworks/polygon-schema-manager": "2.2.
|
|
26
|
+
"@ayanworks/polygon-did-resolver": "1.0.4-alpha-20260518081015",
|
|
27
|
+
"@ayanworks/polygon-did-registrar": "2.2.2-alpha-20260518081015",
|
|
28
|
+
"@ayanworks/polygon-schema-manager": "2.2.2-alpha-20260518081015"
|
|
32
29
|
},
|
|
33
30
|
"devDependencies": {
|
|
34
31
|
"@credo-ts/node": "^0.6.1",
|
|
35
32
|
"@credo-ts/didcomm": "^0.6.1",
|
|
36
|
-
"@openwallet-foundation/askar-nodejs": "
|
|
33
|
+
"@openwallet-foundation/askar-nodejs": "0.6.0",
|
|
37
34
|
"reflect-metadata": "^0.2.1",
|
|
38
35
|
"rxjs": "^7.8.1",
|
|
39
36
|
"@types/node": "^20.19.25",
|