Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/airdrop/src/lib/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Chain } from "viem";

export const SENTRIX_MAINNET = {
id: 7119,
name: "Sentrix",
name: "Sentrix Chain",
nativeCurrency: { name: "Sentrix", symbol: "SRX", decimals: 18 },
rpcUrls: {
default: { http: ["https://rpc.sentrixchain.com"] },
Expand Down
6 changes: 3 additions & 3 deletions apps/chain-landing/public/chain-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"shortName": "srx-testnet",
"infoURL": "https://sentrixchain.com",
"nativeCurrency": {
"name": "Sentrix Testnet",
"symbol": "tSRX",
"name": "Sentrix",
"symbol": "SRX",
"decimals": 18
},
"rpc": [
Expand All @@ -26,7 +26,7 @@
"explorers": [
{
"name": "Sentrix Scan Testnet",
"url": "https://scan.sentrixchain.com",
"url": "https://scan-testnet.sentrixchain.com",
"standard": "EIP3091"
}
],
Expand Down
7 changes: 1 addition & 6 deletions apps/chain-landing/public/chain.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://chainagnostic.org/chain-meta/v1.json",
"name": "Sentrix Mainnet",
"name": "Sentrix Chain",
"chain": "SRX",
"chainId": 7119,
"networkId": 7119,
Expand Down Expand Up @@ -28,11 +28,6 @@
"name": "Sentrix Scan",
"url": "https://scan.sentrixchain.com",
"standard": "EIP3091"
},
{
"name": "Blockscout",
"url": "https://blockscout.sentrixchain.com",
"standard": "EIP3091"
}
],
"faucets": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ export function AddToWalletButton({
export const SENTRIX_MAINNET_ADD_PARAMS: ChainParams = {
chainId: "0x1bcf",
chainName: "Sentrix Chain",
nativeCurrency: { name: "SRX", symbol: "SRX", decimals: 18 },
nativeCurrency: { name: "Sentrix", symbol: "SRX", decimals: 18 },
rpcUrls: ["https://rpc.sentrixchain.com"],
blockExplorerUrls: ["https://scan.sentrixchain.com"],
};

export const SENTRIX_TESTNET_ADD_PARAMS: ChainParams = {
chainId: "0x1bd0",
chainName: "Sentrix Testnet",
nativeCurrency: { name: "SRX", symbol: "SRX", decimals: 18 },
nativeCurrency: { name: "Sentrix", symbol: "SRX", decimals: 18 },
rpcUrls: ["https://testnet-rpc.sentrixchain.com"],
blockExplorerUrls: ["https://scan.sentrixchain.com"],
blockExplorerUrls: ["https://scan-testnet.sentrixchain.com"],
};
2 changes: 1 addition & 1 deletion apps/coinblast/src/app/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface FormData {
// query at the end of the URL via the helper below.
const NETWORKS = {
7119: {
label: 'Sentrix Mainnet',
label: 'Sentrix Chain',
explorerBase: 'https://scan.sentrixchain.com',
explorerQuery: '',
feeRecipient: '0xeb70fdefd00fdb768dec06c478f450c351499f14' as `0x${string}`,
Expand Down
4 changes: 2 additions & 2 deletions apps/coinblast/src/lib/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const SENTRIX_CHAIN_PARAMS = {
// eth_getBalance / msg.value / wei conventions all work normally).
decimals: 18,
},
rpcUrls: [process.env.NEXT_PUBLIC_RPC_URL ?? 'https://rpc.sentrixchain.com/rpc'],
rpcUrls: [process.env.NEXT_PUBLIC_RPC_URL ?? 'https://rpc.sentrixchain.com'],
blockExplorerUrls: [
process.env.NEXT_PUBLIC_EXPLORER_URL ?? 'https://scan.sentrixchain.com',
],
Expand All @@ -23,7 +23,7 @@ export const SENTRIX_CHAIN_PARAMS = {
/** Read-only provider — for fetching balances, chain info, etc. */
export function getReadProvider(): ethers.JsonRpcProvider {
return new ethers.JsonRpcProvider(
process.env.NEXT_PUBLIC_RPC_URL ?? 'https://rpc.sentrixchain.com/rpc'
process.env.NEXT_PUBLIC_RPC_URL ?? 'https://rpc.sentrixchain.com'
)
}

Expand Down
4 changes: 2 additions & 2 deletions apps/coinblast/src/lib/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ function getClient(url: string): WSClient {

function defaultWsUrl(): string {
// NEXT_PUBLIC_RPC_URL on coinblast points at the JSON-RPC HTTP host
// (https://rpc.sentrixchain.com/rpc). Convert to the ws subdomain on
// (https://rpc.sentrixchain.com). Convert to the ws subdomain on
// the API host: wss://api.sentrixchain.com/ws. Both endpoints are
// load-balanced across the same validator set.
const rpc = process.env.NEXT_PUBLIC_RPC_URL ?? "https://rpc.sentrixchain.com/rpc";
const rpc = process.env.NEXT_PUBLIC_RPC_URL ?? "https://rpc.sentrixchain.com";
try {
const u = new URL(rpc);
const host = u.host
Expand Down
2 changes: 1 addition & 1 deletion apps/landing/components/sections/developers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const repos = [
];

const codeSample = `# Latest block from Sentrix Chain mainnet
curl https://rpc.sentrixchain.com/rpc \\
curl https://rpc.sentrixchain.com \\
-H 'content-type: application/json' \\
-d '{
"jsonrpc": "2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/landing/lib/chain.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createPublicClient, http, type Chain } from "viem";

const MAINNET_RPC = process.env.NEXT_PUBLIC_MAINNET_RPC ?? "https://rpc.sentrixchain.com/rpc";
const MAINNET_RPC = process.env.NEXT_PUBLIC_MAINNET_RPC ?? "https://rpc.sentrixchain.com";
const MAINNET_CHAIN_ID = Number(process.env.NEXT_PUBLIC_MAINNET_CHAIN_ID ?? 7119);

export const sentrixMainnet: Chain = {
Expand Down
6 changes: 3 additions & 3 deletions apps/scan/lib/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { defineChain, createPublicClient, http } from "viem";

export const sentrixMainnet = defineChain({
id: Number(process.env.NEXT_PUBLIC_MAINNET_CHAIN_ID) || 7119,
name: "Sentrix Mainnet",
name: "Sentrix Chain",
// 18 decimals — Sentrix EVM (post-Voyager) follows the standard wei
// convention. The 8-decimal "sentri" sub-unit only applies at the REST
// API layer (api.ts converts at the edge); EVM RPC + wallet integrations
// use full 1e18 like every other EVM chain.
nativeCurrency: { name: "Sentrix", symbol: "SRX", decimals: 18 },
rpcUrls: {
default: {
http: [process.env.NEXT_PUBLIC_MAINNET_RPC || "https://rpc.sentrixchain.com/rpc"],
http: [process.env.NEXT_PUBLIC_MAINNET_RPC || "https://rpc.sentrixchain.com"],
},
},
blockExplorers: {
Expand All @@ -28,7 +28,7 @@ export const sentrixTestnet = defineChain({
nativeCurrency: { name: "Sentrix", symbol: "SRX", decimals: 18 },
rpcUrls: {
default: {
http: [process.env.NEXT_PUBLIC_TESTNET_RPC || "https://testnet-rpc.sentrixchain.com/rpc"],
http: [process.env.NEXT_PUBLIC_TESTNET_RPC || "https://testnet-rpc.sentrixchain.com"],
},
},
blockExplorers: {
Expand Down
2 changes: 1 addition & 1 deletion apps/solux/src/components/NetworkHealth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function NetworkHealth() {
onClick={() => setShowDetail(false)}
/>
<div className="absolute top-full mt-2 right-0 z-50 w-56 rounded-lg bg-[var(--sf)] border border-[var(--brd)] p-3 shadow-2xl animate-fade-up">
<div className="text-[12px] font-medium text-[var(--tx-m)] mb-2">Sentrix Mainnet</div>
<div className="text-[12px] font-medium text-[var(--tx-m)] mb-2">Sentrix Chain</div>
<div className="space-y-1.5 text-[11px] font-mono">
<Stat label="Status" value={label} tone={state.health} />
<Stat label="Tip" value={state.height !== null ? `#${state.height.toLocaleString()}` : '—'} />
Expand Down
4 changes: 2 additions & 2 deletions packages/wallet-config/src/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { Chain } from "viem";

export const SENTRIX_MAINNET = {
id: 7119,
name: "Sentrix",
name: "Sentrix Chain",
nativeCurrency: { name: "Sentrix", symbol: "SRX", decimals: 18 },
rpcUrls: {
default: { http: ["https://rpc.sentrixchain.com"] },
Expand All @@ -35,7 +35,7 @@ export const SENTRIX_TESTNET = {
public: { http: ["https://testnet-rpc.sentrixchain.com"] },
},
blockExplorers: {
default: { name: "Sentrix Scan", url: "https://scan.sentrixchain.com" },
default: { name: "Sentrix Scan Testnet", url: "https://scan-testnet.sentrixchain.com" },
},
testnet: true,
} as const satisfies Chain;
Expand Down
Loading