Skip to content

Commit ad873ad

Browse files
authored
Update algod models (#880)
1 parent 7f2e734 commit ad873ad

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/client/v2/algod/models/types.ts

+39
Original file line numberDiff line numberDiff line change
@@ -4284,6 +4284,12 @@ export class SimulateRequest extends BaseModel {
42844284
*/
42854285
public extraOpcodeBudget?: number | bigint;
42864286

4287+
/**
4288+
* If true, signers for transactions that are missing signatures will be fixed
4289+
* during evaluation.
4290+
*/
4291+
public fixSigners?: boolean;
4292+
42874293
/**
42884294
* If provided, specifies the round preceding the simulation. State changes through
42894295
* this round will be used to run this simulation. Usually only the 4 most recent
@@ -4301,6 +4307,8 @@ export class SimulateRequest extends BaseModel {
43014307
* @param allowUnnamedResources - Allows access to unnamed resources during simulation.
43024308
* @param execTraceConfig - An object that configures simulation execution trace.
43034309
* @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.
43044312
* @param round - If provided, specifies the round preceding the simulation. State changes through
43054313
* this round will be used to run this simulation. Usually only the 4 most recent
43064314
* rounds will be available (controlled by the node config value MaxAcctLookback).
@@ -4313,6 +4321,7 @@ export class SimulateRequest extends BaseModel {
43134321
allowUnnamedResources,
43144322
execTraceConfig,
43154323
extraOpcodeBudget,
4324+
fixSigners,
43164325
round,
43174326
}: {
43184327
txnGroups: SimulateRequestTransactionGroup[];
@@ -4321,6 +4330,7 @@ export class SimulateRequest extends BaseModel {
43214330
allowUnnamedResources?: boolean;
43224331
execTraceConfig?: SimulateTraceConfig;
43234332
extraOpcodeBudget?: number | bigint;
4333+
fixSigners?: boolean;
43244334
round?: number | bigint;
43254335
}) {
43264336
super();
@@ -4330,6 +4340,7 @@ export class SimulateRequest extends BaseModel {
43304340
this.allowUnnamedResources = allowUnnamedResources;
43314341
this.execTraceConfig = execTraceConfig;
43324342
this.extraOpcodeBudget = extraOpcodeBudget;
4343+
this.fixSigners = fixSigners;
43334344
this.round = round;
43344345

43354346
this.attribute_map = {
@@ -4339,6 +4350,7 @@ export class SimulateRequest extends BaseModel {
43394350
allowUnnamedResources: 'allow-unnamed-resources',
43404351
execTraceConfig: 'exec-trace-config',
43414352
extraOpcodeBudget: 'extra-opcode-budget',
4353+
fixSigners: 'fix-signers',
43424354
round: 'round',
43434355
};
43444356
}
@@ -4362,6 +4374,7 @@ export class SimulateRequest extends BaseModel {
43624374
? SimulateTraceConfig.from_obj_for_encoding(data['exec-trace-config'])
43634375
: undefined,
43644376
extraOpcodeBudget: data['extra-opcode-budget'],
4377+
fixSigners: data['fix-signers'],
43654378
round: data['round'],
43664379
});
43674380
/* eslint-enable dot-notation */
@@ -4751,6 +4764,12 @@ export class SimulateTransactionResult extends BaseModel {
47514764
*/
47524765
public execTrace?: SimulationTransactionExecTrace;
47534766

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+
47544773
/**
47554774
* Budget used during execution of a logic sig transaction.
47564775
*/
@@ -4777,6 +4796,8 @@ export class SimulateTransactionResult extends BaseModel {
47774796
* budged used by inner app calls spawned by this transaction.
47784797
* @param execTrace - The execution trace of calling an app or a logic sig, containing the inner app
47794798
* 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.
47804801
* @param logicSigBudgetConsumed - Budget used during execution of a logic sig transaction.
47814802
* @param unnamedResourcesAccessed - These are resources that were accessed by this group that would normally have
47824803
* caused failure, but were allowed in simulation. Depending on where this object
@@ -4792,26 +4813,30 @@ export class SimulateTransactionResult extends BaseModel {
47924813
txnResult,
47934814
appBudgetConsumed,
47944815
execTrace,
4816+
fixedSigner,
47954817
logicSigBudgetConsumed,
47964818
unnamedResourcesAccessed,
47974819
}: {
47984820
txnResult: PendingTransactionResponse;
47994821
appBudgetConsumed?: number | bigint;
48004822
execTrace?: SimulationTransactionExecTrace;
4823+
fixedSigner?: string;
48014824
logicSigBudgetConsumed?: number | bigint;
48024825
unnamedResourcesAccessed?: SimulateUnnamedResourcesAccessed;
48034826
}) {
48044827
super();
48054828
this.txnResult = txnResult;
48064829
this.appBudgetConsumed = appBudgetConsumed;
48074830
this.execTrace = execTrace;
4831+
this.fixedSigner = fixedSigner;
48084832
this.logicSigBudgetConsumed = logicSigBudgetConsumed;
48094833
this.unnamedResourcesAccessed = unnamedResourcesAccessed;
48104834

48114835
this.attribute_map = {
48124836
txnResult: 'txn-result',
48134837
appBudgetConsumed: 'app-budget-consumed',
48144838
execTrace: 'exec-trace',
4839+
fixedSigner: 'fixed-signer',
48154840
logicSigBudgetConsumed: 'logic-sig-budget-consumed',
48164841
unnamedResourcesAccessed: 'unnamed-resources-accessed',
48174842
};
@@ -4837,6 +4862,7 @@ export class SimulateTransactionResult extends BaseModel {
48374862
data['exec-trace']
48384863
)
48394864
: undefined,
4865+
fixedSigner: data['fixed-signer'],
48404866
logicSigBudgetConsumed: data['logic-sig-budget-consumed'],
48414867
unnamedResourcesAccessed:
48424868
typeof data['unnamed-resources-accessed'] !== 'undefined'
@@ -5006,6 +5032,12 @@ export class SimulationEvalOverrides extends BaseModel {
50065032
*/
50075033
public extraOpcodeBudget?: number | bigint;
50085034

5035+
/**
5036+
* If true, signers for transactions that are missing signatures will be fixed
5037+
* during evaluation.
5038+
*/
5039+
public fixSigners?: boolean;
5040+
50095041
/**
50105042
* The maximum log calls one can make during simulation
50115043
*/
@@ -5022,33 +5054,39 @@ export class SimulationEvalOverrides extends BaseModel {
50225054
* were properly signed.
50235055
* @param allowUnnamedResources - If true, allows access to unnamed resources during simulation.
50245056
* @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.
50255059
* @param maxLogCalls - The maximum log calls one can make during simulation
50265060
* @param maxLogSize - The maximum byte number to log during simulation
50275061
*/
50285062
constructor({
50295063
allowEmptySignatures,
50305064
allowUnnamedResources,
50315065
extraOpcodeBudget,
5066+
fixSigners,
50325067
maxLogCalls,
50335068
maxLogSize,
50345069
}: {
50355070
allowEmptySignatures?: boolean;
50365071
allowUnnamedResources?: boolean;
50375072
extraOpcodeBudget?: number | bigint;
5073+
fixSigners?: boolean;
50385074
maxLogCalls?: number | bigint;
50395075
maxLogSize?: number | bigint;
50405076
}) {
50415077
super();
50425078
this.allowEmptySignatures = allowEmptySignatures;
50435079
this.allowUnnamedResources = allowUnnamedResources;
50445080
this.extraOpcodeBudget = extraOpcodeBudget;
5081+
this.fixSigners = fixSigners;
50455082
this.maxLogCalls = maxLogCalls;
50465083
this.maxLogSize = maxLogSize;
50475084

50485085
this.attribute_map = {
50495086
allowEmptySignatures: 'allow-empty-signatures',
50505087
allowUnnamedResources: 'allow-unnamed-resources',
50515088
extraOpcodeBudget: 'extra-opcode-budget',
5089+
fixSigners: 'fix-signers',
50525090
maxLogCalls: 'max-log-calls',
50535091
maxLogSize: 'max-log-size',
50545092
};
@@ -5063,6 +5101,7 @@ export class SimulationEvalOverrides extends BaseModel {
50635101
allowEmptySignatures: data['allow-empty-signatures'],
50645102
allowUnnamedResources: data['allow-unnamed-resources'],
50655103
extraOpcodeBudget: data['extra-opcode-budget'],
5104+
fixSigners: data['fix-signers'],
50665105
maxLogCalls: data['max-log-calls'],
50675106
maxLogSize: data['max-log-size'],
50685107
});

0 commit comments

Comments
 (0)