Skip to content

Commit

Permalink
Merge pull request #3 from stc-community/feat-fvm-2023.09.12
Browse files Browse the repository at this point in the history
Switch to Filecoin - Calibration testnet
  • Loading branch information
rovast authored Sep 12, 2023
2 parents db93057 + ad6e6c6 commit 045b0af
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name="viewport"
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<title>CloudX3 DePIN Platform</title>
<title>CloudX3 IoT</title>
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<script>
window.process = {};
Expand Down
44 changes: 42 additions & 2 deletions src/config/chain.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// 合约相关的配置

type ChainName = "Optimism Goerli Testnet" | "Sepolia" | "opBNB Testnet";
type ChainName =
| "Optimism Goerli Testnet"
| "Sepolia"
| "opBNB Testnet"
| "Filecoin - Calibration testnet";

export type Chain = {
chainId: string;
Expand Down Expand Up @@ -152,10 +156,46 @@ const chains: Chain[] = [
stcMarketTokenContract: "0x5d3c43875589f4881E769f4b46cFf6257dC5Ad1C", //

userHubContract: "0xD436429Cf172a79A5E4D8F672c698A2E98315dc0" //
},
{
chainId: "0x4cb2f",
chainName: "Filecoin - Calibration testnet",
// chainlistUrl: "https://chainlist.org/chain/314159",
nativeCurrency: {
name: "tFIL",
symbol: "tFIL",
decimals: 18
},
rpcUrls: ["https://filecoin-calibration.chainup.net/rpc/v1"],
blockExplorerUrls: ["https://calibration.filscan.io/"],
iconUrls: ["https://filecoin.io/images/filecoin-logo.svg"],

oracle: "0xCe76ab89Cac76d67Bd43Ed901AE6544b03103a63",

podContract: "0x3aDb761e02a76e9E8C8aBD12B2744f32F15D7166",
podJobId: "780d3dd1933a4a9d839f4c78d92ab595",

deploymentContract: "0xD6540c5eC23f664D3Fee7E2Aa608C6B197FD24ce",
deploymentJobId: "68c1dc5cd63841459ff2395a931f042c",

nodeContract: "0x4a243dFb4EeFffb5a255b3b320681aa39915420B",
nodeJobId: "aa7198c0190f4cc29d4e4470c08f6391",
nodeOracle: "0x248E10ec1C54CB570F7A15933286BAa1D59B70c0",

zeroTrustContract: "0xA3A07c5fdd2b7cea1c7aD9d67292206dBf8832D8",

meshContract: "0x962E121f6067B0dA6F90D07d565ba21004922B9d",

codContract: "0x6051273DB68F2af68617589f30F8a91f859e5b82",

stcMarketContract: "0xe9aeeA52781Cb265a83c65d44DB398Ad78571892",
stcMarketTokenContract: "0x7A338445C1eAE2f13E294C28050541686187Cd5F",

userHubContract: "0x5FeeBB15A0cdb30EFd286Dc1210f4aB3D239d1E3"
}
];

let currentChain: ChainName = "Optimism Goerli Testnet";
let currentChain: ChainName = "Filecoin - Calibration testnet";
export function setCurrentChain(name: ChainName) {
currentChain = name;
}
Expand Down
2 changes: 1 addition & 1 deletion src/router/modules/dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
component: () => import("@/views/dao/index.vue"),
meta: {
title: "Market",
rank: 2
rank: 10
},
children: [
// {
Expand Down
2 changes: 1 addition & 1 deletion src/router/modules/iot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
component: () => import("@/views/iot/index.vue"),
meta: {
title: "iot",
rank: 20
rank: 2
},
children: [
{
Expand Down
4 changes: 3 additions & 1 deletion src/views/welcome/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ watch(

<template>
<div class="text-center">
<h1 class="text-5xl font-bold mt-[120px] dark:text-slate-200">CloudX3</h1>
<h1 class="text-5xl font-bold mt-[120px] dark:text-slate-200">
CloudX3 IoT
</h1>
<p
class="py-6 text-xl max-w-[700px] mx-auto text-slate-500 dark:text-slate-400"
>
Expand Down

0 comments on commit 045b0af

Please sign in to comment.