-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Sourcify database as default StorageService
- Loading branch information
1 parent
a733697
commit 62e216e
Showing
17 changed files
with
992 additions
and
105 deletions.
There are no files selected for viewing
This file contains 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 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 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
62 changes: 62 additions & 0 deletions
62
...c/server/controllers/repository/get-contract-addresses-paginated-all.stateless.paths.yaml
This file contains 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
openapi: "3.0.0" | ||
|
||
paths: | ||
/files/contracts/any/{chain}: | ||
get: | ||
summary: Get the contract addresses verified on a chain (full or partial match) | ||
description: Returns the verified contracts from the repository for the desired chain. Searches for full and partial matches. API is paginated. Limit must be a number between 1 and 200. | ||
tags: | ||
- Repository | ||
parameters: | ||
- name: chain | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
format: sourcify-chainId | ||
- name: page | ||
in: query | ||
required: false | ||
schema: | ||
type: number | ||
- name: limit | ||
in: query | ||
required: false | ||
schema: | ||
type: number | ||
minimum: 1 | ||
maximum: 200 | ||
responses: | ||
"200": | ||
description: Chain is available as a full match or partial match in the repository | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
results: | ||
type: array | ||
items: | ||
type: string | ||
example: | ||
[ | ||
"0x1fE5d745beABA808AAdF52057Dd7AAA47b42cFD0", | ||
"0xE9c31091868d68598Ac881738D159A63532d12f9", | ||
] | ||
pagination: | ||
type: object | ||
properties: | ||
currentPage: | ||
type: number | ||
totalPages: | ||
type: number | ||
resultsPerPage: | ||
type: number | ||
resultsCurrentPage: | ||
type: number | ||
totalResults: | ||
type: number | ||
hasNextPage: | ||
type: boolean | ||
hasPreviousPage: | ||
type: boolean |
62 changes: 62 additions & 0 deletions
62
.../server/controllers/repository/get-contract-addresses-paginated-full.stateless.paths.yaml
This file contains 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
openapi: "3.0.0" | ||
|
||
paths: | ||
/files/contracts/full/{chain}: | ||
get: | ||
summary: Get the contract addresses perfectly verified on a chain | ||
description: Returns the perfectly verified contracts from the repository for the desired chain. API is paginated. Limit must be a number between 1 and 200. | ||
tags: | ||
- Repository | ||
parameters: | ||
- name: chain | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
format: sourcify-chainId | ||
- name: page | ||
in: query | ||
required: false | ||
schema: | ||
type: number | ||
- name: limit | ||
in: query | ||
required: false | ||
schema: | ||
type: number | ||
minimum: 1 | ||
maximum: 200 | ||
responses: | ||
"200": | ||
description: Chain is available as a full match in the repository | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
results: | ||
type: array | ||
items: | ||
type: string | ||
example: | ||
[ | ||
"0x1fE5d745beABA808AAdF52057Dd7AAA47b42cFD0", | ||
"0xE9c31091868d68598Ac881738D159A63532d12f9", | ||
] | ||
pagination: | ||
type: object | ||
properties: | ||
currentPage: | ||
type: number | ||
totalPages: | ||
type: number | ||
resultsPerPage: | ||
type: number | ||
resultsCurrentPage: | ||
type: number | ||
totalResults: | ||
type: number | ||
hasNextPage: | ||
type: boolean | ||
hasPreviousPage: | ||
type: boolean |
This file contains 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 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 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.