Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
clemensgg committed Jan 19, 2024
2 parents 1682d42 + be11a88 commit 909f480
Show file tree
Hide file tree
Showing 33 changed files with 1,206 additions and 48 deletions.
10 changes: 9 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ CR_REPO_OWNER='cosmos'
CR_REPO_NAME='chain-registry'
CR_FOLDER_PATH='_IBC'
CR_CHAIN_NAME='cosmoshub'
RPC_URL = "https://rpc.cosmos.directory:443/cosmoshub"
RPC_URL='https://rpc.cosmos.directory:443/cosmoshub'
REST_URL='https://rest.cosmos.directory:443/cosmoshub'

GRANTER_ACCOUNT='cosmos14r8ff03jkyac2fukjtfrfgaj8ehjlhds5ec2zp'
PERIOD_DURATION='86400'

TOTAL_SIGNERS='5'
MULTISIG_THRESHOLD='3'
SIGNER_1_PUBKEY='AiIW8DesZL5lGOihwuuFvy68qpsgNnagoqPyiL1gRxlP'
SIGNER_2_PUBKEY='AwtmdDXDpjJnujcV4QRpL7mSrXr/rTru+oKKQNbe4v0h'
SIGNER_3_PUBKEY='ApClmSS+8M3x3lLWPdGEzd3fyVCx4jXEPrDmcXs0CRzh'
SIGNER_4_PUBKEY='A67JHk7NWw3pKfEk/DkjsAWXhqN+OeZHKS0cmdh6dSry'
SIGNER_5_PUBKEY='A2zAex39vqIQw/oxrFS/D5FemgA+N/xxDwCB7HzlPKrP'

# INDEXER
START_BLOCK_HEIGHT='18734300'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Relayer Operator Onboarding

Thank you for your IBC relaying efforts for the Cosmos Hub. This pull request is for onboarding new operators.
Thank you for your IBC relaying efforts for the Cosmos Hub. This pull request template is for onboarding new operators.

## Instructions

Add your account addresses and contact information in the correct format to the specified JSON file in the `_IBC` folder. Ensure that your submission follows the provided format. If you have opened this pull request through a related issue, please link the issue number below:
Add your account addresses and contact information in the correct format to the specified JSON file(s) in the `_IBC` folder. Ensure that your submission follows the provided format. If you have opened this pull request through a related issue, please link the issue number below:

Closes #issue_number

## Checklist

- [ ] I have read the onboarding documentation & contribution guidelines.
- [ ] I have read the [onboarding documentation & contribution guidelines](../CONTRIBUTE.md).
- [ ] I have added my Account Addresses and Operator Information to the correct path file in the `_IBC` folder.
- [ ] I have ensured my changes follow the required format.
- [ ] I have linked the related onboarding issue (if one was created).
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/operator_onboarding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ jobs:
fi
- name: Validate Input & Add operator to IBC path file
id: add_operator
if: env.LABEL_FOUND == 'true'
run: python ./scripts/add_operator_to_path.py ${{ github.event.issue.number }}
run: |
OPERATOR_NAME=$(python ./scripts/add_operator_to_path.py ${{ github.event.issue.number }} | tail -n 1)
echo "OPERATOR_NAME=$OPERATOR_NAME" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -49,7 +52,7 @@ jobs:
if: env.LABEL_FOUND == 'true'
run: |
git add -A
git commit -m "Add Operator d"
git commit -m "Add Operator ${OPERATOR_NAME}"
- name: Push changes
if: env.LABEL_FOUND == 'true'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sync_operator_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
sync-operators-update-feegrant:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
- name: Checkout Repository and Switch to Main
uses: actions/checkout@v2
with:
ref: main

- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -40,7 +42,7 @@ jobs:
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Automated data updates" || echo "No changes to commit"
git commit -m "Sync Operators file" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77 changes: 51 additions & 26 deletions .github/workflows/validate_ibc_path.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
name: Validate IBC path
on:
pull_request:
branches:
- main
paths:
- '_IBC/*.json'
workflow_dispatch:

