Skip to content

Commit 919c9f0

Browse files
committed
debug: add devin chain request validation workflow
1 parent 85fc660 commit 919c9f0

File tree

1 file changed

+52
-12
lines changed

1 file changed

+52
-12
lines changed

.github/workflows/devin_validate_chain_request.yml

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@ name: Trigger Devin for New Chain Request Validation
33
on:
44
issues:
55
types: [labeled]
6+
push:
7+
branches:
8+
- feat/devin-new-chains-workflow
69

710
permissions:
811
contents: read # Required to read issue content
912
issues: read # Required to read issue details
1013

1114
jobs:
1215
trigger-devin-chain-validation:
13-
# This job runs only if the issue was labeled with 'type: new chain request'
16+
# This job runs if the issue was labeled with 'type: new chain request' OR if pushed to v2.0 branch (for debugging)
1417
if: |
15-
github.event.label.name == 'type: new chain request'
18+
github.event.label.name == 'type: new chain request' ||
19+
github.event_name == 'push'
1620
runs-on: ubuntu-latest
1721
steps:
1822
- name: Send Slack Notification for Chain Request Validation
@@ -22,15 +26,50 @@ jobs:
2226
PROMPT_TEXT: |
2327
## Context
2428
25-
A new issue (#${{ github.event.issue.number }}) has been labeled with "type: new chain request" in the ${{ github.repository }} repository. Your task is to validate this chain request for completeness and take appropriate action.
29+
A new issue (#${{ github.event_name == 'push' && '6753' || github.event.issue.number }}) has been labeled with "type: new chain request" in the ${{ github.repository }} repository. Your task is to validate this chain request for completeness and take appropriate action.
2630
2731
**Issue Details:**
28-
- **Title**: ${{ github.event.issue.title }}
29-
- **URL**: ${{ github.event.issue.html_url }}
30-
- **Author**: ${{ github.event.issue.user.login }}
32+
- **Title**: ${{ github.event_name == 'push' && '[DEBUG] debug chain request' || github.event.issue.title }}
33+
- **URL**: ${{ github.event_name == 'push' && 'https://github.com/WalletConnect/walletconnect-monorepo/issues/6753' || github.event.issue.html_url }}
34+
- **Author**: ${{ github.event_name == 'push' && 'bkrem' || github.event.issue.user.login }}
3135
3236
**Issue Body:**
33-
${{ github.event.issue.body }}
37+
${{ github.event_name == 'push' && '**Adding a new chain to the Explorer**
38+
To get a new chain added to the Explorer, you will need to submit the following:
39+
40+
1. JSON-RPC spec for Wallets **(only if [one](https://docs.walletconnect.com/2.0/advanced/rpc-reference/ethereum-rpc) doesn''t already exist)**. For more information, please review the Ethereum [JSON-RPC API docs](https://ethereum.org/en/developers/docs/apis/json-rpc/).
41+
**GitHub Link**:
42+
2. Write a [CASA namespace spec](https://github.com/ChainAgnostic/namespaces) if not already available for this namespace.
43+
**GitHub Link**:
44+
3. **namespaces**:
45+
_*known chain namespaces (e.g. eip:155 for Ethereum/EVM-based chains, solana, ...)_
46+
4. **chains**:
47+
_*known chains, where the primary key is a compound key composed of namespace + reference (e.g. ETH mainnet is eip155:1)._
48+
_Please provide labels for each chain (e.g. mainnet, testnet, devnet, ...)_
49+
5. **RPC endpoints**
50+
_*list of common/canonical RPC endpoints for the chain(s)_
51+
6. **[SLIP-0044](https://github.com/satoshilabs/slips/blob/master/slip-0044.md) coin type**:
52+
_* slip44 coin type used in the namespace_
53+
54+
**References**
55+
To ensure timely processing of your request, please provide the following references:
56+
57+
- [ ] Source of RPC endpoints (e.g. RPC docs): [link]
58+
- [ ] Source of namespace (if non-EIP155) chain information (particularly chainIds): [link]
59+
60+
**Additional context**
61+
Add any other context here.
62+
63+
**Please note:**
64+
65+
**Registering a chain with the Explorer does not impact or improve the ability for wallets and dapps to support your chain.** It is simply a way for users to discover wallets and dapps that support your chain by:
66+
67+
- Browsing the [Chains List](https://docs.walletconnect.com/advanced/multichain/chain-list)
68+
- Filtering results programmatically via the [Explorer API](https://docs.walletconnect.com/cloud/explorer)
69+
70+
**It is still up to wallets and dapps to provide concrete support for your chain once it is listed as part of the Explorer.**
71+
72+
- [ ] I have read and understood the above clarification' || github.event.issue.body }}
3473
3574
## Validation Requirements
3675
@@ -67,7 +106,7 @@ jobs:
67106
* ${{ github.repository }} (for commenting on the issue if needed)
68107
* reown-com/web-monorepo (for creating the PR if request is valid)
69108
70-
Please proceed with validating issue #${{ github.event.issue.number }} and take the appropriate action based on your assessment.
109+
Please proceed with validating issue #${{ github.event_name == 'push' && '6753' || github.event.issue.number }} and take the appropriate action based on your assessment.
71110
run: |
72111
# Exit on error
73112
set -e
@@ -100,10 +139,11 @@ jobs:
100139
echo "Sending Slack notification for Chain Request Validation."
101140
# Echo context information using direct GitHub context expressions for clarity and consistency.
102141
echo "Repository: ${{ github.repository }}"
103-
echo "Issue Number: #${{ github.event.issue.number }}"
104-
echo "Issue Title: ${{ github.event.issue.title }}"
105-
echo "Issue URL: ${{ github.event.issue.html_url }}"
106-
echo "Label Added: ${{ github.event.label.name }}"
142+
echo "Issue Number: #${{ github.event_name == 'push' && '6753' || github.event.issue.number }}"
143+
echo "Issue Title: ${{ github.event_name == 'push' && '[DEBUG] debug chain request' || github.event.issue.title }}"
144+
echo "Issue URL: ${{ github.event_name == 'push' && 'https://github.com/WalletConnect/walletconnect-monorepo/issues/6753' || github.event.issue.html_url }}"
145+
echo "Label Added: ${{ github.event_name == 'push' && 'type: new chain request' || github.event.label.name }}"
146+
echo "Trigger Type: ${{ github.event_name }}"
107147
108148
# Send the notification to Slack using curl.
109149
# -s: silent mode (no progress meter).

0 commit comments

Comments
 (0)