Skip to content

Commit

Permalink
🖼️ Vitrin birimlerde ChainId enum kullan
Browse files Browse the repository at this point in the history
  • Loading branch information
KimlikDAO-bot committed Feb 28, 2024
1 parent 2b26e90 commit 7250402
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions birim/blog/eliptik-egriler/birim.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { AğBilgileri } from "/birim/ağlar/birim";
import jsonrpc from "/lib/api/jsonrpc";
import { ChainId } from "/lib/crosschain/chains";
import { address } from "/lib/ethereum/provider";
import dom from "/lib/util/dom";


const USDC_AVALANCHE = "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
/** @const {string} */
const DEV_FUND = "0x79883D9aCBc4aBac6d2d216693F66FcC5A0BcBC1".toLowerCase();
/** @const {string} */
const ODUL = "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"

jsonrpc.call("https://" + AğBilgileri["0xa86a"].rpcUrl, "eth_call", [
jsonrpc.call("https://" + AğBilgileri[ChainId.xa86a].rpcUrl, "eth_call", [
/** @type {!eth.Transaction} */({
to: USDC_AVALANCHE,
data: "0xdd62ed3e" + address(DEV_FUND) + address(ODUL)
Expand Down
4 changes: 2 additions & 2 deletions birim/blog/eliptik-imza/birim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AğBilgileri } from "/birim/ağlar/birim";
import jsonrpc from "/lib/api/jsonrpc";
import { ChainId } from "/lib/crosschain/chains";
import { address } from "/lib/ethereum/provider";
import dom from "/lib/util/dom";

Expand All @@ -15,7 +16,7 @@ const ODUL = "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"
*/
const USDT_ARB = "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9";

jsonrpc.call("https://" + AğBilgileri["0xa4b1"].rpcUrl, "eth_call", [
jsonrpc.call("https://" + AğBilgileri[ChainId.xa4b1].rpcUrl, "eth_call", [
/** @type {!eth.Transaction} */({
to: USDT_ARB,
data: "0xdd62ed3e" + address(DEV_FUND) + address(ODUL)
Expand All @@ -26,4 +27,3 @@ jsonrpc.call("https://" + AğBilgileri["0xa4b1"].rpcUrl, "eth_call", [
div.innerText = kalan;
div.parentElement.previousElementSibling.style.width = kalan * 180 / 5000 + "px";
});

0 comments on commit 7250402

Please sign in to comment.