Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentio Bot committed Aug 15, 2024
1 parent 371e74f commit a6f899b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 9 deletions.
49 changes: 40 additions & 9 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3550,6 +3550,9 @@
"originTxHash" : {
"type" : "string"
},
"label" : {
"type" : "string"
},
"stateOverrides" : {
"type" : "object",
"additionalProperties" : {
Expand Down Expand Up @@ -12236,7 +12239,7 @@ <h3>Usage and SDK Samples</h3>
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Api-Key: [[apiKey]]" \
-H "Accept: application/json" \
"https://app.sentio.xyz/api/v1/solidity/simulate?projectOwner=projectOwner_example&projectSlug=projectSlug_example&page=56&pageSize=56"
"https://app.sentio.xyz/api/v1/solidity/simulate?projectOwner=projectOwner_example&projectSlug=projectSlug_example&labelContains=labelContains_example&page=56&pageSize=56"
</code></pre>
</div>
<div class="tab-pane" id="examples-DebugAndSimulation-getSimulations-0-java">
Expand All @@ -12262,11 +12265,12 @@ <h3>Usage and SDK Samples</h3>
DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
String projectOwner = projectOwner_example; // String |
String projectSlug = projectSlug_example; // String |
String labelContains = labelContains_example; // String |
Integer page = 56; // Integer |
Integer pageSize = 56; // Integer |

try {
solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(projectOwner, projectSlug, page, pageSize);
solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(projectOwner, projectSlug, labelContains, page, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DebugAndSimulationApi#getSimulations");
Expand All @@ -12284,11 +12288,12 @@ <h3>Usage and SDK Samples</h3>

final String projectOwner = new String(); // String |
final String projectSlug = new String(); // String |
final String labelContains = new String(); // String |
final Integer page = new Integer(); // Integer |
final Integer pageSize = new Integer(); // Integer |

try {
final result = await api_instance.getSimulations(projectOwner, projectSlug, page, pageSize);
final result = await api_instance.getSimulations(projectOwner, projectSlug, labelContains, page, pageSize);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->getSimulations: $e\n');
Expand All @@ -12305,11 +12310,12 @@ <h3>Usage and SDK Samples</h3>
DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
String projectOwner = projectOwner_example; // String |
String projectSlug = projectSlug_example; // String |
String labelContains = labelContains_example; // String |
Integer page = 56; // Integer |
Integer pageSize = 56; // Integer |

try {
solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(projectOwner, projectSlug, page, pageSize);
solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(projectOwner, projectSlug, labelContains, page, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DebugAndSimulationApi#getSimulations");
Expand All @@ -12335,12 +12341,14 @@ <h3>Usage and SDK Samples</h3>
DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
String *projectOwner = projectOwner_example; // (optional) (default to null)
String *projectSlug = projectSlug_example; // (optional) (default to null)
String *labelContains = labelContains_example; // (optional) (default to null)
Integer *page = 56; // (optional) (default to null)
Integer *pageSize = 56; // (optional) (default to null)

// Get existing transaction simulations
[apiInstance getSimulationsWith:projectOwner
projectSlug:projectSlug
labelContains:labelContains
page:page
pageSize:pageSize
completionHandler: ^(solidity_service.GetSimulationsResponse output, NSError* error) {
Expand Down Expand Up @@ -12369,6 +12377,7 @@ <h3>Usage and SDK Samples</h3>
var opts = {
'projectOwner': projectOwner_example, // {String}
'projectSlug': projectSlug_example, // {String}
'labelContains': labelContains_example, // {String}
'page': 56, // {Integer}
'pageSize': 56 // {Integer}
};
Expand Down Expand Up @@ -12409,12 +12418,13 @@ <h3>Usage and SDK Samples</h3>
var apiInstance = new DebugAndSimulationApi();
var projectOwner = projectOwner_example; // String | (optional) (default to null)
var projectSlug = projectSlug_example; // String | (optional) (default to null)
var labelContains = labelContains_example; // String | (optional) (default to null)
var page = 56; // Integer | (optional) (default to null)
var pageSize = 56; // Integer | (optional) (default to null)

try {
// Get existing transaction simulations
solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(projectOwner, projectSlug, page, pageSize);
solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(projectOwner, projectSlug, labelContains, page, pageSize);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DebugAndSimulationApi.getSimulations: " + e.Message );
Expand All @@ -12438,11 +12448,12 @@ <h3>Usage and SDK Samples</h3>
$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
$projectOwner = projectOwner_example; // String |
$projectSlug = projectSlug_example; // String |
$labelContains = labelContains_example; // String |
$page = 56; // Integer |
$pageSize = 56; // Integer |

try {
$result = $api_instance->getSimulations($projectOwner, $projectSlug, $page, $pageSize);
$result = $api_instance->getSimulations($projectOwner, $projectSlug, $labelContains, $page, $pageSize);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DebugAndSimulationApi->getSimulations: ', $e->getMessage(), PHP_EOL;
Expand All @@ -12464,11 +12475,12 @@ <h3>Usage and SDK Samples</h3>
my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
my $projectOwner = projectOwner_example; # String |
my $projectSlug = projectSlug_example; # String |
my $labelContains = labelContains_example; # String |
my $page = 56; # Integer |
my $pageSize = 56; # Integer |

eval {
my $result = $api_instance->getSimulations(projectOwner => $projectOwner, projectSlug => $projectSlug, page => $page, pageSize => $pageSize);
my $result = $api_instance->getSimulations(projectOwner => $projectOwner, projectSlug => $projectSlug, labelContains => $labelContains, page => $page, pageSize => $pageSize);
print Dumper($result);
};
if ($@) {
Expand All @@ -12492,12 +12504,13 @@ <h3>Usage and SDK Samples</h3>
api_instance = openapi_client.DebugAndSimulationApi()
projectOwner = projectOwner_example # String | (optional) (default to null)
projectSlug = projectSlug_example # String | (optional) (default to null)
labelContains = labelContains_example # String | (optional) (default to null)
page = 56 # Integer | (optional) (default to null)
pageSize = 56 # Integer | (optional) (default to null)

try:
# Get existing transaction simulations
api_response = api_instance.get_simulations(projectOwner=projectOwner, projectSlug=projectSlug, page=page, pageSize=pageSize)
api_response = api_instance.get_simulations(projectOwner=projectOwner, projectSlug=projectSlug, labelContains=labelContains, page=page, pageSize=pageSize)
pprint(api_response)
except ApiException as e:
print("Exception when calling DebugAndSimulationApi->getSimulations: %s\n" % e)</code></pre>
Expand All @@ -12509,11 +12522,12 @@ <h3>Usage and SDK Samples</h3>
pub fn main() {
let projectOwner = projectOwner_example; // String
let projectSlug = projectSlug_example; // String
let labelContains = labelContains_example; // String
let page = 56; // Integer
let pageSize = 56; // Integer

let mut context = DebugAndSimulationApi::Context::default();
let result = client.getSimulations(projectOwner, projectSlug, page, pageSize, &context).wait();
let result = client.getSimulations(projectOwner, projectSlug, labelContains, page, pageSize, &context).wait();

println!("{:?}", result);
}
Expand Down Expand Up @@ -12570,6 +12584,23 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">labelContains</td>
<td>


<div id="d2e199_getSimulations_labelContains">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

</div>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">page</td>
Expand Down
9 changes: 9 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,12 @@
"required": false,
"type": "string"
},
{
"name": "labelContains",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "page",
"in": "query",
Expand Down Expand Up @@ -3726,6 +3732,9 @@
"originTxHash": {
"type": "string"
},
"label": {
"type": "string"
},
"stateOverrides": {
"type": "object",
"additionalProperties": {
Expand Down
5 changes: 5 additions & 0 deletions src/apis/DebugAndSimulationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface GetSimulationBundleRequest {
export interface GetSimulationsRequest {
projectOwner?: string;
projectSlug?: string;
labelContains?: string;
page?: number;
pageSize?: number;
}
Expand Down Expand Up @@ -286,6 +287,10 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
queryParameters['projectSlug'] = requestParameters['projectSlug'];
}

if (requestParameters['labelContains'] != null) {
queryParameters['labelContains'] = requestParameters['labelContains'];
}

if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
}
Expand Down
8 changes: 8 additions & 0 deletions src/models/SolidityServiceSimulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ export interface SolidityServiceSimulation {
* @memberof SolidityServiceSimulation
*/
originTxHash?: string;
/**
*
* @type {string}
* @memberof SolidityServiceSimulation
*/
label?: string;
/**
*
* @type {{ [key: string]: SolidityServiceStateOverride; }}
Expand Down Expand Up @@ -212,6 +218,7 @@ export function SolidityServiceSimulationFromJSONTyped(json: any, ignoreDiscrimi
'value': json['value'] == null ? undefined : json['value'],
'accessList': json['accessList'] == null ? undefined : ((json['accessList'] as Array<any>).map(EvmAccessListItemFromJSON)),
'originTxHash': json['originTxHash'] == null ? undefined : json['originTxHash'],
'label': json['label'] == null ? undefined : json['label'],
'stateOverrides': json['stateOverrides'] == null ? undefined : (mapValues(json['stateOverrides'], SolidityServiceStateOverrideFromJSON)),
'sourceOverrides': json['sourceOverrides'] == null ? undefined : json['sourceOverrides'],
'blockOverride': json['blockOverride'] == null ? undefined : SolidityServiceBlockOverridesFromJSON(json['blockOverride']),
Expand Down Expand Up @@ -243,6 +250,7 @@ export function SolidityServiceSimulationToJSON(value?: SolidityServiceSimulatio
'value': value['value'],
'accessList': value['accessList'] == null ? undefined : ((value['accessList'] as Array<any>).map(EvmAccessListItemToJSON)),
'originTxHash': value['originTxHash'],
'label': value['label'],
'stateOverrides': value['stateOverrides'] == null ? undefined : (mapValues(value['stateOverrides'], SolidityServiceStateOverrideToJSON)),
'sourceOverrides': value['sourceOverrides'],
'blockOverride': SolidityServiceBlockOverridesToJSON(value['blockOverride']),
Expand Down

0 comments on commit a6f899b

Please sign in to comment.