-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat_: status-backend standard requests (#5868)
* feat_: added some standard requests * fix_: address pr comments
- Loading branch information
1 parent
2c0178c
commit 5c41e82
Showing
12 changed files
with
124 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Accept Contact Request | ||
# @name AcceptContactRequest | ||
POST {{address}}/statusgo/CallRPC | ||
|
||
{ | ||
"jsonrpc": "2.0", | ||
"method": "wakuext_acceptContactRequest", | ||
"params": [ | ||
{ | ||
"id": "0x0495811d8ac62e240e9ae7f05fa097938032066ff65764d97dc93a73d83262d884a75696520543899b047005f6fb91af42dcb04f635be760313cc4d26fa27f1ff7" | ||
} | ||
] | ||
} |
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,15 @@ | ||
@displayName = "alice" | ||
@password = "1234567890" | ||
@kdfIterations = 256000 | ||
|
||
### Create a new account and login | ||
POST {{address}}/statusgo/CreateAccountAndLogin | ||
Content-Type: application/json | ||
|
||
{ | ||
"rootDataDir": "{{rootDataDir}}", | ||
"kdfIterations": {{kdfIterations}}, | ||
"displayName": {{displayName}}, | ||
"password": {{password}}, | ||
"customizationColor": "primary" | ||
} |
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,2 @@ | ||
### GET request to example server | ||
GET {{address}}/statusgo/GetNodeConfig |
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,9 @@ | ||
### Get account settings | ||
# @name GetSettings | ||
POST {{address}}/statusgo/CallRPC | ||
|
||
{ | ||
"jsonrpc": "2.0", | ||
"method": "settings_getSettings", | ||
"params": [] | ||
} |
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,7 @@ | ||
### Initialize Application | ||
POST {{address}}/statusgo/InitializeApplication | ||
Content-Type: application/json | ||
|
||
{ | ||
"dataDir": "{{rootDataDir}}" | ||
} |
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,12 @@ | ||
@keyUID = "0xb9515adcaa72f337f5ccbe043d5b016f22a9b76affdf91087577b1a5640bc0bd" | ||
@password = "1234567890" | ||
@kdfIterations = 256000 | ||
|
||
### GET request to example server | ||
GET {{address}}/statusgo/LoginAccount | ||
|
||
{ | ||
"keyUid": {{keyUID}}, | ||
"password": {{password}}, | ||
"kdfIterations": {{kdfIterations}} | ||
} |
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,2 @@ | ||
### GET request to example server | ||
GET {{address}}/statusgo/Logout |
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 @@ | ||
### Send Contact Request | ||
# @name SendContactRequest | ||
POST {{address}}/statusgo/CallRPC | ||
|
||
{ | ||
"jsonrpc": "2.0", | ||
"method": "wakuext_sendContactRequest", | ||
"params": [ | ||
{ | ||
"id": "0x048f0b885010783429c2298b916e24b3c01f165e55fe8f98fce63df0a55ade80089f512943d4fde5f8c7211f1a87b267a85cbcb3932eb2e4f88aa4ca3918f97541", | ||
"message": "Hi, Alice!" | ||
} | ||
] | ||
} |
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 @@ | ||
### Send 1-1 message | ||
# @name SendOneToOneMessage | ||
POST {{address}}/statusgo/CallRPC | ||
|
||
{ | ||
"jsonrpc": "2.0", | ||
"method": "wakuext_sendOneToOneMessage", | ||
"params": [ | ||
{ | ||
"id": "0xd4aae73a126fa457550d40fd79f49715559f8e41de18219e4f756e85cdce9968", | ||
"message": "Status is cool!" | ||
} | ||
] | ||
} |
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 @@ | ||
WEBSOCKET ws://{{address}}/signals |
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,29 @@ | ||
### Start Messenger | ||
# @name StartMessenger | ||
POST {{address}}/statusgo/CallRPC | ||
|
||
{ | ||
"jsonrpc": "2.0", | ||
"method": "wakuext_startMessenger", | ||
"params": [] | ||
} | ||
|
||
### Start Wallet | ||
# @name StartWallet | ||
POST {{address}}/statusgo/CallRPC | ||
|
||
{ | ||
"jsonrpc": "2.0", | ||
"method": "wallet_startWallet", | ||
"params": [] | ||
} | ||
|
||
### | ||
# @name GetSettings | ||
POST {{address}}/statusgo/CallRPC | ||
|
||
{ | ||
"jsonrpc": "2.0", | ||
"method": "settings_getSettings", | ||
"params": [] | ||
} |
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,6 @@ | ||
{ | ||
"default": { | ||
"address": "localhost:12345", | ||
"rootDataDir": "./_accounts/temp/1" | ||
} | ||
} |