generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented
protocol.send
and record.send
Co-Authored-By: Frank Hinek <[email protected]>
- Loading branch information
1 parent
a52ae70
commit 90891af
Showing
21 changed files
with
929 additions
and
768 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import type { ProcessDwnRequest, ProcessDwnResponse, SendDwnRequest, Web5Agent } from '@tbd54566975/web5-agent'; | ||
import type { DwnRequest, DwnResponse, Web5Agent } from '@tbd54566975/web5-agent'; | ||
|
||
// TODO: concretely define json-rpc types specific to each Web5Agent interface method | ||
// TODO: write http transport. that transport will be shareable with client for dwn-server | ||
// TODO: write ws transport. that transport will be shareable with client for dwn-server | ||
// TODO: figure out where to put DidConnect. | ||
export class Web5ProxyAgent implements Web5Agent { | ||
processDwnRequest(_request: ProcessDwnRequest): Promise<ProcessDwnResponse> { | ||
processDwnRequest(_request: DwnRequest): Promise<DwnResponse> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
sendDwnRequest(_request: ProcessDwnRequest): Promise<any> { | ||
sendDwnRequest(_request: DwnRequest): Promise<any> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"enable-source-maps": true | ||
} |
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
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
Oops, something went wrong.