From 9a4dc9243e9022d09c431006333410bb81f3995c Mon Sep 17 00:00:00 2001 From: Shaq Kheder Date: Wed, 22 Feb 2023 22:36:18 +0200 Subject: [PATCH 1/4] edit chain label --- ibc.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibc.html b/ibc.html index e69c396..b99fb5e 100644 --- a/ibc.html +++ b/ibc.html @@ -89,7 +89,7 @@

IBC DEMO

nodeUrl: 'https://jungle4.api.eosnation.io', //api supporting send_transaction2 txExplorer: 'https://jungle4.eosq.eosnation.io/tx', name: "jungle4", - label: "Jungle 4 Testnet", + label: "Jungle4 (EOS) Testnet", proofSocket: "wss://jungle4-ibc.goldenplatform.com", bridgeContract:"antelopeibc2", wrapLockContractsArray: ["antelopewlk1", "antelopewlk2", "antelopewlk3", "antelopewlk4"], @@ -99,7 +99,7 @@

IBC DEMO

nodeUrl: 'https://kylin.api.eosnation.io', //api supporting send_transaction2 txExplorer: 'https://kylin.eosq.eosnation.io/tx', name: "kylin", - label: "Kylin Testnet", + label: "Kylin (EOS) Testnet", proofSocket: "wss://kylin-ibc.goldenplatform.com", bridgeContract:"antelopeibc2", wrapLockContractsArray: ["antelopewlk1", "antelopewlk2", "antelopewlk3", "antelopewlk4"], From 04264d3c7166337f8e5ae5321905dabeef6a4adf Mon Sep 17 00:00:00 2001 From: Shaq Kheder Date: Fri, 21 Apr 2023 13:10:16 +0200 Subject: [PATCH 2/4] Update ibc.html --- ibc.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ibc.html b/ibc.html index b99fb5e..728aea5 100644 --- a/ibc.html +++ b/ibc.html @@ -560,12 +560,12 @@

IBC DEMO

} - return pushGurantee(chain, obj, retry_trx_num_blocks); //if waiting for lib + return pushGuarantee(chain, obj, retry_trx_num_blocks); //if waiting for lib } //Add retry logic and waiting for blocks to send_transaction, to emulate send_transaction2 retry_trx_num_blocks - const pushGurantee = async (chain, packedTx, retry_trx_num_blocks ) => new Promise(async resolve=>{ + const pushGuarantee = async (chain, packedTx, retry_trx_num_blocks ) => new Promise(async resolve=>{ let tx; try{ tx = await $.post(`${chain.nodeUrl}/v1/chain/send_transaction`, JSON.stringify(packedTx)); @@ -696,4 +696,4 @@

IBC DEMO

.box{ padding:16px; border:1px solid #64646d;margin-top:44px; } .box > div, #status > div{ display:flex; justify-content: space-between; } - \ No newline at end of file + From 1419ec0e6e3db3b8228c9ef64632c0e55d2dbefa Mon Sep 17 00:00:00 2001 From: yjwxfq <112159687+yjwxfq@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:35:11 +0800 Subject: [PATCH 3/4] Modify the comparison of the length of the initialResults variable modify while(initialResults.length >= 2) --- ibc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibc.html b/ibc.html index 728aea5..8c31645 100644 --- a/ibc.html +++ b/ibc.html @@ -133,7 +133,7 @@

IBC DEMO

fetchProgress+=50; $('.progressDiv').last().html(fetchProgress+"%"); let groupedResults = []; - while(initialResults.length > 2) groupedResults.push(initialResults.splice(0, 2)); + while(initialResults.length >= 2) groupedResults.push(initialResults.splice(0, 2)); let tokenPromises = [] for (var result of groupedResults){ const global = result[0][0]; From b5eccf9b2c33b336c3383874a708cd511d3050c2 Mon Sep 17 00:00:00 2001 From: yjwxfq <112159687+yjwxfq@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:31:22 +0800 Subject: [PATCH 4/4] Update ibc.html for converting the transaction_id to uppercase when comparing. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because the transaction_id returned from proof server is in uppercase format,but it maybe is in lowercase format retured from leap. --- ibc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibc.html b/ibc.html index 8c31645..8fe6fdd 100644 --- a/ibc.html +++ b/ibc.html @@ -622,7 +622,7 @@

IBC DEMO

ws.addEventListener('message', (event) => { const res = JSON.parse(event.data); console.log("res",res) - const firhoseTx = res.txs.find(r=>r.find(s=>s.transactionId === transaction_id)); + const firhoseTx = res.txs.find(r=>r.find(s=>s.transactionId === transaction_id.toUpperCase())); console.log("firhoseTx",firhoseTx) const firehoseEmitxfer = firhoseTx.find(r=>r.action.name==='emitxfer'); console.log("firehoseEmitxfer",firehoseEmitxfer)