Skip to content

Commit a562613

Browse files
authored
Merge branch 'main' into worktree-require-ts-examples
2 parents d0af944 + d90f6e2 commit a562613

6 files changed

Lines changed: 27 additions & 267 deletions

File tree

.github/workflows/deploy-playground.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ on:
44
push:
55
branches: [main]
66
workflow_dispatch:
7+
inputs:
8+
environment:
9+
description: bulletin-deploy environment to publish to (blank = CLI default)
10+
type: choice
11+
default: ''
12+
options:
13+
- ''
14+
- paseo-next-v2
15+
- preview
16+
- paseo-next
17+
- paseo-review
718

819
concurrency:
920
group: deploy-truapi-playground
@@ -44,7 +55,9 @@ jobs:
4455

4556
- name: Deploy to DotNS
4657
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
58+
env:
59+
BULLETIN_ENV: ${{ inputs.environment }}
4760
with:
4861
timeout_minutes: 10
4962
max_attempts: 3
50-
command: cd playground && bulletin-deploy ./out truapi-playground.dot --js-merkle
63+
command: cd playground && bulletin-deploy ./out truapi-playground.dot --js-merkle ${BULLETIN_ENV:+--env "$BULLETIN_ENV"}

.github/workflows/number-rfc.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
permissions:
1010
contents: write
11+
pull-requests: write
1112

1213
jobs:
1314
number-rfc:
@@ -106,14 +107,24 @@ jobs:
106107
107108
mv _index.md.tmp _index.md
108109
109-
- name: Commit and push
110+
- name: Create PR if changes exist
111+
env:
112+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110113
run: |
111114
git config user.name "github-actions[bot]"
112115
git config user.email "github-actions[bot]@users.noreply.github.com"
113116
if git diff --cached --quiet && git diff --quiet; then
114117
echo "Nothing to commit."
115118
exit 0
116119
fi
120+
BRANCH="ci/update-rfc-index-$(date +%s)"
121+
git checkout -b "$BRANCH"
117122
git add docs/rfcs/
118123
git commit -m "Update RFC index"
119-
git push
124+
git push origin "$BRANCH"
125+
gh pr create \
126+
--title "ci: update RFC index" \
127+
--body "Auto-generated by the number-rfc workflow." \
128+
--head "$BRANCH" \
129+
--base main \
130+
--reviewer paritytech/host-sdk-team

docs/rfcs/0010-get-root-account.md

Lines changed: 0 additions & 71 deletions
This file was deleted.

docs/rfcs/0011-simple-group-chat.md

Lines changed: 0 additions & 119 deletions
This file was deleted.

js/packages/truapi/src/explorer/codegen/versions/0.2.0/services.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -689,33 +689,6 @@ export const services: ServiceInfo[] = [
689689
},
690690
],
691691
},
692-
{
693-
name: "JSON-RPC",
694-
methods: [
695-
{
696-
name: "send_message",
697-
type: "unary",
698-
signature:
699-
"sendMessage(request: HostJsonrpcMessageSendRequest): Promise<Result<undefined, GenericError>>",
700-
docUrl: "api/jsonrpc/trait.JsonRpc.html#method.send_message",
701-
description: "Send a JSON-RPC message.",
702-
requestDescription: "HostJsonrpcMessageSendRequest",
703-
requestType: "host-jsonrpc-message-send-request",
704-
errorType: "generic-error",
705-
},
706-
{
707-
name: "subscribe_messages",
708-
type: "subscription",
709-
signature:
710-
"subscribeMessages(request: HostJsonrpcMessageSubscribeRequest): ObservableLike<HostJsonrpcMessageSubscribeItem>",
711-
docUrl: "api/jsonrpc/trait.JsonRpc.html#method.subscribe_messages",
712-
description: "Subscribe to inbound JSON-RPC messages.",
713-
requestDescription: "HostJsonrpcMessageSubscribeRequest",
714-
requestType: "host-jsonrpc-message-subscribe-request",
715-
responseType: "host-jsonrpc-message-subscribe-item",
716-
},
717-
],
718-
},
719692
{
720693
name: "Resource Allocation",
721694
methods: [

js/packages/truapi/src/explorer/codegen/versions/0.2.0/types.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,53 +2025,6 @@ export const types: DataType[] = [
20252025
},
20262026
],
20272027
},
2028-
{
2029-
id: "host-jsonrpc-message-send-request",
2030-
name: "HostJsonrpcMessageSendRequest",
2031-
category: "jsonrpc",
2032-
definition:
2033-
"export interface HostJsonrpcMessageSendRequest {\n genesisHash: HexString;\n message: string;\n}",
2034-
fields: [
2035-
{
2036-
name: "genesis_hash",
2037-
type: "HexString",
2038-
description: "Chain genesis hash.",
2039-
},
2040-
{
2041-
name: "message",
2042-
type: "string",
2043-
description: "JSON-RPC message body.",
2044-
},
2045-
],
2046-
},
2047-
{
2048-
id: "host-jsonrpc-message-subscribe-item",
2049-
name: "HostJsonrpcMessageSubscribeItem",
2050-
category: "jsonrpc",
2051-
definition:
2052-
"export interface HostJsonrpcMessageSubscribeItem {\n message: string;\n}",
2053-
fields: [
2054-
{
2055-
name: "message",
2056-
type: "string",
2057-
description: "JSON-RPC message body.",
2058-
},
2059-
],
2060-
},
2061-
{
2062-
id: "host-jsonrpc-message-subscribe-request",
2063-
name: "HostJsonrpcMessageSubscribeRequest",
2064-
category: "jsonrpc",
2065-
definition:
2066-
"export interface HostJsonrpcMessageSubscribeRequest {\n genesisHash: HexString;\n}",
2067-
fields: [
2068-
{
2069-
name: "genesis_hash",
2070-
type: "HexString",
2071-
description: "Chain genesis hash.",
2072-
},
2073-
],
2074-
},
20752028
{
20762029
id: "host-local-storage-clear-request",
20772030
name: "HostLocalStorageClearRequest",

0 commit comments

Comments
 (0)