first commit
parents
Showing
.eslintrc
0 → 100644
.github/ISSUE_TEMPLATE/bug_report.md
0 → 100644
.github/PULL_REQUEST_TEMPLATE.md
0 → 100644
.gitignore
0 → 100644
.npmignore
0 → 100644
.npmrc.template
0 → 100644
CONTRIBUTING.md
0 → 100644
LICENSE
0 → 100644
README.md
0 → 100644
cypress.json
0 → 100644
cypress/integration/index.spec.js
0 → 100644
docs.json
0 → 100644
docs/01_technical-overview.md
0 → 100644
docs/02_installation.md
0 → 100644
docs/basic-usage/00_browser.md
0 → 100644
docs/basic-usage/01_commonjs.md
0 → 100644
docs/basic-usage/02_es-modules.md
0 → 100644
docs/basic-usage/index.md
0 → 100644
docs/faq/00_what-is-a-signature-provider.md
0 → 100644
docs/faq/01_example-signature-providers.md
0 → 100644
docs/how-to-guides/03_how-to-stake.md
0 → 100644
docs/how-to-guides/04_how-to-unstake.md
0 → 100644
docs/how-to-guides/18_how-to-vote.md
0 → 100644
docs/how-to-guides/20_how-to-set-a-payer.md
0 → 100644
docs/index.md
0 → 100644
docs/troubleshooting/00_connectivity.md
0 → 100644
docs/troubleshooting/02_rpcerror.md
0 → 100644
package-lock.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
package.json
0 → 100644
| { | ||
| "name": "zswjs", | ||
| "version": "1.0.0", | ||
| "description": "中数文API", | ||
| "main": "dist/index.js", | ||
| "scripts": { | ||
| "cypress": "cypress run --spec 'cypress/integration/index.spec.js'", | ||
| "cypress-ui": "cypress open", | ||
| "prepare": "npm run build", | ||
| "lint": "eslint --ext .js,.jsx,.ts,.tsx src", | ||
| "test": "jest src/tests/*zswjs*", | ||
| "test-node": "jest src/tests/*node*", | ||
| "test-types": "jest src/tests/type-checks.test.ts", | ||
| "test-all": "yarn test && yarn test-node && yarn test-types", | ||
| "build": "rimraf dist && tsc -p ./tsconfig.json && node scripts/copy-ripe-md.js", | ||
| "build-web": "webpack --config webpack.prod.js && webpack --config webpack.debug.js", | ||
| "build-production": "yarn build && yarn build-web && yarn test-all", | ||
| "docs-init": "sh .docs/scripts/init.sh", | ||
| "docs-build": "sh .docs/scripts/build.sh", | ||
| "docs-serve": "python -m SimpleHTTPServer", | ||
| "docs-publish": "sh .docs/scripts/publish.sh" | ||
| }, | ||
| "author": "中数文", | ||
| "license": "MIT", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/zhongshuwen/zswjs.git" | ||
| }, | ||
| "dependencies": { | ||
| "bn.js": "5.2.0", | ||
| "elliptic": "6.5.4", | ||
| "hash.js": "1.1.7", | ||
| "pako": "2.0.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@cypress/skip-test": "^2.6.1", | ||
| "@types/elliptic": "^6.4.13", | ||
| "@types/jest": "^26.0.24", | ||
| "@types/node": "^14.17.5", | ||
| "@types/node-fetch": "^2.5.11", | ||
| "@types/pako": "^1.0.2", | ||
| "buffer": "^6.0.3", | ||
| "clean-webpack-plugin": "^3.0.0", | ||
| "crypto-browserify": "^3.12.0", | ||
| "cypress": "^7.7.0", | ||
| "zsw-crypto": "^1.0.0", | ||
| "eslint": "^7.30.0", | ||
| "jest": "^26.6.3", | ||
| "jest-extended": "^0.11.5", | ||
| "jest-fetch-mock": "^3.0.3", | ||
| "rimraf": "^3.0.2", | ||
| "ts-jest": "^26.5.6", | ||
| "ts-loader": "^9.2.3", | ||
| "typescript": "^4.3.5", | ||
| "webpack": "^5.44.0", | ||
| "webpack-cli": "^4.7.2" | ||
| }, | ||
| "jest": { | ||
| "automock": false, | ||
| "setupFiles": [ | ||
| "./src/tests/setupJest.js" | ||
| ], | ||
| "setupFilesAfterEnv": [ | ||
| "jest-extended" | ||
| ], | ||
| "moduleFileExtensions": [ | ||
| "ts", | ||
| "tsx", | ||
| "js" | ||
| ], | ||
| "transform": { | ||
| "^.+\\.(tsx?)$": "ts-jest" | ||
| }, | ||
| "globals": { | ||
| "ts-jest": { | ||
| "tsconfig": "tsconfig.json" | ||
| } | ||
| }, | ||
| "testRegex": "(/src/.*(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
| "testEnvironment": "node" | ||
| } | ||
| } |
scripts/copy-ripe-md.js
0 → 100644
scripts/is_latest.sh
0 → 100755
scripts/publish-edge.sh
0 → 100755
scripts/publish-tag.sh
0 → 100755
scripts/publish-utils.sh
0 → 100755
src/PrivateKey.ts
0 → 100644
src/PublicKey.ts
0 → 100644
src/Signature.ts
0 → 100644
src/index.ts
0 → 100644
src/ripemd.es5.js
0 → 100644
This diff is collapsed.
Click to expand it.
src/ripemd.js
0 → 100644
This diff is collapsed.
Click to expand it.
src/rpc-web.ts
0 → 100644
src/tests/logo.svg
0 → 100644
src/tests/node.js
0 → 100644
src/tests/node.test.ts
0 → 100644
src/tests/setupJest.js
0 → 100644
src/tests/type-checks.test.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/tests/web.css
0 → 100644
src/tests/web.html
0 → 100644
This diff is collapsed.
Click to expand it.
src/tests/zsw-crypto-migration.test.js
0 → 100644
src/tests/zsw-crypto-verification.test.js
0 → 100644
src/tests/zswjs-api.test.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/tests/zswjs-jsonrpc.test.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/tests/zswjs-jssig.test.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/tests/zswjs-serialize.test.ts
0 → 100644
src/zsw-crypto-migration.ts
0 → 100644
src/zswjs-api-interfaces.ts
0 → 100644
src/zswjs-api.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/zswjs-jsonrpc.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/zswjs-jssig.ts
0 → 100644
src/zswjs-key-conversions.ts
0 → 100644
src/zswjs-numeric.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/zswjs-rpc-interfaces.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/zswjs-rpcerror.ts
0 → 100644
src/zswjs-serialize.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/zswjs-webauthn-sig.ts
0 → 100644
tsconfig.json
0 → 100644
tsconfig.web.json
0 → 100644
typedoc.json
0 → 100644
webpack.debug.js
0 → 100644
webpack.prod.js
0 → 100644
Please
register
or
sign in
to comment