-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
139 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.backup | ||
bin/ | ||
Makefile | ||
docker-compose.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace Tzkt.Api.Models | ||
{ | ||
public class BigMapInterface | ||
{ | ||
/// <summary> | ||
/// Full path to the Big_map in the contract storage | ||
/// </summary> | ||
public string Path { get; set; } | ||
|
||
/// <summary> | ||
/// Big_map name, if exists (field annotation) | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// JSON Schema of the Big_map key in humanified format (as returned by API) | ||
/// </summary> | ||
public JsonString KeySchema { get; set; } | ||
|
||
/// <summary> | ||
/// JSON Schema of the Big_map value in humanified format (as returned by API) | ||
/// </summary> | ||
public JsonString ValueSchema { get; set; } | ||
} | ||
|
||
public class EntrypointInterface | ||
{ | ||
/// <summary> | ||
/// Entrypoint name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// JSON Schema of the entrypoint parameter in humanified format (as returned by API) | ||
/// </summary> | ||
public JsonString ParameterSchema { get; set; } | ||
} | ||
|
||
public class ContractInterface | ||
{ | ||
/// <summary> | ||
/// JSON Schema of the contract storage in humanified format (as returned by API) | ||
/// </summary> | ||
public JsonString StorageSchema { get; set; } | ||
|
||
/// <summary> | ||
/// List of terminal entrypoints | ||
/// </summary> | ||
public List<EntrypointInterface> Entrypoints { get; set; } | ||
|
||
/// <summary> | ||
/// List of currently available Big_maps | ||
/// </summary> | ||
public List<BigMapInterface> BigMaps { get; set; } | ||
} | ||
} |
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