Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add svm docs #481

Merged
merged 11 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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
51 changes: 51 additions & 0 deletions components/AddressSvmTable.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { StyledTd } from "./Table";

const AddressSvmTable = ({
entries,
explorer,
}: {
entries: { name: string; value: string }[];
explorer: string;
}) => {
return (
<table>
<tbody>
{entries.map(({ name, value }) => {
const component = (
<code
className={
"nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em] dark:nx-border-white/10 dark:nx-bg-white/10 "
}
>
{value.startsWith("PK-") ? value.slice(3) : value}
</code>
);
const addLink =
explorer.includes("$ADDRESS") && value.startsWith("PK-");
anihamde marked this conversation as resolved.
Show resolved Hide resolved
return (
<tr key={name}>
<StyledTd>{name}</StyledTd>
<StyledTd>
{addLink ? (
<a
href={explorer.replace("$ADDRESS", value.slice(3))}
className={
"nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]"
}
target={"_blank"}
>
{component}
</a>
) : (
component
)}
</StyledTd>
</tr>
);
})}
</tbody>
</table>
);
};

export default AddressSvmTable;
325 changes: 193 additions & 132 deletions pages/express-relay/contract-addresses.mdx
Original file line number Diff line number Diff line change
@@ -1,138 +1,199 @@
import { Tabs } from "nextra/components";
import AddressTable from "../../components/AddressTable";
import AddressSvmTable from "../../components/AddressSvmTable";

Express Relay is currently deployed on the following networks:

<Tabs items={['Mainnet', 'Testnet']}>

<Tabs.Tab>
Auction Server endpoint: https://pyth-express-relay-mainnet.asymmetric.re/

### Mode

**Network Details:**

<AddressTable
explorer={"https://explorer.mode.network/address/$ADDRESS"}
entries={[
{
name: "Express Relay",
value: "0x5Cc070844E98F4ceC5f2fBE1592fB1ed73aB7b48",
},
{
name: "Opportunity Adapter Factory",
value: "0x59F78DE21a0b05d96Ae00c547BA951a3B905602f",
},
{
name: "Network Id",
value: "34443",
},
{
name: "Chain Id",
value: "mode",
},
{
name: "Public RPC",
value: "https://mainnet.mode.network/",
},
{
name: "Wrapped ETH",
value: "0x4200000000000000000000000000000000000006",
},
{
name: "Permit2 Contract",
value: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
},
]}
/>

This list contains the addresses of the commonly used assets present in opportunities on the Mode network:

<AddressTable
explorer={"https://explorer.mode.network/address/$ADDRESS"}
entries={[
{ name: "WETH", value: "0x4200000000000000000000000000000000000006" },
{ name: "USDC", value: "0xd988097fb8612cc24eeC14542bC03424c656005f" },
{ name: "USDT", value: "0xf0F161fDA2712DB8b566946122a5af183995e2eD" },
{ name: "WBTC", value: "0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF" },
{ name: "ezETH", value: "0x2416092f143378750bb29b79eD961ab195CcEea5" },
{ name: "STONE", value: "0x80137510979822322193FC997d400D5A6C747bf7" },
{ name: "wrsETH", value: "0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd" },
{ name: "weETH.mode", value: "0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A" },
{ name: "M-BTC", value: "0x59889b7021243dB5B1e065385F918316cD90D46c" },
{ name: "MODE", value: "0xDfc7C877a950e49D2610114102175A06C2e3167a" },
]}
/>

</Tabs.Tab>
<Tabs.Tab>
Auction Server endpoint: https://per-staging.dourolabs.app/

### Optimism Sepolia

**Network Details:**

<AddressTable
explorer={"https://optimism-sepolia.blockscout.com/address/$ADDRESS"}
entries={[
{
name: "Express Relay",
value: "0x2F968931d1B7326d2875E9500980211dcc535eE5",
},
{
name: "Opportunity Adapter Factory",
value: "0xfA119693864b2F185742A409c66f04865c787754",
},
{
name: "Network Id",
value: "11155420",
},
{
name: "Chain Id",
value: "op_sepolia",
},
{
name: "Public RPC",
value: "https://sepolia.optimism.io/",
},
{
name: "Wrapped ETH",
value: "0x74A4A85C611679B73F402B36c0F84A7D2CcdFDa3",
},
{
name: "Permit2 Contract",
value: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
},
]}
/>

This list contains the addresses of the commonly used assets present in opportunities on the Optimism Sepolia network:

<AddressTable
explorer={"https://optimism-sepolia.blockscout.com/address/$ADDRESS"}
entries={[
{
name: "BTC",
value: "0x3745007F7C8DD8Bec89b3B35f33f13f58b008533 ",
},
{
name: "USDC",
value: "0x1e3d75F24296abBC7bd10D151F51d758bCE379Ef",
},
{
name: "DOGE",
value: "0x0160Ba0A02A910e27b4189040aC74febcc476687 ",
},
{
name: "SOL",
value: "0x193aD24BeeDfAf27f217395f52fA20C7A36D79B3",
},
{
name: "PYTH",
value: "0x20e0b5Ff7aa971dAd8f489112Ae009A70608d2D5",
},
]}
/>

</Tabs.Tab>
<Tabs items={['EVM', 'SVM']}>
anihamde marked this conversation as resolved.
Show resolved Hide resolved
<Tabs.Tab>
<Tabs items={['Mainnet', 'Testnet']}>

