Skip to content

Commit 2f316f5

Browse files
updated relayer api config, added soneium (#185)
* updated relayer api config, added soneium * chore(i18n): update translations [en] Sync file structure, format locales. Branch: 185/merge --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3bf0065 commit 2f316f5

File tree

9 files changed

+232
-2042
lines changed

9 files changed

+232
-2042
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: AddGasSponsor
3+
openapi: ./relayer-api.json post /rpc/Relayer/AddGasSponsor
4+
---
5+
6+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: ListGasSponsors
3+
openapi: ./relayer-api.json post /rpc/Relayer/ListGasSponsors
4+
---
5+
6+

api-references/transactions/endpoints/relayer-api.json

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,6 +1507,60 @@
15071507
"type": "string"
15081508
}
15091509
}
1510+
},
1511+
"Relayer_ListGasSponsors_Request": {
1512+
"type": "object",
1513+
"properties": {
1514+
"projectId": {
1515+
"type": "number"
1516+
},
1517+
"page": {
1518+
"$ref": "#/components/schemas/Page"
1519+
}
1520+
}
1521+
},
1522+
"Relayer_ListGasSponsors_Response": {
1523+
"type": "object",
1524+
"properties": {
1525+
"page": {
1526+
"$ref": "#/components/schemas/Page"
1527+
},
1528+
"gasSponsors": {
1529+
"type": "array",
1530+
"description": "[]GasSponsor",
1531+
"items": {
1532+
"$ref": "#/components/schemas/GasSponsor"
1533+
}
1534+
}
1535+
}
1536+
},
1537+
"Relayer_AddGasSponsor_Request": {
1538+
"type": "object",
1539+
"properties": {
1540+
"projectId": {
1541+
"type": "number"
1542+
},
1543+
"address": {
1544+
"type": "string"
1545+
},
1546+
"name": {
1547+
"type": "string"
1548+
},
1549+
"active": {
1550+
"type": "boolean"
1551+
}
1552+
}
1553+
},
1554+
"Relayer_AddGasSponsor_Response": {
1555+
"type": "object",
1556+
"properties": {
1557+
"status": {
1558+
"type": "boolean"
1559+
},
1560+
"gasSponsor": {
1561+
"$ref": "#/components/schemas/GasSponsor"
1562+
}
1563+
}
15101564
}
15111565
},
15121566
"securitySchemes": {
@@ -1883,6 +1937,150 @@
18831937
}
18841938
]
18851939
}
1940+
},
1941+
"/rpc/Relayer/ListGasSponsors": {
1942+
"post": {
1943+
"summary": "Gas Sponsorship",
1944+
"requestBody": {
1945+
"content": {
1946+
"application/json": {
1947+
"schema": {
1948+
"$ref": "#/components/schemas/Relayer_ListGasSponsors_Request"
1949+
}
1950+
}
1951+
}
1952+
},
1953+
"responses": {
1954+
"200": {
1955+
"description": "OK",
1956+
"content": {
1957+
"application/json": {
1958+
"schema": {
1959+
"$ref": "#/components/schemas/Relayer_ListGasSponsors_Response"
1960+
}
1961+
}
1962+
}
1963+
},
1964+
"4XX": {
1965+
"description": "Client error",
1966+
"content": {
1967+
"application/json": {
1968+
"schema": {
1969+
"oneOf": [
1970+
{ "$ref": "#/components/schemas/ErrorWebrpcEndpoint" },
1971+
{ "$ref": "#/components/schemas/ErrorWebrpcRequestFailed" },
1972+
{ "$ref": "#/components/schemas/ErrorWebrpcBadRoute" },
1973+
{ "$ref": "#/components/schemas/ErrorWebrpcBadMethod" },
1974+
{ "$ref": "#/components/schemas/ErrorWebrpcBadRequest" },
1975+
{ "$ref": "#/components/schemas/ErrorWebrpcClientDisconnected" },
1976+
{ "$ref": "#/components/schemas/ErrorWebrpcStreamLost" },
1977+
{ "$ref": "#/components/schemas/ErrorUnauthorized" },
1978+
{ "$ref": "#/components/schemas/ErrorPermissionDenied" },
1979+
{ "$ref": "#/components/schemas/ErrorMethodNotFound" },
1980+
{ "$ref": "#/components/schemas/ErrorRequestConflict" },
1981+
{ "$ref": "#/components/schemas/ErrorAborted" },
1982+
{ "$ref": "#/components/schemas/ErrorGeoblocked" },
1983+
{ "$ref": "#/components/schemas/ErrorInvalidArgument" },
1984+
{ "$ref": "#/components/schemas/ErrorUnavailable" },
1985+
{ "$ref": "#/components/schemas/ErrorQueryFailed" },
1986+
{ "$ref": "#/components/schemas/ErrorNotFound" },
1987+
{ "$ref": "#/components/schemas/ErrorInsufficientFee" }
1988+
]
1989+
}
1990+
}
1991+
}
1992+
},
1993+
"5XX": {
1994+
"description": "Server error",
1995+
"content": {
1996+
"application/json": {
1997+
"schema": {
1998+
"oneOf": [
1999+
{ "$ref": "#/components/schemas/ErrorWebrpcBadResponse" },
2000+
{ "$ref": "#/components/schemas/ErrorWebrpcServerPanic" },
2001+
{ "$ref": "#/components/schemas/ErrorWebrpcInternalError" }
2002+
]
2003+
}
2004+
}
2005+
}
2006+
}
2007+
},
2008+
"security": [
2009+
{ "ApiKeyAuth": [ "AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI" ] }
2010+
]
2011+
}
2012+
},
2013+
"/rpc/Relayer/AddGasSponsor": {
2014+
"post": {
2015+
"summary": "",
2016+
"requestBody": {
2017+
"content": {
2018+
"application/json": {
2019+
"schema": {
2020+
"$ref": "#/components/schemas/Relayer_AddGasSponsor_Request"
2021+
}
2022+
}
2023+
}
2024+
},
2025+
"responses": {
2026+
"200": {
2027+
"description": "OK",
2028+
"content": {
2029+
"application/json": {
2030+
"schema": {
2031+
"$ref": "#/components/schemas/Relayer_AddGasSponsor_Response"
2032+
}
2033+
}
2034+
}
2035+
},
2036+
"4XX": {
2037+
"description": "Client error",
2038+
"content": {
2039+
"application/json": {
2040+
"schema": {
2041+
"oneOf": [
2042+
{ "$ref": "#/components/schemas/ErrorWebrpcEndpoint" },
2043+
{ "$ref": "#/components/schemas/ErrorWebrpcRequestFailed" },
2044+
{ "$ref": "#/components/schemas/ErrorWebrpcBadRoute" },
2045+
{ "$ref": "#/components/schemas/ErrorWebrpcBadMethod" },
2046+
{ "$ref": "#/components/schemas/ErrorWebrpcBadRequest" },
2047+
{ "$ref": "#/components/schemas/ErrorWebrpcClientDisconnected" },
2048+
{ "$ref": "#/components/schemas/ErrorWebrpcStreamLost" },
2049+
{ "$ref": "#/components/schemas/ErrorUnauthorized" },
2050+
{ "$ref": "#/components/schemas/ErrorPermissionDenied" },
2051+
{ "$ref": "#/components/schemas/ErrorMethodNotFound" },
2052+
{ "$ref": "#/components/schemas/ErrorRequestConflict" },
2053+
{ "$ref": "#/components/schemas/ErrorAborted" },
2054+
{ "$ref": "#/components/schemas/ErrorGeoblocked" },
2055+
{ "$ref": "#/components/schemas/ErrorInvalidArgument" },
2056+
{ "$ref": "#/components/schemas/ErrorUnavailable" },
2057+
{ "$ref": "#/components/schemas/ErrorQueryFailed" },
2058+
{ "$ref": "#/components/schemas/ErrorNotFound" },
2059+
{ "$ref": "#/components/schemas/ErrorInsufficientFee" }
2060+
]
2061+
}
2062+
}
2063+
}
2064+
},
2065+
"5XX": {
2066+
"description": "Server error",
2067+
"content": {
2068+
"application/json": {
2069+
"schema": {
2070+
"oneOf": [
2071+
{ "$ref": "#/components/schemas/ErrorWebrpcBadResponse" },
2072+
{ "$ref": "#/components/schemas/ErrorWebrpcServerPanic" },
2073+
{ "$ref": "#/components/schemas/ErrorWebrpcInternalError" }
2074+
]
2075+
}
2076+
}
2077+
}
2078+
}
2079+
},
2080+
"security": [
2081+
{ "ApiKeyAuth": [ "AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI" ] }
2082+
]
2083+
}
18862084
}
18872085
},
18882086
"servers": [
@@ -2022,6 +2220,10 @@
20222220
"url": "https://soneium-minato-relayer.sequence.app",
20232221
"description": "Soneium-Minato Relayer"
20242222
},
2223+
{
2224+
"url": "https://soneium-relayer.sequence.app",
2225+
"description": "Soneium Relayer"
2226+
},
20252227
{
20262228
"url": "https://toy-testnet-relayer.sequence.app",
20272229
"description": "Toy-Testnet Relayer"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: AgregarPatrocinadorDeGas
3+
openapi: ./relayer-api.json post /rpc/Relayer/AddGasSponsor
4+
---
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: ListarPatrocinadoresDeGas
3+
openapi: ./relayer-api.json post /rpc/Relayer/ListGasSponsors
4+
---

es/api-references/transactions/endpoints/relayer-api.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: ガススポンサーを追加
3+
openapi: ./relayer-api.json post /rpc/Relayer/AddGasSponsor
4+
---
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: ガススポンサー一覧
3+
openapi: ./relayer-api.json post /rpc/Relayer/ListGasSponsors
4+
---

0 commit comments

Comments
 (0)