Skip to content

Commit f042dbb

Browse files
committed
address comments
1 parent a2cc5b0 commit f042dbb

File tree

3 files changed

+43
-17
lines changed

3 files changed

+43
-17
lines changed

components/AddressSvmTable.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,30 @@ const AddressSvmTable = ({
44
entries,
55
explorer,
66
}: {
7-
entries: { name: string; value: string }[];
7+
entries: { name: string; value: string; link?: boolean }[];
88
explorer: string;
99
}) => {
1010
return (
1111
<table>
1212
<tbody>
13-
{entries.map(({ name, value }) => {
13+
{entries.map(({ name, value, link }) => {
1414
const component = (
1515
<code
1616
className={
1717
"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 "
1818
}
1919
>
20-
{value.startsWith("PK-") ? value.slice(3) : value}
20+
{value}
2121
</code>
2222
);
23-
const addLink =
24-
explorer.includes("$ADDRESS") && value.startsWith("PK-");
23+
const addLink = explorer.includes("$ADDRESS") && link;
2524
return (
2625
<tr key={name}>
2726
<StyledTd>{name}</StyledTd>
2827
<StyledTd>
2928
{addLink ? (
3029
<a
31-
href={explorer.replace("$ADDRESS", value.slice(3))}
30+
href={explorer.replace("$ADDRESS", value)}
3231
className={
3332
"nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]"
3433
}

pages/express-relay/contract-addresses/svm.mdx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,33 @@ Auction Server endpoint: https://per-staging.dourolabs.app/
1717
entries={[
1818
{
1919
name: "Express Relay Program",
20-
value: "PK-PytERJFhAKuNNuaiXkApLfWzwNwSNDACpigT3LwQfou",
20+
value: "PytERJFhAKuNNuaiXkApLfWzwNwSNDACpigT3LwQfou",
21+
link: true,
2122
},
2223
{
2324
name: "Limo Limit Order Program",
24-
value: "PK-LiMoM9rMhrdYrfzUCxQppvxCSG1FcrUK9G8uLq4A1GF",
25+
value: "LiMoM9rMhrdYrfzUCxQppvxCSG1FcrUK9G8uLq4A1GF",
26+
link: true,
2527
},
2628
{
2729
name: "Chain Id",
2830
value: "development-solana",
31+
link: false,
2932
},
3033
{
3134
name: "Public RPC",
3235
value: "https://api.mainnet-beta.solana.com",
36+
link: false,
3337
},
3438
{
3539
name: "Limo Global Order Config",
36-
value: "PK-TeStcUQMmECYEtdeXo9cXpktQWaGe4bhJ7zxAUMzB2X",
40+
value: "TeStcUQMmECYEtdeXo9cXpktQWaGe4bhJ7zxAUMzB2X",
41+
link: true,
3742
},
3843
{
3944
name: "Testing Frontend",
4045
value: "https://limo.kamino-webapp.pages.dev/swap",
46+
link: false,
4147
},
4248
]}
4349
/>
@@ -47,8 +53,16 @@ This list contains the addresses of the commonly used assets present in opportun
4753
<AddressSvmTable
4854
explorer={"https://solscan.io/account/$ADDRESS"}
4955
entries={[
50-
{ name: "WSOL", value: "PK-So11111111111111111111111111111111111111112" },
51-
{ name: "USDC", value: "PK-EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" },
56+
{
57+
name: "WSOL",
58+
value: "So11111111111111111111111111111111111111112",
59+
link: true,
60+
},
61+
{
62+
name: "USDC",
63+
value: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
64+
link: true,
65+
},
5266
]}
5367
/>
5468

pages/express-relay/integrate-as-searcher/svm.mdx

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def opportunity_callback(opportunity: Opportunity):
4646
pass
4747

4848
client = ExpressRelayClient(
49-
'server_url',
49+
"https://per-staging.dourolabs.app",
5050
None,
5151
opportunity_callback,
5252
None,
@@ -89,11 +89,11 @@ The server responds with opportunities in the following format:
8989

9090
```bash copy
9191
{
92-
"order": "DUcTi3rDyS5QEmZ4BNRBejtArmDCWaPYGfN44vBJXKL5", // The Limo order to be executed, encoded in base64
93-
"order_address": "DUcTi3rDyS5QEmZ4BNRBejtArmDCWaPYGfN44vBJXKL5", // Address of the order account
94-
"program": "limo", // Identifier of the program that the order exists in
92+
"order": "UxMUbQAsjrfQUp5stVwMJ6Mucq7VWTvt4ICe69BJ8lVXqwM+0sysV8OqZTdM0W4p...", // The Limo order to be executed, encoded in base64
93+
"order_address": "DUcTi3rDyS5QEmZ4BNRBejtArmDCWaPYGfN44vBJXKL5", // Address of the order account
94+
"program": "limo", // Identifier of the program that the order exists in
9595
"chain_id": "development-solana",
96-
"version": "v1" // Opportunity format version
96+
"version": "v1" // Opportunity format version
9797
}
9898
```
9999

@@ -106,9 +106,22 @@ The SDKs provide an easy way to construct a bid; refer to these basic examples i
106106
Before constructing the bid, make sure your wallet has the required assets.
107107
</Callout>
108108

109+
The bid you construct will look like
110+
111+
```
112+
{
113+
// serialized transaction object, in base-64 encoding
114+
transaction: "SGVsbG8sIFdvcmxkIQ==",
115+
chain_id: "solana",
116+
env: "svm"
117+
}
118+
```
119+
120+
where the serialized transaction object should contain an Express Relay `SubmitBid` instruction that specifies the amount you are bidding and the permission details.
121+
109122
### Submit Bids on Opportunities to Express Relay
110123

111-
Searchers can submit the constructed bids to Express Relay via the SDKs, an HTTP POST request, or a WebSocket connection.
124+
Searchers can submit their constructed bids to Express Relay via the SDKs, an HTTP POST request, or a WebSocket connection.
112125

113126
<Tabs items={['Typescript', 'Python', 'HTTP', 'Websocket']}>
114127

0 commit comments

Comments
 (0)