Skip to content

Commit

Permalink
chore: register ckb light client
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Dec 20, 2023
1 parent f2bd40f commit 4169ae3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migrations/1_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const IBCChannel = artifacts.require("IBCChannelHandshake");
const IBCClient = artifacts.require("IBCClient");
const MockClient = artifacts.require("MockClient");
const MockModule = artifacts.require("MockModule");
const CKBClient = artifacts.require("CKBClient");

module.exports = async function (deployer, network) {
console.log("Deploy contracts for network", network);
Expand All @@ -15,12 +16,14 @@ module.exports = async function (deployer, network) {
await deployer.deploy(IBCClient);
await deployer.deploy(MockClient);
await deployer.deploy(MockModule);
await deployer.deploy(CKBClient);

const ibcClient = await IBCClient.deployed();
const ibcPacket = await IBCPacket.deployed();
const ibcConnection = await IBCConnection.deployed();
const ibcChannel = await IBCChannel.deployed();
const mockClient = await MockClient.deployed();
const ckbClient = await CKBClient.deployed();

// 2. deploy IBCMockHandler
let IBCHandler = undefined;
Expand All @@ -46,7 +49,7 @@ module.exports = async function (deployer, network) {
const axonClientType = "07-axon";
await ibcHandler.registerClient(axonClientType, mockClient.address);
const ckbClientType = "07-ckb4ibc";
await ibcHandler.registerClient(ckbClientType, mockClient.address);
await ibcHandler.registerClient(ckbClientType, ckbClient.address);

// 4. register MockTransfer Module
const MockTransfer = artifacts.require("MockTransfer");
Expand Down

0 comments on commit 4169ae3

Please sign in to comment.