diff --git a/doc/index.html b/doc/index.html index 46567d2..2cff6d9 100755 --- a/doc/index.html +++ b/doc/index.html @@ -3967,11 +3967,12 @@ } }; defs["solidity_service.SolidityAPIService.SimulateTransactionBody"] = { - "required" : [ "chainSpec", "simulation" ], + "required" : [ "simulation" ], "type" : "object", "properties" : { "chainSpec" : { - "$ref" : "#/components/schemas/solidity_service_SolidityAPIService_SimulateTransactionBody_chainSpec" + "type" : "object", + "properties" : { } }, "simulation" : { "$ref" : "#/components/schemas/solidity_service.Simulation" @@ -3998,21 +3999,14 @@ } } } -}; - defs["solidity_service_SolidityAPIService_SimulateTransactionBody_chainSpec"] = { - "type" : "object", - "properties" : { - "forkId" : { - "type" : "string" - } - } }; defs["solidity_service.SolidityAPIService.SimulateTransactionBundleBody"] = { - "required" : [ "chainSpec", "simulations" ], + "required" : [ "simulations" ], "type" : "object", "properties" : { "chainSpec" : { - "$ref" : "#/components/schemas/solidity_service_SolidityAPIService_SimulateTransactionBody_chainSpec" + "type" : "object", + "properties" : { } }, "simulations" : { "type" : "array", @@ -4046,11 +4040,12 @@ } }; defs["solidity_service.SolidityAPIService.SimulateTransactionBundleByForkBody"] = { - "required" : [ "chainSpec", "simulations" ], + "required" : [ "simulations" ], "type" : "object", "properties" : { "chainSpec" : { - "$ref" : "#/components/schemas/solidity_service_SolidityAPIService_SimulateTransactionBundleByForkBody_chainSpec" + "type" : "object", + "properties" : { } }, "simulations" : { "type" : "array", @@ -4082,21 +4077,14 @@ "value" : "0xbe32c0faed7400" } ] } -}; - defs["solidity_service_SolidityAPIService_SimulateTransactionBundleByForkBody_chainSpec"] = { - "type" : "object", - "properties" : { - "chainId" : { - "type" : "string" - } - } }; defs["solidity_service.SolidityAPIService.SimulateTransactionByForkBody"] = { - "required" : [ "chainSpec", "simulation" ], + "required" : [ "simulation" ], "type" : "object", "properties" : { "chainSpec" : { - "$ref" : "#/components/schemas/solidity_service_SolidityAPIService_SimulateTransactionBundleByForkBody_chainSpec" + "type" : "object", + "properties" : { } }, "simulation" : { "$ref" : "#/components/schemas/solidity_service.Simulation" diff --git a/openapi.json b/openapi.json index 6fb907c..6f6b5f8 100644 --- a/openapi.json +++ b/openapi.json @@ -5524,19 +5524,13 @@ }, "properties": { "chainSpec": { - "type": "object", - "properties": { - "forkId": { - "type": "string" - } - } + "type": "object" }, "simulation": { "$ref": "#/definitions/solidity_service.Simulation" } }, "required": [ - "chainSpec", "simulation" ] }, @@ -5569,12 +5563,7 @@ }, "properties": { "chainSpec": { - "type": "object", - "properties": { - "forkId": { - "type": "string" - } - } + "type": "object" }, "simulations": { "type": "array", @@ -5586,7 +5575,6 @@ } }, "required": [ - "chainSpec", "simulations" ] }, @@ -5619,12 +5607,7 @@ }, "properties": { "chainSpec": { - "type": "object", - "properties": { - "chainId": { - "type": "string" - } - } + "type": "object" }, "simulations": { "type": "array", @@ -5636,7 +5619,6 @@ } }, "required": [ - "chainSpec", "simulations" ] }, @@ -5665,19 +5647,13 @@ }, "properties": { "chainSpec": { - "type": "object", - "properties": { - "chainId": { - "type": "string" - } - } + "type": "object" }, "simulation": { "$ref": "#/definitions/solidity_service.Simulation" } }, "required": [ - "chainSpec", "simulation" ] }, diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts index 4a02260..dca3813 100755 --- a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts @@ -13,13 +13,6 @@ */ import { mapValues } from '../runtime.js'; -import type { SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js'; -import { - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSONTyped, - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSONTyped, -} from './SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js'; import type { SolidityServiceSimulation } from './SolidityServiceSimulation.js'; import { SolidityServiceSimulationFromJSON, @@ -36,10 +29,10 @@ import { export interface SolidityServiceSolidityAPIServiceSimulateTransactionBody { /** * - * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec} + * @type {object} * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBody */ - chainSpec: SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec; + chainSpec?: object; /** * * @type {SolidityServiceSimulation} @@ -52,7 +45,6 @@ export interface SolidityServiceSolidityAPIServiceSimulateTransactionBody { * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBody interface. */ export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBody { - if (!('chainSpec' in value) || value['chainSpec'] === undefined) return false; if (!('simulation' in value) || value['simulation'] === undefined) return false; return true; } @@ -67,7 +59,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyFromJSON } return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSON(json['chainSpec']), + 'chainSpec': json['chainSpec'] == null ? undefined : json['chainSpec'], 'simulation': SolidityServiceSimulationFromJSON(json['simulation']), }; } @@ -83,7 +75,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyFromJSON return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSON(value['chainSpec']), + 'chainSpec': value['chainSpec'], 'simulation': SolidityServiceSimulationToJSON(value['simulation']), }; } diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts deleted file mode 100755 index 1abc842..0000000 --- a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Sentio API - * Sentio Open API for query data - * - * The version of the OpenAPI document: version not set - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime.js'; -/** - * - * @export - * @interface SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec - */ -export interface SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec { - /** - * - * @type {string} - * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec - */ - forkId?: string; -} - -/** - * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec interface. - */ -export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec { - return true; -} - -export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec { - return SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSONTyped(json, false); -} - -export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec { - if (json == null) { - return json; - } - return { - - 'forkId': json['forkId'] == null ? undefined : json['forkId'], - }; -} - - export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec { - return SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSONTyped(json, false); - } - - export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'forkId': value['forkId'], - }; -} - diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts index 9635035..86c6f02 100755 --- a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts @@ -13,13 +13,6 @@ */ import { mapValues } from '../runtime.js'; -import type { SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js'; -import { - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSONTyped, - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSONTyped, -} from './SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js'; import type { SolidityServiceSimulation } from './SolidityServiceSimulation.js'; import { SolidityServiceSimulationFromJSON, @@ -36,10 +29,10 @@ import { export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody { /** * - * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec} + * @type {object} * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody */ - chainSpec: SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec; + chainSpec?: object; /** * For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect. * @type {Array} @@ -52,7 +45,6 @@ export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody interface. */ export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody { - if (!('chainSpec' in value) || value['chainSpec'] === undefined) return false; if (!('simulations' in value) || value['simulations'] === undefined) return false; return true; } @@ -67,7 +59,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFr } return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecFromJSON(json['chainSpec']), + 'chainSpec': json['chainSpec'] == null ? undefined : json['chainSpec'], 'simulations': ((json['simulations'] as Array).map(SolidityServiceSimulationFromJSON)), }; } @@ -83,7 +75,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFr return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpecToJSON(value['chainSpec']), + 'chainSpec': value['chainSpec'], 'simulations': ((value['simulations'] as Array).map(SolidityServiceSimulationToJSON)), }; } diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts index bdd176b..3a14cb8 100755 --- a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts @@ -20,13 +20,6 @@ import { SolidityServiceSimulationToJSON, SolidityServiceSimulationToJSONTyped, } from './SolidityServiceSimulation.js'; -import type { SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; -import { - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped, - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped, -} from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; /** * @@ -36,10 +29,10 @@ import { export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody { /** * - * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec} + * @type {object} * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody */ - chainSpec: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec; + chainSpec?: object; /** * For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect. * @type {Array} @@ -52,7 +45,6 @@ export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByFor * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody interface. */ export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody { - if (!('chainSpec' in value) || value['chainSpec'] === undefined) return false; if (!('simulations' in value) || value['simulations'] === undefined) return false; return true; } @@ -67,7 +59,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByFork } return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json['chainSpec']), + 'chainSpec': json['chainSpec'] == null ? undefined : json['chainSpec'], 'simulations': ((json['simulations'] as Array).map(SolidityServiceSimulationFromJSON)), }; } @@ -83,7 +75,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByFork return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(value['chainSpec']), + 'chainSpec': value['chainSpec'], 'simulations': ((value['simulations'] as Array).map(SolidityServiceSimulationToJSON)), }; } diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts deleted file mode 100755 index ad9a85b..0000000 --- a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Sentio API - * Sentio Open API for query data - * - * The version of the OpenAPI document: version not set - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime.js'; -/** - * - * @export - * @interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec - */ -export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { - /** - * - * @type {string} - * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec - */ - chainId?: string; -} - -/** - * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec interface. - */ -export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { - return true; -} - -export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { - return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped(json, false); -} - -export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { - if (json == null) { - return json; - } - return { - - 'chainId': json['chainId'] == null ? undefined : json['chainId'], - }; -} - - export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { - return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped(json, false); - } - - export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainId': value['chainId'], - }; -} - diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts index 4c24f91..1f06840 100755 --- a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts @@ -20,13 +20,6 @@ import { SolidityServiceSimulationToJSON, SolidityServiceSimulationToJSONTyped, } from './SolidityServiceSimulation.js'; -import type { SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; -import { - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped, - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON, - SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped, -} from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; /** * @@ -36,10 +29,10 @@ import { export interface SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody { /** * - * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec} + * @type {object} * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody */ - chainSpec: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec; + chainSpec?: object; /** * * @type {SolidityServiceSimulation} @@ -52,7 +45,6 @@ export interface SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody interface. */ export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionByForkBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody { - if (!('chainSpec' in value) || value['chainSpec'] === undefined) return false; if (!('simulation' in value) || value['simulation'] === undefined) return false; return true; } @@ -67,7 +59,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFr } return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json['chainSpec']), + 'chainSpec': json['chainSpec'] == null ? undefined : json['chainSpec'], 'simulation': SolidityServiceSimulationFromJSON(json['simulation']), }; } @@ -83,7 +75,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFr return { - 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(value['chainSpec']), + 'chainSpec': value['chainSpec'], 'simulation': SolidityServiceSimulationToJSON(value['simulation']), }; } diff --git a/src/models/index.ts b/src/models/index.ts index 63dec8a..347c76a 100755 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -172,10 +172,8 @@ export * from './SolidityServiceSimulateTransactionResponse.js'; export * from './SolidityServiceSimulation.js'; export * from './SolidityServiceSimulationResult.js'; export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBody.js'; -export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js'; export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js'; export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js'; -export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; export * from './SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js'; export * from './SolidityServiceSourceFetcherType.js'; export * from './SolidityServiceSourceInfo.js';