-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
177 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"$schema": "../ibc_data.schema.json", | ||
"chain_1": { | ||
"chain_name": "mahalo", | ||
"client_id": "07-tendermint-0", | ||
"connection_id": "connection-0" | ||
}, | ||
"chain_2": { | ||
"chain_name": "minimove", | ||
"client_id": "07-tendermint-0", | ||
"connection_id": "connection-0" | ||
}, | ||
"channels": [ | ||
{ | ||
"chain_1": { | ||
"channel_id": "channel-0", | ||
"port_id": "transfer" | ||
}, | ||
"chain_2": { | ||
"channel_id": "channel-0", | ||
"port_id": "transfer" | ||
}, | ||
"ordering": "unordered", | ||
"version": "ics20-1", | ||
"tags": { | ||
"status": "live", | ||
"preferred": true | ||
} | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "../ibc_data.schema.json", | ||
"chain_1": { | ||
"chain_name": "mahalo", | ||
"client_id": "07-tendermint-1", | ||
"connection_id": "connection-1" | ||
}, | ||
"chain_2": { | ||
"chain_name": "minimove", | ||
"client_id": "07-tendermint-0", | ||
"connection_id": "connection-0" | ||
}, | ||
"channels": [ | ||
{ | ||
"chain_1": { | ||
"channel_id": "channel-1", | ||
"port_id": "transfer" | ||
}, | ||
"chain_2": { | ||
"channel_id": "channel-0", | ||
"port_id": "transfer" | ||
}, | ||
"ordering": "unordered", | ||
"version": "ics20-1", | ||
"tags": { | ||
"status": "live", | ||
"preferred": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"required": ["chain_1", "chain_2", "channels"], | ||
"properties": { | ||
"$schema": { | ||
"type": "string", | ||
"pattern": "^(\\.\\./)+ibc_data\\.schema\\.json$" | ||
}, | ||
"chain_1": { | ||
"type": "object", | ||
"$ref": "#/$defs/chain_info" | ||
}, | ||
"chain_2": { | ||
"type": "object", | ||
"$ref": "#/$defs/chain_info" | ||
}, | ||
"channels": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"required": ["chain_1", "chain_2", "ordering", "version"], | ||
"properties": { | ||
"chain_1": { | ||
"type": "object", | ||
"$ref": "#/$defs/channel_info" | ||
}, | ||
"chain_2": { | ||
"type": "object", | ||
"$ref": "#/$defs/channel_info" | ||
}, | ||
"ordering": { | ||
"enum": ["ordered", "unordered"], | ||
"description": "Determines if packets from a sending module must be 'ordered' or 'unordered'." | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "IBC Version" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Human readable description of the channel." | ||
}, | ||
"tags": { | ||
"type": "object", | ||
"description": "Human readable key:value pairs that help describe and distinguish channels.", | ||
"properties": { | ||
"status": { | ||
"enum": ["live", "upcoming", "killed"] | ||
}, | ||
"preferred": { | ||
"type": "boolean" | ||
}, | ||
"dex": { | ||
"type": "string" | ||
}, | ||
"properties": { | ||
"type": "string", | ||
"description": "String that helps describe non-dex use cases ex: interchain accounts(ICA)." | ||
} | ||
}, | ||
"additionalProperties": true | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"$defs": { | ||
"chain_info": { | ||
"type": "object", | ||
"description": "Top level IBC data pertaining to the chain. `chain_1` and `chain_2` should be in alphabetical order.", | ||
"required": ["chain_name", "client_id", "connection_id"], | ||
"properties": { | ||
"chain_name": { | ||
"type": "string" | ||
}, | ||
"client_id": { | ||
"type": "string", | ||
"description": "The client ID on the corresponding chain representing the other chain's light client." | ||
}, | ||
"connection_id": { | ||
"type": "string", | ||
"description": "The connection ID on the corresponding chain representing a connection to the other chain." | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"channel_info": { | ||
"type": "object", | ||
"required": ["channel_id", "port_id"], | ||
"properties": { | ||
"channel_id": { | ||
"type": "string", | ||
"description": "The channel ID on the corresponding chain's connection representing a channel on the other chain." | ||
}, | ||
"port_id": { | ||
"type": "string", | ||
"description": "The IBC port ID which a relevant module binds to on the corresponding chain." | ||
}, | ||
"client_id": { | ||
"type": "string", | ||
"description": "Optional. The client ID on the corresponding chain representing the other chain's light client." | ||
}, | ||
"connection_id": { | ||
"type": "string", | ||
"description": "Optional. The connection ID on the corresponding chain representing a connection to the other chain." | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
} |