Slide 10
Slide 10 text
Copyright © 2022 Datachain, Inc. All Rights Reserved. 10
Demo: Relayer configurations
{
"src": {
"chain-id": "ibc0",
"client-id": "ibconeclient",
"connection-id": "ibconeconnection",
"channel-id": "ibconexfer",
"port-id": "transfer",
"order": "unordered",
"version": "ics20-1"
},
"dst": {
"chain-id": "ibc1",
"client-id": "ibczeroclient",
"connection-id": "ibczeroconnection",
"channel-id": "ibczeroxfer",
"port-id": "transfer",
"order": "unordered",
"version": "ics20-1"
},
"strategy": {
"type": "naive"
}
}
path.json
{
"@type": "/relayer.fabric.config.ChainConfig",
"chain_id": "ibc1",
"msp_id": "PlatformerMSP",
"channel": "channel1",
"chaincode_id": "trade",
"connection_profile_path": "./ccp/platformer.yaml",
"ibc_policies": ["PlatformerMSP"],
"endorsement_policies": ["PlatformerMSP"],
"msp_config_paths": ["./fixtures/msps/PlatformerMSP"]
}
ibc-1.json
{
"@type": "/relayer.tendermint.config.ChainConfig",
"key": "testkey",
"chain_id": "ibc0",
"rpc_addr": "http://localhost:26657",
"account_prefix": "cosmos",
"gas_adjustment": 1.5,
"gas_prices": "0.025stake",
"trusting_period": "336h"
}
ibc-0.json
Directory structure
● The path.json specifies a connection end to each other via IBC
● The ibc-x.json has a configuration to connect to one side
ibc0 is Cosmos side
ibc1 is Fabric side
It is necessary to establish a
connection via connection
and channel handshake
The port-id and version are
needed to tie an application
module
const (
ModuleName = "transfer"
Version = "ics20-1"
PortID = "transfer"
)
transfer/…/keys.go (showed only one part)