Skip to content

Commit

Permalink
testing workflow files (#1)
Browse files Browse the repository at this point in the history
* remove path json related files

* create ibc_data json schema

* add akah - cryptoorg ibc path data

* GH action to validate ibc_data json

* relayer info channel specific

* juno - osmo ibc data

* ibc data to readme
  • Loading branch information
boojamya authored Apr 29, 2022
1 parent aee72f6 commit 7c079e9
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 356 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/validate_ibcdatajson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: [pull_request, workflow_dispatch]
name: PR workflow
jobs:
validate_pathsjson:
name: Validate ibc data schemas
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate IBC data schemas
uses: snapcart/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
json_schema: ./ibc_data.schema.json
json_path_pattern: \.\/_ibc\/\w.{0,}\.json$
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,54 @@ An example assetlist json contains the following structure:
}
```

## IBC Data

The metadata contained in these files represents a path abstraction between two IBC-connected networks. This information is particularly useful when relaying packets and acknowledgments across chains.

This schema also allows us to provide helpful info to describe open channels.

Note: when created these files, please ensure the the chains in both the file name and `chain-` and `chain-2` are in alphabetical order. Ex: `Achain-Zchain.json`

An example ibc metadata file contains the following structure:

```json
{
"$schema": "../ibc_data.schema.json",
"chain-1": {
"chain-name": "juno",
"client-id": "07-tendermint-0",
"connection-id": "connection-0"
},
"chain-2": {
"chain-name": "osmosis",
"client-id": "07-tendermint-1457",
"connection-id": "connection-1142"
},
"channels": [
{
"chain-1": {
"channel-id": "channel-0",
"port-id": "transfer"
},
"chain-2": {
"channel-id": "channel-42",
"port-id": "transfer"
},
"ordering": "unordered",
"version": "ics20-1",
"tags": {
"status": "live",
"preferred": true,
"dex": "osmosis"
},
"relayers": {
"name": "strangelove-ventures",
"contact": "twitter: @strangelovefund",
"website": "https://www.strangelove.ventures",
"chain-1": "juno1kn4tkqezr3c7zc43lsu5r4p2l2qqf4mp89sf66",
"chain-2": "osmo1kn4tkqezr3c7zc43lsu5r4p2l2qqf4mpevqzt5"
}
}
]
}
```
27 changes: 27 additions & 0 deletions _IBC/akash-cryptoorgchain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "../ibc_data.schema.json",
"chain-1": {
"chain-name": "akash",
"client-id": "07-tendermint-48",
"connection-id": "connection-23"
},
"chain-2": {
"chain-name": "cryptoorgchain",
"client-id": "07-tendermint-65",
"connection-id": "connection-38"
},
"channels": [
{
"chain-1": {
"channel-id": "channel-14",
"port-id": "transfer"
},
"chain-2": {
"channel-id": "channel-21",
"port-id": "transfer"
},
"ordering": "unordered",
"version": "ics20-1"
}
]
}
39 changes: 39 additions & 0 deletions _IBC/juno-osmosis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "../ibc_data.schema.json",
"chain-1": {
"chain-name": "juno",
"client-id": "07-tendermint-0",
"connection-id": "connection-0"
},
"chain-2": {
"chain-name": "osmosis",
"client-id": "07-tendermint-1457",
"connection-id": "connection-1142"
},
"channels": [
{
"chain-1": {
"channel-id": "channel-0",
"port-id": "transfer"
},
"chain-2": {
"channel-id": "channel-42",
"port-id": "transfer"
},
"ordering": "unordered",
"version": "ics20-1",
"tags": {
"status": "live",
"preferred": true,
"dex": "osmosis"
},
"relayers": {
"name": "strangelove-ventures",
"contact": "twitter: @strangelovefund",
"website": "https://www.strangelove.ventures",
"chain-1": "juno1kn4tkqezr3c7zc43lsu5r4p2l2qqf4mp89sf66",
"chain-2": "osmo1kn4tkqezr3c7zc43lsu5r4p2l2qqf4mpevqzt5"
}
}
]
}
239 changes: 0 additions & 239 deletions akash/paths.json

This file was deleted.

Loading

0 comments on commit 7c079e9

Please sign in to comment.