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 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
50 changes: 50 additions & 0 deletions components/AddressSvmTable.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { StyledTd } from "./Table";

const AddressSvmTable = ({
entries,
explorer,
}: {
entries: { name: string; value: string; link?: boolean }[];
explorer: string;
}) => {
return (
<table>
<tbody>
{entries.map(({ name, value, link }) => {
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}
</code>
);
const addLink = explorer.includes("$ADDRESS") && link;
return (
<tr key={name}>
<StyledTd>{name}</StyledTd>
<StyledTd>
{addLink ? (
<a
href={explorer.replace("$ADDRESS", value)}
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;
2 changes: 1 addition & 1 deletion pages/express-relay/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"errors": "Error Codes",
"examples": {
"title": "Example Application ↗",
"href": "https://github.com/pyth-network/pyth-examples/tree/main/express-relay/easy_lend",
"href": "https://github.com/pyth-network/pyth-examples/tree/6cea7c9602c7949c6dacc94aec44c0fe78ccb128/express-relay/easy_lend",
"newWindow": true
},
"-- Understand Express Relay": {
Expand Down
140 changes: 4 additions & 136 deletions pages/express-relay/contract-addresses.mdx
Original file line number Diff line number Diff line change
@@ -1,138 +1,6 @@
import { Tabs } from "nextra/components";
import AddressTable from "../../components/AddressTable";
# Contract Addresses

Express Relay is currently deployed on the following networks:
This section covers the contract addresses for Express Relay on different networks. Please navigate to the relevant section below.

<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>
- [EVM](contract-addresses/evm)
- [SVM](contract-addresses/svm)
4 changes: 4 additions & 0 deletions pages/express-relay/contract-addresses/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"evm": "EVM",
"svm": "SVM"
}
138 changes: 138 additions & 0 deletions pages/express-relay/contract-addresses/evm.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
import { Tabs } from "nextra/components";
import AddressTable from "../../../components/AddressTable";

Express Relay is currently deployed on the following EVM 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>
Loading
Loading