Skip to content

Commit 5517c4f

Browse files
author
Sentio Bot
committed
chore: update
1 parent 3195a6e commit 5517c4f

File tree

4 files changed

+35
-44
lines changed

4 files changed

+35
-44
lines changed

doc/index.html

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3686,11 +3686,11 @@
36863686
}
36873687
};
36883688
defs["solidity_service.TxIdentifier"] = {
3689-
"required" : [ "txHash" ],
36903689
"type" : "object",
36913690
"properties" : {
36923691
"txHash" : {
3693-
"type" : "string"
3692+
"type" : "string",
3693+
"description" : "One of txHash, simulationId, bundleId is required."
36943694
},
36953695
"simulationId" : {
36963696
"type" : "string"
@@ -10684,17 +10684,17 @@ <h3>Usage and SDK Samples</h3>
1068410684
// Create an instance of the API class
1068510685
DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
1068610686
String networkId = networkId_example; // String |
10687-
String txIdPeriodtxHash = txIdPeriodtxHash_example; // String |
1068810687
String projectOwner = projectOwner_example; // String |
1068910688
String projectSlug = projectSlug_example; // String |
10689+
String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required.
1069010690
String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String |
1069110691
String txIdPeriodbundleId = txIdPeriodbundleId_example; // String |
1069210692
Boolean disableOptimizer = true; // Boolean |
1069310693
Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
1069410694
Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true
1069510695

1069610696
try {
10697-
google.api.HttpBody result = apiInstance.getCallTrace(networkId, txIdPeriodtxHash, projectOwner, projectSlug, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
10697+
google.api.HttpBody result = apiInstance.getCallTrace(networkId, projectOwner, projectSlug, txIdPeriodtxHash, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
1069810698
System.out.println(result);
1069910699
} catch (ApiException e) {
1070010700
System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace");
@@ -10711,17 +10711,17 @@ <h3>Usage and SDK Samples</h3>
1071110711
final api_instance = DefaultApi();
1071210712

1071310713
final String networkId = new String(); // String |
10714-
final String txIdPeriodtxHash = new String(); // String |
1071510714
final String projectOwner = new String(); // String |
1071610715
final String projectSlug = new String(); // String |
10716+
final String txIdPeriodtxHash = new String(); // String | One of txHash, simulationId, bundleId is required.
1071710717
final String txIdPeriodsimulationId = new String(); // String |
1071810718
final String txIdPeriodbundleId = new String(); // String |
1071910719
final Boolean disableOptimizer = new Boolean(); // Boolean |
1072010720
final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
1072110721
final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true
1072210722

1072310723
try {
10724-
final result = await api_instance.getCallTrace(networkId, txIdPeriodtxHash, projectOwner, projectSlug, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
10724+
final result = await api_instance.getCallTrace(networkId, projectOwner, projectSlug, txIdPeriodtxHash, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
1072510725
print(result);
1072610726
} catch (e) {
1072710727
print('Exception when calling DefaultApi->getCallTrace: $e\n');
@@ -10737,17 +10737,17 @@ <h3>Usage and SDK Samples</h3>
1073710737
public static void main(String[] args) {
1073810738
DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
1073910739
String networkId = networkId_example; // String |
10740-
String txIdPeriodtxHash = txIdPeriodtxHash_example; // String |
1074110740
String projectOwner = projectOwner_example; // String |
1074210741
String projectSlug = projectSlug_example; // String |
10742+
String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required.
1074310743
String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String |
1074410744
String txIdPeriodbundleId = txIdPeriodbundleId_example; // String |
1074510745
Boolean disableOptimizer = true; // Boolean |
1074610746
Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
1074710747
Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true
1074810748

1074910749
try {
10750-
google.api.HttpBody result = apiInstance.getCallTrace(networkId, txIdPeriodtxHash, projectOwner, projectSlug, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
10750+
google.api.HttpBody result = apiInstance.getCallTrace(networkId, projectOwner, projectSlug, txIdPeriodtxHash, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
1075110751
System.out.println(result);
1075210752
} catch (ApiException e) {
1075310753
System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace");
@@ -10772,9 +10772,9 @@ <h3>Usage and SDK Samples</h3>
1077210772
// Create an instance of the API class
1077310773
DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
1077410774
String *networkId = networkId_example; // (default to null)
10775-
String *txIdPeriodtxHash = txIdPeriodtxHash_example; // (default to null)
1077610775
String *projectOwner = projectOwner_example; // (optional) (default to null)
1077710776
String *projectSlug = projectSlug_example; // (optional) (default to null)
10777+
String *txIdPeriodtxHash = txIdPeriodtxHash_example; // One of txHash, simulationId, bundleId is required. (optional) (default to null)
1077810778
String *txIdPeriodsimulationId = txIdPeriodsimulationId_example; // (optional) (default to null)
1077910779
String *txIdPeriodbundleId = txIdPeriodbundleId_example; // (optional) (default to null)
1078010780
Boolean *disableOptimizer = true; // (optional) (default to null)
@@ -10783,9 +10783,9 @@ <h3>Usage and SDK Samples</h3>
1078310783

1078410784
// Get indexed call trace
1078510785
[apiInstance getCallTraceWith:networkId
10786-
txIdPeriodtxHash:txIdPeriodtxHash
1078710786
projectOwner:projectOwner
1078810787
projectSlug:projectSlug
10788+
txIdPeriodtxHash:txIdPeriodtxHash
1078910789
txIdPeriodsimulationId:txIdPeriodsimulationId
1079010790
txIdPeriodbundleId:txIdPeriodbundleId
1079110791
disableOptimizer:disableOptimizer
@@ -10815,10 +10815,10 @@ <h3>Usage and SDK Samples</h3>
1081510815
// Create an instance of the API class
1081610816
var api = new SentioApi.DebugAndSimulationApi()
1081710817
var networkId = networkId_example; // {String}
10818-
var txIdPeriodtxHash = txIdPeriodtxHash_example; // {String}
1081910818
var opts = {
1082010819
'projectOwner': projectOwner_example, // {String}
1082110820
'projectSlug': projectSlug_example, // {String}
10821+
'txIdPeriodtxHash': txIdPeriodtxHash_example, // {String} One of txHash, simulationId, bundleId is required.
1082210822
'txIdPeriodsimulationId': txIdPeriodsimulationId_example, // {String}
1082310823
'txIdPeriodbundleId': txIdPeriodbundleId_example, // {String}
1082410824
'disableOptimizer': true, // {Boolean}
@@ -10833,7 +10833,7 @@ <h3>Usage and SDK Samples</h3>
1083310833
console.log('API called successfully. Returned data: ' + data);
1083410834
}
1083510835
};
10836-
api.getCallTrace(networkId, txIdPeriodtxHash, opts, callback);
10836+
api.getCallTrace(networkId, opts, callback);
1083710837
</code></pre>
1083810838
</div>
1083910839

@@ -10861,9 +10861,9 @@ <h3>Usage and SDK Samples</h3>
1086110861
// Create an instance of the API class
1086210862
var apiInstance = new DebugAndSimulationApi();
1086310863
var networkId = networkId_example; // String | (default to null)
10864-
var txIdPeriodtxHash = txIdPeriodtxHash_example; // String | (default to null)
1086510864
var projectOwner = projectOwner_example; // String | (optional) (default to null)
1086610865
var projectSlug = projectSlug_example; // String | (optional) (default to null)
10866+
var txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. (optional) (default to null)
1086710867
var txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | (optional) (default to null)
1086810868
var txIdPeriodbundleId = txIdPeriodbundleId_example; // String | (optional) (default to null)
1086910869
var disableOptimizer = true; // Boolean | (optional) (default to null)
@@ -10872,7 +10872,7 @@ <h3>Usage and SDK Samples</h3>
1087210872

1087310873
try {
1087410874
// Get indexed call trace
10875-
google.api.HttpBody result = apiInstance.getCallTrace(networkId, txIdPeriodtxHash, projectOwner, projectSlug, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
10875+
google.api.HttpBody result = apiInstance.getCallTrace(networkId, projectOwner, projectSlug, txIdPeriodtxHash, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost);
1087610876
Debug.WriteLine(result);
1087710877
} catch (Exception e) {
1087810878
Debug.Print("Exception when calling DebugAndSimulationApi.getCallTrace: " + e.Message );
@@ -10895,17 +10895,17 @@ <h3>Usage and SDK Samples</h3>
1089510895
// Create an instance of the API class
1089610896
$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
1089710897
$networkId = networkId_example; // String |
10898-
$txIdPeriodtxHash = txIdPeriodtxHash_example; // String |
1089910898
$projectOwner = projectOwner_example; // String |
1090010899
$projectSlug = projectSlug_example; // String |
10900+
$txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required.
1090110901
$txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String |
1090210902
$txIdPeriodbundleId = txIdPeriodbundleId_example; // String |
1090310903
$disableOptimizer = true; // Boolean |
1090410904
$withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
1090510905
$ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true
1090610906

1090710907
try {
10908-
$result = $api_instance->getCallTrace($networkId, $txIdPeriodtxHash, $projectOwner, $projectSlug, $txIdPeriodsimulationId, $txIdPeriodbundleId, $disableOptimizer, $withInternalCalls, $ignoreGasCost);
10908+
$result = $api_instance->getCallTrace($networkId, $projectOwner, $projectSlug, $txIdPeriodtxHash, $txIdPeriodsimulationId, $txIdPeriodbundleId, $disableOptimizer, $withInternalCalls, $ignoreGasCost);
1090910909
print_r($result);
1091010910
} catch (Exception $e) {
1091110911
echo 'Exception when calling DebugAndSimulationApi->getCallTrace: ', $e->getMessage(), PHP_EOL;
@@ -10926,17 +10926,17 @@ <h3>Usage and SDK Samples</h3>
1092610926
# Create an instance of the API class
1092710927
my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
1092810928
my $networkId = networkId_example; # String |
10929-
my $txIdPeriodtxHash = txIdPeriodtxHash_example; # String |
1093010929
my $projectOwner = projectOwner_example; # String |
1093110930
my $projectSlug = projectSlug_example; # String |
10931+
my $txIdPeriodtxHash = txIdPeriodtxHash_example; # String | One of txHash, simulationId, bundleId is required.
1093210932
my $txIdPeriodsimulationId = txIdPeriodsimulationId_example; # String |
1093310933
my $txIdPeriodbundleId = txIdPeriodbundleId_example; # String |
1093410934
my $disableOptimizer = true; # Boolean |
1093510935
my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
1093610936
my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true
1093710937

1093810938
eval {
10939-
my $result = $api_instance->getCallTrace(networkId => $networkId, txIdPeriodtxHash => $txIdPeriodtxHash, projectOwner => $projectOwner, projectSlug => $projectSlug, txIdPeriodsimulationId => $txIdPeriodsimulationId, txIdPeriodbundleId => $txIdPeriodbundleId, disableOptimizer => $disableOptimizer, withInternalCalls => $withInternalCalls, ignoreGasCost => $ignoreGasCost);
10939+
my $result = $api_instance->getCallTrace(networkId => $networkId, projectOwner => $projectOwner, projectSlug => $projectSlug, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodsimulationId => $txIdPeriodsimulationId, txIdPeriodbundleId => $txIdPeriodbundleId, disableOptimizer => $disableOptimizer, withInternalCalls => $withInternalCalls, ignoreGasCost => $ignoreGasCost);
1094010940
print Dumper($result);
1094110941
};
1094210942
if ($@) {
@@ -10959,9 +10959,9 @@ <h3>Usage and SDK Samples</h3>
1095910959
# Create an instance of the API class
1096010960
api_instance = openapi_client.DebugAndSimulationApi()
1096110961
networkId = networkId_example # String | (default to null)
10962-
txIdPeriodtxHash = txIdPeriodtxHash_example # String | (default to null)
1096310962
projectOwner = projectOwner_example # String | (optional) (default to null)
1096410963
projectSlug = projectSlug_example # String | (optional) (default to null)
10964+
txIdPeriodtxHash = txIdPeriodtxHash_example # String | One of txHash, simulationId, bundleId is required. (optional) (default to null)
1096510965
txIdPeriodsimulationId = txIdPeriodsimulationId_example # String | (optional) (default to null)
1096610966
txIdPeriodbundleId = txIdPeriodbundleId_example # String | (optional) (default to null)
1096710967
disableOptimizer = true # Boolean | (optional) (default to null)
@@ -10970,7 +10970,7 @@ <h3>Usage and SDK Samples</h3>
1097010970

1097110971
try:
1097210972
# Get indexed call trace
10973-
api_response = api_instance.get_call_trace(networkId, txIdPeriodtxHash, projectOwner=projectOwner, projectSlug=projectSlug, txIdPeriodsimulationId=txIdPeriodsimulationId, txIdPeriodbundleId=txIdPeriodbundleId, disableOptimizer=disableOptimizer, withInternalCalls=withInternalCalls, ignoreGasCost=ignoreGasCost)
10973+
api_response = api_instance.get_call_trace(networkId, projectOwner=projectOwner, projectSlug=projectSlug, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodsimulationId=txIdPeriodsimulationId, txIdPeriodbundleId=txIdPeriodbundleId, disableOptimizer=disableOptimizer, withInternalCalls=withInternalCalls, ignoreGasCost=ignoreGasCost)
1097410974
pprint(api_response)
1097510975
except ApiException as e:
1097610976
print("Exception when calling DebugAndSimulationApi->getCallTrace: %s\n" % e)</code></pre>
@@ -10981,17 +10981,17 @@ <h3>Usage and SDK Samples</h3>
1098110981

1098210982
pub fn main() {
1098310983
let networkId = networkId_example; // String
10984-
let txIdPeriodtxHash = txIdPeriodtxHash_example; // String
1098510984
let projectOwner = projectOwner_example; // String
1098610985
let projectSlug = projectSlug_example; // String
10986+
let txIdPeriodtxHash = txIdPeriodtxHash_example; // String
1098710987
let txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String
1098810988
let txIdPeriodbundleId = txIdPeriodbundleId_example; // String
1098910989
let disableOptimizer = true; // Boolean
1099010990
let withInternalCalls = true; // Boolean
1099110991
let ignoreGasCost = true; // Boolean
1099210992

1099310993
let mut context = DebugAndSimulationApi::Context::default();
10994-
let result = client.getCallTrace(networkId, txIdPeriodtxHash, projectOwner, projectSlug, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost, &context).wait();
10994+
let result = client.getCallTrace(networkId, projectOwner, projectSlug, txIdPeriodtxHash, txIdPeriodsimulationId, txIdPeriodbundleId, disableOptimizer, withInternalCalls, ignoreGasCost, &context).wait();
1099510995

1099610996
println!("{:?}", result);
1099710997
}
@@ -11070,7 +11070,7 @@ <h2>Parameters</h2>
1107011070
</td>
1107111071
</tr>
1107211072

11073-
<tr><td style="width:150px;">txId.txHash*</td>
11073+
<tr><td style="width:150px;">txId.txHash</td>
1107411074
<td>
1107511075

1107611076

@@ -11081,10 +11081,10 @@ <h2>Parameters</h2>
1108111081
String
1108211082
</span>
1108311083

11084+
<div class="inner description marked">
11085+
One of txHash, simulationId, bundleId is required.
11086+
</div>
1108411087
</div>
11085-
<div class="inner required">
11086-
Required
11087-
</div>
1108811088
</div>
1108911089
</div>
1109011090
</td>

openapi.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,9 @@
634634
},
635635
{
636636
"name": "txId.txHash",
637+
"description": "One of txHash, simulationId, bundleId is required.",
637638
"in": "query",
638-
"required": true,
639+
"required": false,
639640
"type": "string"
640641
},
641642
{
@@ -3861,18 +3862,16 @@
38613862
"type": "object",
38623863
"properties": {
38633864
"txHash": {
3864-
"type": "string"
3865+
"type": "string",
3866+
"description": "One of txHash, simulationId, bundleId is required."
38653867
},
38663868
"simulationId": {
38673869
"type": "string"
38683870
},
38693871
"bundleId": {
38703872
"type": "string"
38713873
}
3872-
},
3873-
"required": [
3874-
"txHash"
3875-
]
3874+
}
38763875
},
38773876
"txindex.EvmRawTransaction": {
38783877
"type": "object",

src/apis/DebugAndSimulationApi.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ import {
4848

4949
export interface GetCallTraceRequest {
5050
networkId: string;
51-
txIdTxHash: string;
5251
projectOwner?: string;
5352
projectSlug?: string;
53+
txIdTxHash?: string;
5454
txIdSimulationId?: string;
5555
txIdBundleId?: string;
5656
disableOptimizer?: boolean;
@@ -119,13 +119,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
119119
);
120120
}
121121

122-
if (requestParameters['txIdTxHash'] == null) {
123-
throw new runtime.RequiredError(
124-
'txIdTxHash',
125-
'Required parameter "txIdTxHash" was null or undefined when calling getCallTrace().'
126-
);
127-
}
128-
129122
const queryParameters: any = {};
130123

131124
if (requestParameters['projectOwner'] != null) {

src/models/SolidityServiceTxIdentifier.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime.js';
2020
*/
2121
export interface SolidityServiceTxIdentifier {
2222
/**
23-
*
23+
* One of txHash, simulationId, bundleId is required.
2424
* @type {string}
2525
* @memberof SolidityServiceTxIdentifier
2626
*/
27-
txHash: string;
27+
txHash?: string;
2828
/**
2929
*
3030
* @type {string}
@@ -43,7 +43,6 @@ export interface SolidityServiceTxIdentifier {
4343
* Check if a given object implements the SolidityServiceTxIdentifier interface.
4444
*/
4545
export function instanceOfSolidityServiceTxIdentifier(value: object): boolean {
46-
if (!('txHash' in value)) return false;
4746
return true;
4847
}
4948

@@ -57,7 +56,7 @@ export function SolidityServiceTxIdentifierFromJSONTyped(json: any, ignoreDiscri
5756
}
5857
return {
5958

60-
'txHash': json['txHash'],
59+
'txHash': json['txHash'] == null ? undefined : json['txHash'],
6160
'simulationId': json['simulationId'] == null ? undefined : json['simulationId'],
6261
'bundleId': json['bundleId'] == null ? undefined : json['bundleId'],
6362
};

0 commit comments

Comments
 (0)