Skip to content

Commit

Permalink
chore: update the generation of ckb4ibc-test
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Aug 22, 2023
1 parent c8b4ae2 commit 834a0d3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions tools/ckb4ibc-test/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ ckb_indexer_rpc = "http://127.0.0.1:8114"
key_name = "relayer_ckb_wallet"
store_prefix = "forcerelay"
connection_type_args = "0xf49ce32397c6741998b04d7548c5ed372007424daf67ee5bfadaefec3c865781"
channel_type_args = "0x19eccfd49b1fe33602fdf2ac51dc25a51af3380a4ce26dd9c655a60e1a65f5bd"
packet_type_args = "0xbdb6761d268013627cdcd7a7408ecab898bf42978af7ac040408ef67d8219a35"
channel_type_args = "0xb407c3b93dee611b2e65248254c28012a8d227c53803e5842d4a81934179adfc"
packet_type_args = "0x63b3d51df3884cc649135a51ad2a1ae1a8c2dfeca37c8b16220b26716fb3b4c4"
[chains.onchain_light_clients]
Ckb4Ibc = { chain_id = "ckb4ibc-1", client_cell_type_args = "0x8055adda2b33252189f529f20ef20f85089504ad1e3b8ab249fdb54e78e2fa56" }
Ckb4Ibc = { chain_id = "ckb4ibc-1", client_cell_type_args = "0x7ede7d98985de2f464e737b8e177ede186c50d3d584d1bd9b2399330c2187e61" }

