|
|
@@ -2,13 +2,19 @@
|
|
|
"address": "GwEtasTAxdS9neVE4GPUpcwR7DB7AizntQSPcG36ubZM",
|
|
|
"metadata": {
|
|
|
"name": "express_relay",
|
|
|
- "version": "0.1.0",
|
|
|
+ "version": "0.2.0",
|
|
|
"spec": "0.1.0",
|
|
|
- "description": "Created with Anchor"
|
|
|
+ "description": "Pyth Express Relay program for handling permissioning and bid distribution",
|
|
|
+ "repository": "https://github.com/pyth-network/per"
|
|
|
},
|
|
|
"instructions": [
|
|
|
{
|
|
|
"name": "check_permission",
|
|
|
+ "docs": [
|
|
|
+ "Checks if permissioning exists for a particular (permission, router) pair within the same transaction",
|
|
|
+ "Permissioning takes the form of a SubmitBid instruction with matching permission and router accounts",
|
|
|
+ "Returns the fees paid to the router in the matching instructions"
|
|
|
+ ],
|
|
|
"discriminator": [154, 199, 232, 242, 96, 72, 197, 236],
|
|
|
"accounts": [
|
|
|
{
|
|
|
@@ -20,9 +26,38 @@
|
|
|
},
|
|
|
{
|
|
|
"name": "router"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "config_router",
|
|
|
+ "pda": {
|
|
|
+ "seeds": [
|
|
|
+ {
|
|
|
+ "kind": "const",
|
|
|
+ "value": [
|
|
|
+ 99, 111, 110, 102, 105, 103, 95, 114, 111, 117, 116, 101, 114
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "kind": "account",
|
|
|
+ "path": "router"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "express_relay_metadata",
|
|
|
+ "pda": {
|
|
|
+ "seeds": [
|
|
|
+ {
|
|
|
+ "kind": "const",
|
|
|
+ "value": [109, 101, 116, 97, 100, 97, 116, 97]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
}
|
|
|
],
|
|
|
- "args": []
|
|
|
+ "args": [],
|
|
|
+ "returns": "u64"
|
|
|
},
|
|
|
{
|
|
|
"name": "initialize",
|
|
|
@@ -140,7 +175,7 @@
|
|
|
"relations": ["express_relay_metadata"]
|
|
|
},
|
|
|
{
|
|
|
- "name": "router_config",
|
|
|
+ "name": "config_router",
|
|
|
"writable": true,
|
|
|
"pda": {
|
|
|
"seeds": [
|
|
|
@@ -223,6 +258,9 @@
|
|
|
},
|
|
|
{
|
|
|
"name": "submit_bid",
|
|
|
+ "docs": [
|
|
|
+ "Submits a bid for a particular (permission, router) pair and distributes bids according to splits"
|
|
|
+ ],
|
|
|
"discriminator": [19, 164, 237, 254, 64, 139, 237, 93],
|
|
|
"accounts": [
|
|
|
{
|
|
|
@@ -243,7 +281,7 @@
|
|
|
"writable": true
|
|
|
},
|
|
|
{
|
|
|
- "name": "router_config",
|
|
|
+ "name": "config_router",
|
|
|
"pda": {
|
|
|
"seeds": [
|
|
|
{
|
|
|
@@ -259,11 +297,6 @@
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- "name": "fee_receiver_relayer",
|
|
|
- "writable": true,
|
|
|
- "relations": ["express_relay_metadata"]
|
|
|
- },
|
|
|
{
|
|
|
"name": "express_relay_metadata",
|
|
|
"writable": true,
|
|
|
@@ -276,6 +309,11 @@
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ "name": "fee_receiver_relayer",
|
|
|
+ "writable": true,
|
|
|
+ "relations": ["express_relay_metadata"]
|
|
|
+ },
|
|
|
{
|
|
|
"name": "system_program",
|
|
|
"address": "11111111111111111111111111111111"
|