Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into songtianyi-producal-marco-based-crab-issue…
Browse files Browse the repository at this point in the history
…-backing
  • Loading branch information
songtianyi authored Mar 24, 2021
2 parents 1818292 + a00d103 commit c48831e
Show file tree
Hide file tree
Showing 70 changed files with 1,786 additions and 1,049 deletions.
60 changes: 60 additions & 0 deletions .maintain/insert-session-keys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/sh

# $1 is uri
# $2, $3 is sr25519 private, public key
# $2, $3 is ed25519 private, public key

echo $1
echo '{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["babe", '\"$2\"', '\"$3\"']
}'
echo '{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["gran", '\"$4\"', '\"$5\"']
}'
echo '{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["imon", '\"$2\"', '\"$3\"']
}'
echo $'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["audi", '\"$2\"', '\"$3\"']
}'

curl $1 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["babe", '\"$2\"', '\"$3\"']
}'
curl $1 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["gran", '\"$4\"', '\"$5\"']
}'
curl $1 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["imon", '\"$2\"', '\"$3\"']
}'
curl $1 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": ["audi", '\"$2\"', '\"$3\"']
}'
Loading

0 comments on commit c48831e

Please sign in to comment.