This repository was archived by the owner on Nov 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Feat/update er docs #645
Merged
Merged
Feat/update er docs #645
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
160cf57
update Reference Material
anihamde 1c6ccc8
add integrate-as-protocol changes
anihamde c298a0c
remove evm guides from searcher integration
anihamde 324eb2d
standardize language: mkt -> swaps;
anihamde 4fc3920
update to permalinks
anihamde 5eac02c
address comments
anihamde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| # Contract Addresses | ||
|
|
||
| This section covers the contract addresses for Express Relay on different networks. Please navigate to the relevant section below. | ||
| This section covers the contract addresses for Express Relay. Please navigate to the relevant section below. | ||
|
|
||
| - [EVM](contract-addresses/evm) | ||
| - [SVM](contract-addresses/svm) |
anihamde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| { | ||
| "evm": "EVM", | ||
| "svm": "SVM" | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,26 +3,75 @@ import AddressSvmTable from "../../../components/AddressSvmTable"; | |||||
|
|
||||||
| Express Relay is currently deployed on the following SVM environments: | ||||||
|
|
||||||
| <Tabs items={['Solana Mainnet-Beta Testing']}> | ||||||
| <Tabs items={['Prod (Solana Mainnet-Beta)', 'Testing (Solana Mainnet-Beta)']}> | ||||||
| <Tabs.Tab> | ||||||
| Auction Server endpoint: https://pyth-express-relay-mainnet.asymmetric.re/ | ||||||
|
|
||||||
| ### Prod | ||||||
|
|
||||||
| **Network Details:** | ||||||
|
|
||||||
| <AddressSvmTable | ||||||
anihamde marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| explorer={"https://solscan.io/account/$ADDRESS"} | ||||||
| entries={[ | ||||||
| { | ||||||
| name: "Express Relay Program", | ||||||
| value: "PytERJFhAKuNNuaiXkApLfWzwNwSNDACpigT3LwQfou", | ||||||
| link: true, | ||||||
| }, | ||||||
| { | ||||||
| name: "Limo Limit Order Program", | ||||||
| value: "LiMoM9rMhrdYrfzUCxQppvxCSG1FcrUK9G8uLq4A1GF", | ||||||
| link: true, | ||||||
| }, | ||||||
| { | ||||||
| name: "Chain Id", | ||||||
| value: "solana", | ||||||
| link: false, | ||||||
| }, | ||||||
| { | ||||||
| name: "Public RPC", | ||||||
| value: "https://api.mainnet-beta.solana.com", | ||||||
| link: false, | ||||||
| }, | ||||||
| { | ||||||
| name: "Limo Global Order Config", | ||||||
| value: "prod7Mog8r56sn5dPwze8nVdf94veEawdxNNqd5v7A1", | ||||||
| link: true, | ||||||
| }, | ||||||
| { | ||||||
| name: "Frontend", | ||||||
| value: "https://swap.kamino.finance", | ||||||
| link: false, | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this table needs to be refactored a bit if we want to use it for non-explorer links. A future TODO |
||||||
| }, | ||||||
| ]} | ||||||
| /> | ||||||
| </Tabs.Tab> | ||||||
|
|
||||||
| <Tabs.Tab> | ||||||
|
|
||||||
| <Callout type="warning" emoji="⚠️"> | ||||||
| To simulate real performance conditions and activity, the staging/testing | ||||||
| environment for Solana is on the mainnet-beta network. This environment is not | ||||||
| for production use and should only be used for testing. | ||||||
| </Callout> | ||||||
|
|
||||||
| <Tabs.Tab> | ||||||
| Auction Server endpoint: https://per-staging.dourolabs.app/ | ||||||
|
|
||||||
| ### Solana | ||||||
| ### Testing | ||||||
|
|
||||||
| **Network Details:** | ||||||
|
|
||||||
| <AddressSvmTable | ||||||
| explorer={"https://solscan.io/account/$ADDRESS"} | ||||||
| entries={[ | ||||||
| { | ||||||
| name: "Express Relay Program", | ||||||
| name: "Express Relay Program (Swaps)", | ||||||
| value: "stag1NN9voD7436oFvKmy1kvRZYLLW8drKocSCt2W79", | ||||||
| link: true, | ||||||
| }, | ||||||
| { | ||||||
| name: "Express Relay Program (Limit Orders)", | ||||||
| value: "PytERJFhAKuNNuaiXkApLfWzwNwSNDACpigT3LwQfou", | ||||||
| link: true, | ||||||
| }, | ||||||
|
|
||||||
anihamde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anihamde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| { | ||
| "evm": "EVM", | ||
| "svm": "SVM" | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,19 @@ | ||
| # SVM Error Codes | ||
|
|
||
| The following table lists the error codes and their explanations for the [`ExpressRelay`](https://github.com/pyth-network/per/tree/fccac65b00cff1cfe5c278b333a582fe66bda0f8/contracts/svm/programs/express_relay) programs. | ||
| The following table lists the error codes and their explanations for the [`ExpressRelay`](https://github.com/pyth-network/per/tree/358eedc1f9072cdfc3418fba309697580f2474f9/contracts/svm/programs/express_relay) programs. | ||
| They can be used to identify the cause of a failed transaction or bid. | ||
|
|
||
| ## ExpressRelay | ||
|
|
||
| | Error | Explanation | | ||
| | ----------------------------- | ------------------------------------------------------------------------------------------- | | ||
| | `FeeSplitLargerThanPrecision` | The proposed fee split is invalid (split is larger than `FEE_SPLIT_PRECISION`, 10000) | | ||
| | `FeesHigherThanBid` | The fees to pay out exceed the value of the bid amount. | | ||
| | `DeadlinePassed` | The bid is no longer valid, as the Unix time deadline has passed. | | ||
| | `InvalidCPISubmitBid` | The `SubmitBid` instruction should not be called via CPI. | | ||
| | `MissingPermission` | The transaction is missing a `SubmitBid` instruction with the matching permission key. | | ||
| | `MultiplePermissions` | The transaction should not contain more than one `SubmitBid` instruction. | | ||
| | `InsufficientSearcherFunds` | The searcher lacks the funds to pay the specified bid amount. | | ||
| | `InsufficientRent` | The fees splits received by different parties must be sufficient to cover the account rent. | | ||
| | Error | Explanation | | ||
| | ----------------------------- | ----------------------------------------------------------------------------------------------- | | ||
| | `FeeSplitLargerThanPrecision` | The proposed fee split is invalid (split is larger than `FEE_SPLIT_PRECISION`, 10000) | | ||
| | `FeesHigherThanBid` | The fees to pay out exceed the value of the bid amount. | | ||
| | `DeadlinePassed` | The bid is no longer valid, as the Unix time deadline has passed. | | ||
| | `InvalidCPISubmitBid` | The `SubmitBid` instruction should not be called via CPI. | | ||
| | `MissingPermission` | The transaction is missing a `SubmitBid` instruction with the matching permission key. | | ||
| | `MultiplePermissions` | The transaction should not contain more than one `SubmitBid` instruction. | | ||
| | `InsufficientSearcherFunds` | The searcher lacks the funds to pay the specified amount. | | ||
| | `InsufficientRent` | The fees splits received by different parties must be sufficient to cover the account rent. | | ||
anihamde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `InvalidReferralFee` | The provided referral fee in the swap instruction data is too high to be a valid number of bps. | | ||
anihamde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `InsufficientUserFunds` | The user lacks the funds to pay the specified amount in the swap instruction. | | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.