Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add d-notif-project #1332

Merged
merged 34 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
fbaddc0
fix: add d-notif-project
Aman035 May 31, 2024
3c39890
fix: added validator class and fix api route
Aman035 Jun 14, 2024
9c51a89
fix: fix nx test and lint commands
Aman035 Jun 14, 2024
69c7c14
fix: remove hardcoded node url
Aman035 Jun 14, 2024
df2611d
fix: fix notifs
Aman035 Jun 18, 2024
638f210
fix: temp - downgrade to goerli
Aman035 Jun 18, 2024
cd22ff0
fix: add sample dapp
Aman035 Jul 3, 2024
f5fcf33
chore: merge main
Aman035 Jul 3, 2024
0525168
fix: change d-node-notif to dnode
Aman035 Jul 3, 2024
90a9708
fix: fix nrwl config
Aman035 Jul 3, 2024
89d0888
fix: fix test changes
Aman035 Jul 4, 2024
d3e8a57
chore: added example dapp
Aman035 Jul 4, 2024
5a7fe0b
fix: fix list trx
Aman035 Jul 5, 2024
6d7b469
fix: version bump
Aman035 Jul 5, 2024
2b636c5
chore: fix dapp issues
Aman035 Jul 5, 2024
f13863e
fix: list channel subscribers
Aman035 Jul 5, 2024
412fcd1
chore: bump version
Aman035 Jul 5, 2024
ed87273
chore: fix dapp
Aman035 Jul 5, 2024
de1830e
fix: change from goerli to sepolia
Aman035 Jul 5, 2024
36b69e7
fix: add dev contract
Aman035 Jul 7, 2024
39ce756
chore: fix dapp
Aman035 Jul 7, 2024
093e921
test: fix test cases
Aman035 Jul 7, 2024
4a48d15
chore: merged d-node-notif
Aman035 Jul 7, 2024
02de4ca
chore: bump version
Aman035 Jul 7, 2024
f3718c2
chore: fix dapp
Aman035 Jul 7, 2024
65f662f
chore: fix dnode dapp
Aman035 Jul 8, 2024
c002f3d
chore: fix dapp css
Aman035 Jul 8, 2024
b02f12a
chore: fix dapp
Aman035 Jul 8, 2024
429663e
fix: fix list api
Aman035 Jul 9, 2024
8753abf
chore: bump version
Aman035 Jul 9, 2024
10c7cdf
chore: add pagination and loader to dapp
Aman035 Jul 9, 2024
9e3d6b0
chore: fix page limit
Aman035 Jul 9, 2024
8c129d7
test: added subscription test cases
Aman035 Jul 15, 2024
9e9736e
chore: merge main
Aman035 Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"prepare": "husky install",
"test:restapi": "cd packages/restapi && TS_NODE_PROJECT='./tsconfig.mocha.json' NODE_OPTIONS='--loader ts-node/esm' mocha -r ts-node/register 'tests/**/*.test.ts' --timeout 1200000 --require tests/root.ts --serial",
"test:d-node-notif": "cd packages/d-node-notif && TS_NODE_PROJECT='./tsconfig.mocha.json' NODE_OPTIONS='--loader ts-node/esm' mocha -r ts-node/register 'tests/**/*.test.ts' --timeout 1200000 --require tests/root.ts --serial",
"cleanbuild": "rimraf ./dist && rimraf ./tmp"
},
"config": {
Expand Down
10 changes: 10 additions & 0 deletions packages/d-node-notif/.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/d-node-notif/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions packages/d-node-notif/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# d-node-notif

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

## Building

Run `nx build d-node-notif` to build the library.
43 changes: 43 additions & 0 deletions packages/d-node-notif/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@sdk/d-node-notif",
"version": "0.0.1",
"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/d-node-notif/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/d-node-notif/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/d-node-notif",
"main": "packages/d-node-notif/src/index.ts",
"tsConfig": "packages/d-node-notif/tsconfig.lib.json",
"assets": ["packages/d-node-notif/*.md"]
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/d-node-notif/**/*.ts"]
}
}
},
"test": {
"executor": "@nrwl/workspace:run-commands",
"outputs": ["coverage/packages/restapi"],
"options": {
"commands": ["yarn run test:d-node-notif"],
"passWithNoTests": true
}
},
"ci-version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(${projectName}): 🎉 cut release to ${projectName}-v${version}",
"postTargets": ["d-node_notif:build", "d-node_notif:ci-publish"]
}
},
"ci-version-beta": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(${projectName}): 🎉 cut beta release to ${projectName}-v${version}",
"postTargets": ["d-node_notif:build", "d-node_notif:ci-publish"],
"version": "prerelease",
"preid": "alpha"
}
},
"ci-publish": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"command": "node tools/scripts/publish.mjs d-node_notif"
}
},
"tags": []
}
1 change: 1 addition & 0 deletions packages/d-node-notif/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib';
Loading
Loading