@@ -4284,6 +4284,12 @@ export class SimulateRequest extends BaseModel {
4284
4284
*/
4285
4285
public extraOpcodeBudget ?: number | bigint ;
4286
4286
4287
+ /**
4288
+ * If true, signers for transactions that are missing signatures will be fixed
4289
+ * during evaluation.
4290
+ */
4291
+ public fixSigners ?: boolean ;
4292
+
4287
4293
/**
4288
4294
* If provided, specifies the round preceding the simulation. State changes through
4289
4295
* this round will be used to run this simulation. Usually only the 4 most recent
@@ -4301,6 +4307,8 @@ export class SimulateRequest extends BaseModel {
4301
4307
* @param allowUnnamedResources - Allows access to unnamed resources during simulation.
4302
4308
* @param execTraceConfig - An object that configures simulation execution trace.
4303
4309
* @param extraOpcodeBudget - Applies extra opcode budget during simulation for each transaction group.
4310
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
4311
+ * during evaluation.
4304
4312
* @param round - If provided, specifies the round preceding the simulation. State changes through
4305
4313
* this round will be used to run this simulation. Usually only the 4 most recent
4306
4314
* rounds will be available (controlled by the node config value MaxAcctLookback).
@@ -4313,6 +4321,7 @@ export class SimulateRequest extends BaseModel {
4313
4321
allowUnnamedResources,
4314
4322
execTraceConfig,
4315
4323
extraOpcodeBudget,
4324
+ fixSigners,
4316
4325
round,
4317
4326
} : {
4318
4327
txnGroups : SimulateRequestTransactionGroup [ ] ;
@@ -4321,6 +4330,7 @@ export class SimulateRequest extends BaseModel {
4321
4330
allowUnnamedResources ?: boolean ;
4322
4331
execTraceConfig ?: SimulateTraceConfig ;
4323
4332
extraOpcodeBudget ?: number | bigint ;
4333
+ fixSigners ?: boolean ;
4324
4334
round ?: number | bigint ;
4325
4335
} ) {
4326
4336
super ( ) ;
@@ -4330,6 +4340,7 @@ export class SimulateRequest extends BaseModel {
4330
4340
this . allowUnnamedResources = allowUnnamedResources ;
4331
4341
this . execTraceConfig = execTraceConfig ;
4332
4342
this . extraOpcodeBudget = extraOpcodeBudget ;
4343
+ this . fixSigners = fixSigners ;
4333
4344
this . round = round ;
4334
4345
4335
4346
this . attribute_map = {
@@ -4339,6 +4350,7 @@ export class SimulateRequest extends BaseModel {
4339
4350
allowUnnamedResources : 'allow-unnamed-resources' ,
4340
4351
execTraceConfig : 'exec-trace-config' ,
4341
4352
extraOpcodeBudget : 'extra-opcode-budget' ,
4353
+ fixSigners : 'fix-signers' ,
4342
4354
round : 'round' ,
4343
4355
} ;
4344
4356
}
@@ -4362,6 +4374,7 @@ export class SimulateRequest extends BaseModel {
4362
4374
? SimulateTraceConfig . from_obj_for_encoding ( data [ 'exec-trace-config' ] )
4363
4375
: undefined ,
4364
4376
extraOpcodeBudget : data [ 'extra-opcode-budget' ] ,
4377
+ fixSigners : data [ 'fix-signers' ] ,
4365
4378
round : data [ 'round' ] ,
4366
4379
} ) ;
4367
4380
/* eslint-enable dot-notation */
@@ -4751,6 +4764,12 @@ export class SimulateTransactionResult extends BaseModel {
4751
4764
*/
4752
4765
public execTrace ?: SimulationTransactionExecTrace ;
4753
4766
4767
+ /**
4768
+ * The account that needed to sign this transaction when no signature was provided
4769
+ * and the provided signer was incorrect.
4770
+ */
4771
+ public fixedSigner ?: string ;
4772
+
4754
4773
/**
4755
4774
* Budget used during execution of a logic sig transaction.
4756
4775
*/
@@ -4777,6 +4796,8 @@ export class SimulateTransactionResult extends BaseModel {
4777
4796
* budged used by inner app calls spawned by this transaction.
4778
4797
* @param execTrace - The execution trace of calling an app or a logic sig, containing the inner app
4779
4798
* call trace in a recursive way.
4799
+ * @param fixedSigner - The account that needed to sign this transaction when no signature was provided
4800
+ * and the provided signer was incorrect.
4780
4801
* @param logicSigBudgetConsumed - Budget used during execution of a logic sig transaction.
4781
4802
* @param unnamedResourcesAccessed - These are resources that were accessed by this group that would normally have
4782
4803
* caused failure, but were allowed in simulation. Depending on where this object
@@ -4792,26 +4813,30 @@ export class SimulateTransactionResult extends BaseModel {
4792
4813
txnResult,
4793
4814
appBudgetConsumed,
4794
4815
execTrace,
4816
+ fixedSigner,
4795
4817
logicSigBudgetConsumed,
4796
4818
unnamedResourcesAccessed,
4797
4819
} : {
4798
4820
txnResult : PendingTransactionResponse ;
4799
4821
appBudgetConsumed ?: number | bigint ;
4800
4822
execTrace ?: SimulationTransactionExecTrace ;
4823
+ fixedSigner ?: string ;
4801
4824
logicSigBudgetConsumed ?: number | bigint ;
4802
4825
unnamedResourcesAccessed ?: SimulateUnnamedResourcesAccessed ;
4803
4826
} ) {
4804
4827
super ( ) ;
4805
4828
this . txnResult = txnResult ;
4806
4829
this . appBudgetConsumed = appBudgetConsumed ;
4807
4830
this . execTrace = execTrace ;
4831
+ this . fixedSigner = fixedSigner ;
4808
4832
this . logicSigBudgetConsumed = logicSigBudgetConsumed ;
4809
4833
this . unnamedResourcesAccessed = unnamedResourcesAccessed ;
4810
4834
4811
4835
this . attribute_map = {
4812
4836
txnResult : 'txn-result' ,
4813
4837
appBudgetConsumed : 'app-budget-consumed' ,
4814
4838
execTrace : 'exec-trace' ,
4839
+ fixedSigner : 'fixed-signer' ,
4815
4840
logicSigBudgetConsumed : 'logic-sig-budget-consumed' ,
4816
4841
unnamedResourcesAccessed : 'unnamed-resources-accessed' ,
4817
4842
} ;
@@ -4837,6 +4862,7 @@ export class SimulateTransactionResult extends BaseModel {
4837
4862
data [ 'exec-trace' ]
4838
4863
)
4839
4864
: undefined ,
4865
+ fixedSigner : data [ 'fixed-signer' ] ,
4840
4866
logicSigBudgetConsumed : data [ 'logic-sig-budget-consumed' ] ,
4841
4867
unnamedResourcesAccessed :
4842
4868
typeof data [ 'unnamed-resources-accessed' ] !== 'undefined'
@@ -5006,6 +5032,12 @@ export class SimulationEvalOverrides extends BaseModel {
5006
5032
*/
5007
5033
public extraOpcodeBudget ?: number | bigint ;
5008
5034
5035
+ /**
5036
+ * If true, signers for transactions that are missing signatures will be fixed
5037
+ * during evaluation.
5038
+ */
5039
+ public fixSigners ?: boolean ;
5040
+
5009
5041
/**
5010
5042
* The maximum log calls one can make during simulation
5011
5043
*/
@@ -5022,33 +5054,39 @@ export class SimulationEvalOverrides extends BaseModel {
5022
5054
* were properly signed.
5023
5055
* @param allowUnnamedResources - If true, allows access to unnamed resources during simulation.
5024
5056
* @param extraOpcodeBudget - The extra opcode budget added to each transaction group during simulation
5057
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
5058
+ * during evaluation.
5025
5059
* @param maxLogCalls - The maximum log calls one can make during simulation
5026
5060
* @param maxLogSize - The maximum byte number to log during simulation
5027
5061
*/
5028
5062
constructor ( {
5029
5063
allowEmptySignatures,
5030
5064
allowUnnamedResources,
5031
5065
extraOpcodeBudget,
5066
+ fixSigners,
5032
5067
maxLogCalls,
5033
5068
maxLogSize,
5034
5069
} : {
5035
5070
allowEmptySignatures ?: boolean ;
5036
5071
allowUnnamedResources ?: boolean ;
5037
5072
extraOpcodeBudget ?: number | bigint ;
5073
+ fixSigners ?: boolean ;
5038
5074
maxLogCalls ?: number | bigint ;
5039
5075
maxLogSize ?: number | bigint ;
5040
5076
} ) {
5041
5077
super ( ) ;
5042
5078
this . allowEmptySignatures = allowEmptySignatures ;
5043
5079
this . allowUnnamedResources = allowUnnamedResources ;
5044
5080
this . extraOpcodeBudget = extraOpcodeBudget ;
5081
+ this . fixSigners = fixSigners ;
5045
5082
this . maxLogCalls = maxLogCalls ;
5046
5083
this . maxLogSize = maxLogSize ;
5047
5084
5048
5085
this . attribute_map = {
5049
5086
allowEmptySignatures : 'allow-empty-signatures' ,
5050
5087
allowUnnamedResources : 'allow-unnamed-resources' ,
5051
5088
extraOpcodeBudget : 'extra-opcode-budget' ,
5089
+ fixSigners : 'fix-signers' ,
5052
5090
maxLogCalls : 'max-log-calls' ,
5053
5091
maxLogSize : 'max-log-size' ,
5054
5092
} ;
@@ -5063,6 +5101,7 @@ export class SimulationEvalOverrides extends BaseModel {
5063
5101
allowEmptySignatures : data [ 'allow-empty-signatures' ] ,
5064
5102
allowUnnamedResources : data [ 'allow-unnamed-resources' ] ,
5065
5103
extraOpcodeBudget : data [ 'extra-opcode-budget' ] ,
5104
+ fixSigners : data [ 'fix-signers' ] ,
5066
5105
maxLogCalls : data [ 'max-log-calls' ] ,
5067
5106
maxLogSize : data [ 'max-log-size' ] ,
5068
5107
} ) ;
0 commit comments