[[chains]]
id = "ckb4ibc-1"
Expand All @@ -39,7 +39,7 @@ ckb_indexer_rpc = "http://127.0.0.1:8214"
key_name = "relayer_ckb_wallet"
store_prefix = "forcerelay"
connection_type_args = "0xf49ce32397c6741998b04d7548c5ed372007424daf67ee5bfadaefec3c865781"
channel_type_args = "0x19eccfd49b1fe33602fdf2ac51dc25a51af3380a4ce26dd9c655a60e1a65f5bd"
packet_type_args = "0xbdb6761d268013627cdcd7a7408ecab898bf42978af7ac040408ef67d8219a35"
channel_type_args = "0xb407c3b93dee611b2e65248254c28012a8d227c53803e5842d4a81934179adfc"
packet_type_args = "0x63b3d51df3884cc649135a51ad2a1ae1a8c2dfeca37c8b16220b26716fb3b4c4"
[chains.onchain_light_clients]
Ckb4Ibc = { chain_id = "ckb4ibc-0", client_cell_type_args = "0x8055adda2b33252189f529f20ef20f85089504ad1e3b8ab249fdb54e78e2fa56" }
Ckb4Ibc = { chain_id = "ckb4ibc-0", client_cell_type_args = "0x7ede7d98985de2f464e737b8e177ede186c50d3d584d1bd9b2399330c2187e61" }
4 changes: 2 additions & 2 deletions tools/ckb4ibc-test/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ use ckb_types::{h256, H256};
pub const CONNECTION_CODE_HASH: H256 =
h256!("0xcf6e0c0148123081af1deda0ef162d39cfdfe1ea6565d3689009c1f3562a5e82");
pub const CHANNEL_CODE_HASH: H256 =
h256!("0x189a524eef9be8f5a86cc4c50394eb0390a09fe72c8fb094826b9c41a354daea");
h256!("0xbc5049d6328c889a4adab53bf3c40379539db5145d61cfa4f86f61c77a962258");
pub const CLIENT_TYPE_ARGS: H256 =
h256!("0x8055adda2b33252189f529f20ef20f85089504ad1e3b8ab249fdb54e78e2fa56");
h256!("0x7ede7d98985de2f464e737b8e177ede186c50d3d584d1bd9b2399330c2187e61");
2 changes: 1 addition & 1 deletion tools/ckb4ibc-test/txs/create_connection.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"id": 4, "jsonrpc": "2.0", "method": "send_transaction", "params": [{"version":"0x0","cell_deps":[{"out_point":{"tx_hash":"0x4f8aa942679200df582d21175069b3257e647fc7a441ae577854ecbc29d750bc","index":"0x1"},"dep_type":"code"},{"out_point":{"tx_hash":"0x4f8aa942679200df582d21175069b3257e647fc7a441ae577854ecbc29d750bc","index":"0x0"},"dep_type":"code"},{"out_point":{"tx_hash":"0x29ed5663501cd171513155f8939ad2c9ffeb92aa4879d39cde987f8eb6274407","index":"0x0"},"dep_type":"dep_group"}],"header_deps":[],"inputs":[{"since":"0x0","previous_output":{"tx_hash":"0x4f8aa942679200df582d21175069b3257e647fc7a441ae577854ecbc29d750bc","index":"0x2"}}],"outputs":[{"capacity":"0x6fc23ac00","lock":{"code_hash":"0xcf6e0c0148123081af1deda0ef162d39cfdfe1ea6565d3689009c1f3562a5e82","hash_type":"type","args":"0x8055adda2b33252189f529f20ef20f85089504ad1e3b8ab249fdb54e78e2fa56"},"type":null},{"capacity":"0x16bcc41e90000","lock":{"code_hash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hash_type":"type","args":"0x470dcdc5e44064909650113a274b3b36aecb6dc7"},"type":null}],"outputs_data":["0x83795d737ad7359b0f3f87eba317e87c7eacba1ea3e21a7f00764c91ad265d2d","0x3078"],"witnesses":["0x5d00000010000000550000005500000041000000b5257a2ac9b7ccebbcc8c2ae4914b06106166d4b83827901cd21e4064cd82e8023d720bfc8356022e18528b0504921074dd9b16751304a6fac1198a12d09e83d0004000000c38080c0","0x1900000010000000100000001000000005000000c101c281c0"]}]}
{"id": 4, "jsonrpc": "2.0", "method": "send_transaction", "params": [{"version":"0x0","cell_deps":[{"out_point":{"tx_hash":"0x8384d5760b4aa839a8182c3ea576695588c09d75b271d709fa10bf39440a3ae5","index":"0x1"},"dep_type":"code"},{"out_point":{"tx_hash":"0x8384d5760b4aa839a8182c3ea576695588c09d75b271d709fa10bf39440a3ae5","index":"0x0"},"dep_type":"code"},{"out_point":{"tx_hash":"0x29ed5663501cd171513155f8939ad2c9ffeb92aa4879d39cde987f8eb6274407","index":"0x0"},"dep_type":"dep_group"}],"header_deps":[],"inputs":[{"since":"0x0","previous_output":{"tx_hash":"0x8384d5760b4aa839a8182c3ea576695588c09d75b271d709fa10bf39440a3ae5","index":"0x2"}}],"outputs":[{"capacity":"0x6fc23ac00","lock":{"code_hash":"0xcf6e0c0148123081af1deda0ef162d39cfdfe1ea6565d3689009c1f3562a5e82","hash_type":"type","args":"0x7ede7d98985de2f464e737b8e177ede186c50d3d584d1bd9b2399330c2187e61"},"type":null},{"capacity":"0x16bcc41e90000","lock":{"code_hash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hash_type":"type","args":"0x470dcdc5e44064909650113a274b3b36aecb6dc7"},"type":null}],"outputs_data":["0x83795d737ad7359b0f3f87eba317e87c7eacba1ea3e21a7f00764c91ad265d2d","0x3078"],"witnesses":["0x5d00000010000000550000005500000041000000e8d994fe7d6fdff4b6b3edcae305128673175b921049f3bf7f258f8c0f42b41931bdbb1eb4875ba48791ded8e6513e214b26b41707bf1b57953c819dfdf743460104000000c38080c0","0x1900000010000000100000001000000005000000c401c281c0"]}]}
2 changes: 1 addition & 1 deletion tools/ckb4ibc-test/txs/deploy_channel.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/ckb4ibc-test/txs/deploy_connection.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/ckb4ibc-test/txs/deploy_packet_metadata.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tools/test-framework/src/types/single/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ impl FullNode {
let connection_type_args =
hex_to_h256(b"f49ce32397c6741998b04d7548c5ed372007424daf67ee5bfadaefec3c865781").into();
let channel_type_args =
hex_to_h256(b"19eccfd49b1fe33602fdf2ac51dc25a51af3380a4ce26dd9c655a60e1a65f5bd").into();
hex_to_h256(b"b407c3b93dee611b2e65248254c28012a8d227c53803e5842d4a81934179adfc").into();
let packet_type_args =
hex_to_h256(b"bdb6761d268013627cdcd7a7408ecab898bf42978af7ac040408ef67d8219a35").into();
hex_to_h256(b"63b3d51df3884cc649135a51ad2a1ae1a8c2dfeca37c8b16220b26716fb3b4c4").into();
let client_cell_type_args =
hex_to_h256(b"8055adda2b33252189f529f20ef20f85089504ad1e3b8ab249fdb54e78e2fa56").into();
hex_to_h256(b"7ede7d98985de2f464e737b8e177ede186c50d3d584d1bd9b2399330c2187e61").into();
let mut onchain_light_clients = HashMap::default();
onchain_light_clients.insert(
ClientType::Ckb4Ibc,
Expand Down

0 comments on commit 834a0d3

Please sign in to comment.