Skip to content

Commit

Permalink
Add d-notif-project (#1332)
Browse files Browse the repository at this point in the history
* fix: add d-notif-project

* fix: added validator class and fix api route

* fix: fix nx test and lint commands

* fix: remove hardcoded node url

* fix: fix notifs

* fix: temp - downgrade to goerli

* fix: add sample dapp

* fix: change d-node-notif to dnode

* fix: fix nrwl config

* fix: fix test changes

* chore: added example dapp

* fix: fix list trx

* fix: version bump

* chore: fix dapp issues

* fix: list channel subscribers

* chore: bump version

* chore: fix dapp

* fix: change from goerli to sepolia

* fix: add dev contract

* chore: fix dapp

* test: fix test cases

* chore: bump version

* chore: fix dapp

* chore: fix dnode dapp

* chore: fix dapp css

* chore: fix dapp

* fix: fix list api

* chore: bump version

* chore: add pagination and loader to dapp

* chore: fix page limit

* test: added subscription test cases
  • Loading branch information
Aman035 authored Jul 15, 2024
1 parent ad05adc commit 34dddbb
Show file tree
Hide file tree
Showing 136 changed files with 48,727 additions and 22,863 deletions.
10 changes: 10 additions & 0 deletions packages/dnode/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
[
"@nrwl/web/babel",
{
"useBuiltIns": "usage"
}
]
]
}
18 changes: 18 additions & 0 deletions packages/dnode/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*", "node_modules"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions packages/dnode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# dnode

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build dnode` to build the library.
43 changes: 43 additions & 0 deletions packages/dnode/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@pushprotocol/dnode",
"version": "0.0.6",
"type": "commonjs",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"peerDependencies": {
"ethers": "^5.0.0 || ^6.0.0"
},
"peerDependenciesMeta": {
"ethers": {
"optional": true
}
},
"dependencies": {
"@metamask/eth-sig-util": "^5.0.2",
"buffer": "^6.0.3",
"crypto-js": "^4.1.1",
"immer": "^10.0.2",
"joi": "^17.9.2",
"lru-cache": "^10.1.0",
"openpgp": "^5.5.0",
"socket.io-client": "^4.7.2",
"viem": "^2.13.1"
},
"scripts": {
"test": "TS_NODE_PROJECT='./tsconfig.mocha.json' NODE_OPTIONS='--loader ts-node/esm' DOTENV_CONFIG_PATH='./tests/.env' mocha -r ts-node/register -r dotenv/config 'tests/**/*.test.ts' --timeout 1200000 --require tests/root.ts --serial"
},
"devDependencies": {
"@types/chai": "^4.3.4",
"@types/chai-as-promised": "^7.1.5",
"@types/crypto-js": "^4.1.1",
"@types/mocha": "^10.0.1",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"envfile": "^7.1.0",
"mocha": "^10.2.0",
"mocha-typescript": "^1.1.17",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
}
}
57 changes: 57 additions & 0 deletions packages/dnode/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/dnode/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/dnode",
"main": "packages/dnode/src/index.ts",
"tsConfig": "packages/dnode/tsconfig.lib.json",
"assets": ["packages/dnode/*.md"]
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/dnode/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/workspace:run-commands",
"outputs": ["coverage/packages/dnode"],
"options": {
"commands": ["cd packages/dnode && yarn run test"],
"passWithNoTests": true
}
},
"ci-version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(${projectName}): 🎉 cut release to ${projectName}-v${version}",
"postTargets": ["dnode:build", "dnode:ci-publish"]
}
},
"ci-version-beta": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(${projectName}): 🎉 cut beta release to ${projectName}-v${version}",
"postTargets": ["dnode:build", "dnode:ci-publish"],
"version": "prerelease",
"preid": "alpha"
}
},
"ci-publish": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"command": "node tools/scripts/publish.mjs dnode"
}
}
},
"tags": []
}
1 change: 1 addition & 0 deletions packages/dnode/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib';
Loading

0 comments on commit 34dddbb

Please sign in to comment.