-
Notifications
You must be signed in to change notification settings - Fork 35
Feat/update er docs #645
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
Feat/update er docs #645
Changes from all commits
160cf57
1c6ccc8
c298a0c
324eb2d
4fc3920
5eac02c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,28 +1,83 @@ | ||||||
--- | ||||||
title: SVM | ||||||
--- | ||||||
|
||||||
import { Tabs, Callout } from "nextra/components"; | ||||||
import AddressSvmTable from "../../../components/AddressSvmTable"; | ||||||
|
||||||
# SVM Contract Addresses | ||||||
|
||||||
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 | ||||||
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, | ||||||
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
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, | ||||||
}, | ||||||
|
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
--- | ||
title: SVM | ||
--- | ||
|
||
# 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 fee splits received by different parties must be sufficient to cover the account rent. | | ||
| `InvalidReferralFee` | The provided referral fee in the swap instruction data is too high to be a valid number of basis points. | | ||
| `InsufficientUserFunds` | The user lacks the funds to pay the specified amount in the swap instruction. | |
Uh oh!
There was an error while loading. Please reload this page.