Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
2075ef08
Commit
2075ef08
authored
8 months ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Fix linter errors
parent
633a0345
No related branches found
Branches containing commit
No related tags found
1 merge request
!142
RPC Module
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/types.ts
+7
-4
7 additions, 4 deletions
src/types.ts
src/types/rpc.ts
+3
-3
3 additions, 3 deletions
src/types/rpc.ts
with
10 additions
and
7 deletions
src/types.ts
+
7
−
4
View file @
2075ef08
...
...
@@ -3,7 +3,9 @@ import { ChannelEventHandler } from './events/channels';
import
{
DMEventHandler
}
from
'
./events/dm
'
;
import
{
RemoteStore
}
from
'
./types/collective
'
;
import
{
RawCipher
}
from
'
./types/index
'
;
import
{
*
}
from
'
./types/rpc
'
;
import
{
RPCSend
}
from
'
./types/rpc
'
;
export
*
from
'
./types/rpc
'
;
export
enum
LogLevel
{
TRACE
=
0
,
...
...
@@ -143,14 +145,14 @@ export type DMClient = {
SendSilent
:
(
pubkey
:
Uint8Array
,
dmToken
:
number
,
cmixParams
:
Uint8Array
)
=>
Promise
<
Uint8Array
>
;
SendInvite
:
(
pubkey
:
Uint8Array
,
dmToken
:
number
,
inviteToChannelJson
Uint8Array
,
message
:
string
,
inviteToChannelJson
:
Uint8Array
,
message
:
string
,
host
:
string
,
cmixParamsJSON
:
Uint8Array
)
=>
Promise
<
Uint8Array
>
;
DeleteMessage
:
(
partnerPubKeyBytes
:
Uint8Array
,
partnerToken
:
number
,
targetMessageIdBytes
:
Uint8Array
,
cmixParamsJSON
Uint8Array
)
=>
Promise
<
Uint8Array
>
;
cmixParamsJSON
:
Uint8Array
)
=>
Promise
<
Uint8Array
>
;
Send
:
(
partnerPubKeyBytes
:
Uint8Array
,
partnerToken
:
number
,
messageType
:
number
,
plaintext
Uint8Array
,
leaseTimeMS
:
number
,
messageType
:
number
,
plaintext
:
Uint8Array
,
leaseTimeMS
:
number
,
cmixParamsJSON
:
Uint8Array
)
=>
Promise
<
Uint8Array
>
;
}
...
...
@@ -252,6 +254,7 @@ export type XXDKUtils = {
GetWasmSemanticVersion
:
()
=>
Uint8Array
;
Purge
:
(
userPassword
:
string
)
=>
void
;
ValidForever
:
()
=>
number
;
RPCSend
:
RPCSend
;
}
export
type
Logger
=
{
...
...
This diff is collapsed.
Click to expand it.
src/types/rpc.ts
+
3
−
3
View file @
2075ef08
...
...
@@ -5,10 +5,10 @@ export enum ResponseTypes {
}
export
type
RPCSend
(
export
type
RPCSend
=
(
cmixId
:
number
,
recipient
:
Uint8Array
,
pubkey
:
Uint8Array
,
request
:
Uint8Array
,
updateCallback
:
(
json
:
Uint8Array
)
=>
void
)
=>
Promise
<
Uint8Array
)
;
updateCallback
:
(
(
json
:
Uint8Array
)
=>
void
)
)
=>
Promise
<
Uint8Array
>
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment