@civic/civic-link

v0.0.6-alpha.5
This package provides the tools and UI for a dApp to orchestrate a user linking one wallet to another. The linking mechanism uses the Decentralised IDentifier Solana program, and the associated [identity.com DID toolkit libraries](https://www.npmjs.com/pa

dev

vite

lint

eslint -c .eslintrc.js '{src,test}/**/*.{ts,tsx}'

test

yarn test:unit && yarn test:integration

build

tsc -b tsconfig.build.json && tsc -b tsconfig.umd.json

clean

rm -rf dist/

preview

vite preview

lint:fix

eslint -c .eslintrc.js --fix '{src,test}/**/*.{ts,tsx}'

test:unit

jest -c=jest.config.unit.js test/unit

test:watch

jest --watch -c jest.updates.config.js --onlyChanged

start:validator

solana-test-validator -q --bpf-program didso1Dpqpm4CsiCjzP766BGY89CAdD6ZBL68cRhFPc test/fixtures/sol_did_3.1.0.so --bpf-program regUajGv87Pti6QRLeeRuQWrarQ1LmEyDXcAozko6Ax test/fixtures/did_registry_0.0.6.so --reset

test:integration

start-server-and-test start:validator http://localhost:8899/health test:integration:only

test:integration:only

jest -c=jest.config.integration.js test/integration --detectOpenHandles --coverage false
npm i @civic/[email protected]

Metadata

  • MIT
  • Whatever
  • civic.com
  • released 7/25/2023

Downloads