jobs:
changes:
Expand All @@ -18,32 +19,56 @@ jobs:
filters: |
ibc:
- added|modified: '(_IBC|testnets/_IBC)/*.json'
Validation:
needs: changes
validate-json:
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.paths != null }}
steps:
- uses: actions/checkout@v4
- name: Install rly
uses: jaxxstorm/action-install-gh-release@v1
with:
repo: cosmos/relayer
tag: v2.4.2
binaries-location: Cosmos Relayer_2.4.2_linux_amd64
- name: Validate trusting period
shell: bash {0}
name: Checkout code

- name: Install JSON Schema Validator
run: sudo npm install -g ajv-cli@latest

- name: Validate JSON files
run: |
declare -i result=0
paths=(${{ needs.changes.outputs.paths }})
for path in "${paths[@]}"; do
if [[ "$path" != *"cosmoshub-osmosis"* ]]; then
$(scripts/validate_ibc_path.sh $path)
result=$(($result+$?))
else
echo "cosmoshub-osmosis ommitted for path validation."
fi
done
if [[ "$result" -gt 0 ]]; then
echo "Error: Incorrect trusting period for all or some clients" >&2
for file in _IBC/*.json; do
output=$(ajv test -s ./ibc_data.schema.json -d "$file" --valid)
if [ $? -ne 0 ]; then
echo "Validation failed for $file"
echo "$output"
exit 1
fi
fi
done
# validate-client-states:
# needs: changes
# runs-on: ubuntu-latest
# if: ${{ needs.changes.outputs.paths != null }}
# steps:
# - uses: actions/checkout@v4
# - name: Install rly
# uses: jaxxstorm/action-install-gh-release@v1
# with:
# repo: cosmos/relayer
# tag: v2.4.2
# binaries-location: Cosmos Relayer_2.4.2_linux_amd64
# - name: Set execute permission for the script
# run: chmod +x $GITHUB_WORKSPACE/scripts/validate_ibc_path.sh
# - name: List files in the script directory
# run: ls -l $GITHUB_WORKSPACE/scripts/
# - name: Validate trusting period
# shell: bash {0}
# run: |
# declare -i result=0
# paths=(${{ needs.changes.outputs.paths }})
# for path in "${paths[@]}"; do
# if [[ "$path" != *"cosmoshub-osmosis"* ]]; then
# $GITHUB_WORKSPACE/scripts/validate_ibc_path.sh $path
# result=$(($result+$?))
# else
# echo "cosmoshub-osmosis ommitted for trusting period validation."
# fi
# done
# if [[ "$result" -gt 0 ]]; then
# echo "Error: Incorrect trusting period for all or some clients" >&2
# exit 1
# fi

18 changes: 18 additions & 0 deletions _IBC/archway-cosmoshub.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,23 @@
"status": "live"
}
}
],
"operators": [
{
"chain_1": {
"address": "archway1l267dmlmprhu4p5aqslf50f495vjqlg3glkqcu"
},
"chain_2": {
"address": "cosmos1l267dmlmprhu4p5aqslf50f495vjqlg3a52yjt"
},
"memo": "Relayed by Crosnest.",
"name": "Crosnest",
"discord": {
"handle": "galadrin_crosnest"
},
"telegram": {
"handle": "crosnest_com"
}
}
]
}
18 changes: 18 additions & 0 deletions _IBC/aura-cosmoshub.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,23 @@
"preferred": true
}
}
],
"operators": [
{
"chain_1": {
"address": "aura19pjtx7dah2fquf7udyxjv94h0eraha787qxuts"
},
"chain_2": {
"address": "cosmos19pjtx7dah2fquf7udyxjv94h0eraha789k37ff"
},
"memo": "Relayed by Crosnest.",
"name": "Crosnest",
"discord": {
"handle": "galadrin_crosnest"
},
"telegram": {
"handle": "crosnest_com"
}
}
]
}
32 changes: 32 additions & 0 deletions _IBC/axelar-cosmoshub.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,37 @@
"handle": "Char1esBark1ey"
}
},
{
"chain_1": {
"address": "axelar19kzuzfmmy9wjr3cl0ss8wjzjup9g49hqzxn3p9"
},
"chain_2": {
"address": "cosmos19kzuzfmmy9wjr3cl0ss8wjzjup9g49hqxg9e2y"
},
"memo": "Relayed by Crosnest.",
"name": "Crosnest",
"discord": {
"handle": "galadrin_crosnest"
},
"telegram": {
"handle": "crosnest_com"
}
},
{
"chain_1": {
"address": "axelar1nna7k5lywn99cd63elcfqm6p8c5c4qcuvmt3z4"
},
"chain_2": {
"address": "cosmos1nna7k5lywn99cd63elcfqm6p8c5c4qcug4aef5"
},
"memo": "Relayed by IcyCRO \ud83e\uddca",
"name": "IcyCRO",
"discord": {
"handle": "zanglang"
},
"telegram": {
"handle": "zanglang"
}
}
]
}
18 changes: 18 additions & 0 deletions _IBC/bitsong-cosmoshub.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,23 @@
"preferred": true
}
}
],
"operators": [
{
"chain_1": {
"address": "bitsong16arskkjeeq9jnvwfe78n8m9y06jkj9kp2vc6vn"
},
"chain_2": {
"address": "cosmos1cx82d7pm4dgffy7a93rl6ul5g84vjgxk8xxrnv"
},
"memo": "Relayed by Architect Nodes! ",
"name": "Architect Nodes",
"discord": {
"handle": "architectnodes"
},
"telegram": {
"handle": "social244305_Architect_Nodes"
}
}
]
}
32 changes: 32 additions & 0 deletions _IBC/cosmoshub-crescent.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,38 @@
"telegram": {
"handle": "Char1esBark1ey"
}
},
{
"chain_1": {
"address": "cosmos1w8kzcqk25vr0fx0k7yxn2vjw49qerut2tfv8up"
},
"chain_2": {
"address": "cre1cx82d7pm4dgffy7a93rl6ul5g84vjgxkrw4xxp"
},
"memo": "Relayed by Architect Nodes! ",
"name": "Architect Nodes",
"discord": {
"handle": "architectnodes"
},
"telegram": {
"handle": "social244305_Architect_Nodes"
}
},
{
"chain_1": {
"address": "cosmos1nna7k5lywn99cd63elcfqm6p8c5c4qcug4aef5"
},
"chain_2": {
"address": "cre1nna7k5lywn99cd63elcfqm6p8c5c4qcuvawuue"
},
"memo": "Relayed by IcyCRO \ud83e\uddca",
"name": "IcyCRO",
"discord": {
"handle": "zanglang"
},
"telegram": {
"handle": "zanglang"
}
}
]
}
18 changes: 18 additions & 0 deletions _IBC/cosmoshub-cryptoorgchain.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,23 @@
"version": "ics20-1",
"tags": {}
}
],
"operators": [
{
"chain_1": {
"address": "cosmos19kzuzfmmy9wjr3cl0ss8wjzjup9g49hqxg9e2y"
},
"chain_2": {
"address": "cro19kzuzfmmy9wjr3cl0ss8wjzjup9g49hq7ndqk4"
},
"memo": "Relayed by Crosnest.",
"name": "Crosnest",
"discord": {
"handle": "galadrin_crosnest"
},
"telegram": {
"handle": "crosnest_com"
}
}
]
}
18 changes: 18 additions & 0 deletions _IBC/cosmoshub-emoney.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,23 @@
"version": "ics20-1",
"tags": {}
}
],
"operators": [
{
"chain_1": {
"address": "cosmos19kzuzfmmy9wjr3cl0ss8wjzjup9g49hqxg9e2y"
},
"chain_2": {
"address": "emoney19kzuzfmmy9wjr3cl0ss8wjzjup9g49hqftldae"
},
"memo": "Relayed by Crosnest.",
"name": "Crosnest",
"discord": {
"handle": "galadrin_crosnest"
},
"telegram": {
"handle": "crosnest_com"
}
}
]
}
Loading

0 comments on commit 909f480

Please sign in to comment.