<Tabs.Tab>
anihamde marked this conversation as resolved.
Show resolved Hide resolved
Auction Server endpoint: https://pyth-express-relay-mainnet.asymmetric.re/

### Mode

**Network Details:**

<AddressTable
explorer={"https://explorer.mode.network/address/$ADDRESS"}
entries={[
{
name: "Express Relay",
value: "0x5Cc070844E98F4ceC5f2fBE1592fB1ed73aB7b48",
},
{
name: "Opportunity Adapter Factory",
value: "0x59F78DE21a0b05d96Ae00c547BA951a3B905602f",
},
{
name: "Network Id",
value: "34443",
},
{
name: "Chain Id",
value: "mode",
},
{
name: "Public RPC",
value: "https://mainnet.mode.network/",
},
{
name: "Wrapped ETH",
value: "0x4200000000000000000000000000000000000006",
},
{
name: "Permit2 Contract",
value: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
},
]}
/>

This list contains the addresses of the commonly used assets present in opportunities on the Mode network:

<AddressTable
explorer={"https://explorer.mode.network/address/$ADDRESS"}
entries={[
{ name: "WETH", value: "0x4200000000000000000000000000000000000006" },
{ name: "USDC", value: "0xd988097fb8612cc24eeC14542bC03424c656005f" },
{ name: "USDT", value: "0xf0F161fDA2712DB8b566946122a5af183995e2eD" },
{ name: "WBTC", value: "0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF" },
{ name: "ezETH", value: "0x2416092f143378750bb29b79eD961ab195CcEea5" },
{ name: "STONE", value: "0x80137510979822322193FC997d400D5A6C747bf7" },
{ name: "wrsETH", value: "0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd" },
{ name: "weETH.mode", value: "0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A" },
{ name: "M-BTC", value: "0x59889b7021243dB5B1e065385F918316cD90D46c" },
{ name: "MODE", value: "0xDfc7C877a950e49D2610114102175A06C2e3167a" },
]}
/>

</Tabs.Tab>
<Tabs.Tab>
Auction Server endpoint: https://per-staging.dourolabs.app/

### Optimism Sepolia

**Network Details:**

<AddressTable
explorer={"https://optimism-sepolia.blockscout.com/address/$ADDRESS"}
entries={[
{
name: "Express Relay",
value: "0x2F968931d1B7326d2875E9500980211dcc535eE5",
},
{
name: "Opportunity Adapter Factory",
value: "0xfA119693864b2F185742A409c66f04865c787754",
},
{
name: "Network Id",
value: "11155420",
},
{
name: "Chain Id",
value: "op_sepolia",
},
{
name: "Public RPC",
value: "https://sepolia.optimism.io/",
},
{
name: "Wrapped ETH",
value: "0x74A4A85C611679B73F402B36c0F84A7D2CcdFDa3",
},
{
name: "Permit2 Contract",
value: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
},
]}
/>

This list contains the addresses of the commonly used assets present in opportunities on the Optimism Sepolia network:

<AddressTable
explorer={"https://optimism-sepolia.blockscout.com/address/$ADDRESS"}
entries={[
{
name: "BTC",
value: "0x3745007F7C8DD8Bec89b3B35f33f13f58b008533 ",
},
{
name: "USDC",
value: "0x1e3d75F24296abBC7bd10D151F51d758bCE379Ef",
},
{
name: "DOGE",
value: "0x0160Ba0A02A910e27b4189040aC74febcc476687 ",
},
{
name: "SOL",
value: "0x193aD24BeeDfAf27f217395f52fA20C7A36D79B3",
},
{
name: "PYTH",
value: "0x20e0b5Ff7aa971dAd8f489112Ae009A70608d2D5",
},
]}
/>

</Tabs.Tab>
</Tabs>

</Tabs.Tab>

<Tabs.Tab>
<Tabs items={['Testing']}>

<Tabs.Tab>
Auction Server endpoint: https://per-staging.dourolabs.app/

### Solana

**Network Details:**

<AddressSvmTable
explorer={"https://solscan.io/account/$ADDRESS"}
entries={[
{
name: "Express Relay Program",
value: "PK-PytERJFhAKuNNuaiXkApLfWzwNwSNDACpigT3LwQfou",
},
{
name: "Limo Limit Order Program",
value: "PK-LiMoM9rMhrdYrfzUCxQppvxCSG1FcrUK9G8uLq4A1GF",
},
{
name: "Chain Id",
value: "development-solana",
},
{
name: "Public RPC",
value: "https://api.mainnet-beta.solana.com",
},
{
name: "Limo Global Order Config",
value: "PK-TeStcUQMmECYEtdeXo9cXpktQWaGe4bhJ7zxAUMzB2X",
},
{
name: "Testing Frontend",
value: "https://limo.kamino-webapp.pages.dev/swap",
}
]}
/>

This list contains the addresses of the commonly used assets present in opportunities on `development-solana`:

<AddressSvmTable
explorer={"https://solscan.io/account/$ADDRESS"}
entries={[
{ name: "WSOL", value: "PK-So11111111111111111111111111111111111111112" },
{ name: "USDC", value: "PK-EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" },
]}
/>

</Tabs.Tab>
</Tabs>

</Tabs.Tab>
</Tabs>
Loading
Loading