-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2625 port chainmanager from poc (#2649)
* update commit pointer to new head of main * port auth module from demo * rm `.js` from imports * update loggers with nested paths * rename services closer to our pattern * add tests * update changelog * update package.lock * update cryptoservice and remove dm service
- Loading branch information
Showing
24 changed files
with
1,403 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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", | ||
|
@@ -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", | ||
|
@@ -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": { | ||
|
14 changes: 14 additions & 0 deletions
14
packages/backend/src/nest/auth/services/chainServiceBase.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
Oops, something went wrong.