├── .github └── workflows │ └── pipeline.yaml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .release-it.json ├── LICENSE ├── README.md ├── jest.config.js ├── package.json ├── pnpm-lock.yaml ├── src ├── base-response.ts ├── index.ts ├── registrar.ts └── utils │ ├── did.ts │ ├── helpers.ts │ └── linkedResource.ts ├── tests ├── fixtures │ └── test.data.ts ├── index.test.ts ├── polygon.test.ts └── utils │ └── array.ts └── tsconfig.json /.github/workflows/pipeline.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/.github/workflows/pipeline.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | build -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | pnpm-lock.yaml 2 | node_modules 3 | .DS_Store 4 | build -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/.prettierrc -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/.release-it.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/base-response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/src/base-response.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/registrar.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/src/registrar.ts -------------------------------------------------------------------------------- /src/utils/did.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/src/utils/did.ts -------------------------------------------------------------------------------- /src/utils/helpers.ts: -------------------------------------------------------------------------------- 1 | export const POLYGON_DID_REGEX = new RegExp( 2 | /^did:polygon(:testnet)?:0x[0-9a-fA-F]{40}$/, 3 | ) 4 | -------------------------------------------------------------------------------- /src/utils/linkedResource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/src/utils/linkedResource.ts -------------------------------------------------------------------------------- /tests/fixtures/test.data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/tests/fixtures/test.data.ts -------------------------------------------------------------------------------- /tests/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/tests/index.test.ts -------------------------------------------------------------------------------- /tests/polygon.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/tests/polygon.test.ts -------------------------------------------------------------------------------- /tests/utils/array.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/tests/utils/array.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayanworks/polygon-did-registrar/HEAD/tsconfig.json --------------------------------------------------------------------------------