Skip to content

Commit

Permalink
add ibc info
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jan 19, 2024
1 parent e690fbc commit 2704b1e
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 0 deletions.
32 changes: 32 additions & 0 deletions _IBC/mahalo-minimove.json
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
}
}
]
}

31 changes: 31 additions & 0 deletions _IBC/mahalo-miniwasm.json
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
}
}
]
}
114 changes: 114 additions & 0 deletions ibc_data.schema.json
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
}
}
}

0 comments on commit 2704b1e

Please sign in to comment.