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

2625 port chainmanager from poc #2649

Merged
merged 10 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* Moved some responsibilities of identity management to the backend ([#2602](https://github.com/TryQuiet/quiet/issues/2602))
* Added auth submodule in preparation for future encyrption work ([#2623](https://github.com/TryQuiet/quiet/issues/2623))

### New features

* Adds basic sigchain functions ([#2649](https://github.com/TryQuiet/quiet/pull/2649))

### Fixes

* Fixed memory leak associated with autoUpdater ([#2606](https://github.com/TryQuiet/quiet/issues/2606))
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"e2e:linux:run": "lerna run --scope e2e-tests test --",
"prepare": "husky",
"lint-staged": "lerna run lint-staged",
"watch": "lerna watch -- lerna run build --since",
"build:auth": "cd ./3rd-party/auth && pnpm install && pnpm build"
"build:auth": "cd ./3rd-party/auth && pnpm install && pnpm build",
"bootstrap": "npm run build:auth && lerna bootstrap",
"watch": "lerna watch -- lerna run build --since"
},
"engines": {
"node": "18.12.1",
Expand Down
139 changes: 121 additions & 18 deletions packages/backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@
"yargs": "^17.1.0"
},
"dependencies": {
"@localfirst/auth": "file:../../3rd-party/auth/packages/auth",
"@chainsafe/libp2p-gossipsub": "6.1.0",
"@chainsafe/libp2p-noise": "11.0.0",
"@localfirst/auth": "file:../../3rd-party/auth/packages/auth/dist",
"@localfirst/crdx": "file:../../3rd-party/auth/packages/crdx/dist",
"@nestjs/common": "^10.2.10",
"@nestjs/core": "^10.2.10",
"@nestjs/platform-express": "^10.2.10",
Expand All @@ -99,6 +100,7 @@
"@quiet/logger": "^2.0.2-alpha.0",
"@quiet/types": "^2.0.2-alpha.1",
"abortable-iterator": "^3.0.0",
"bs58": "^6.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.1",
"cli-table": "^0.3.6",
Expand All @@ -112,6 +114,7 @@
"fastq": "^1.17.1",
"fetch-retry": "^6.0.0",
"get-port": "^5.1.1",
"getmac": "^6.6.0",
"go-ipfs": "npm:[email protected]",
"http-server": "^0.12.3",
"https-proxy-agent": "^5.0.0",
Expand Down Expand Up @@ -142,6 +145,7 @@
"socks-proxy-agent": "^5.0.0",
"string-replace-loader": "3.1.0",
"ts-jest-resolver": "^2.0.0",
"utf-8-validate": "^5.0.2",
"validator": "^13.11.0"
},
"overrides": {
Expand Down
14 changes: 14 additions & 0 deletions packages/backend/src/nest/auth/services/chainServiceBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { SigChain } from '../sigchain'
import { createLogger } from '../../common/logger'

const logger = createLogger('auth:baseChainService')

class ChainServiceBase {
protected constructor(protected sigChain: SigChain) {}

public static init(sigChain: SigChain, ...params: any[]): ChainServiceBase {
throw new Error('init not implemented')
}
}

export { ChainServiceBase }
Loading
Loading