Skip to content

Commit 672b9c3

Browse files
Regenerate code from specification file (#721)
Co-authored-by: Algorand Generation Bot <[email protected]>
1 parent 1078768 commit 672b9c3

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

src/main/java/com/algorand/algosdk/v2/client/model/SimulateRequest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public class SimulateRequest extends PathResponse {
4343
@JsonProperty("extra-opcode-budget")
4444
public Long extraOpcodeBudget;
4545

46+
/**
47+
* If true, signers for transactions that are missing signatures will be fixed
48+
* during evaluation.
49+
*/
50+
@JsonProperty("fix-signers")
51+
public Boolean fixSigners;
52+
4653
/**
4754
* If provided, specifies the round preceding the simulation. State changes through
4855
* this round will be used to run this simulation. Usually only the 4 most recent
@@ -70,6 +77,7 @@ public boolean equals(Object o) {
7077
if (!Objects.deepEquals(this.allowUnnamedResources, other.allowUnnamedResources)) return false;
7178
if (!Objects.deepEquals(this.execTraceConfig, other.execTraceConfig)) return false;
7279
if (!Objects.deepEquals(this.extraOpcodeBudget, other.extraOpcodeBudget)) return false;
80+
if (!Objects.deepEquals(this.fixSigners, other.fixSigners)) return false;
7381
if (!Objects.deepEquals(this.round, other.round)) return false;
7482
if (!Objects.deepEquals(this.txnGroups, other.txnGroups)) return false;
7583

src/main/java/com/algorand/algosdk/v2/client/model/SimulateTransactionResult.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package com.algorand.algosdk.v2.client.model;
22

3+
import java.security.NoSuchAlgorithmException;
34
import java.util.Objects;
45

6+
import com.algorand.algosdk.crypto.Address;
57
import com.algorand.algosdk.v2.client.common.PathResponse;
68
import com.fasterxml.jackson.annotation.JsonProperty;
79

@@ -24,6 +26,24 @@ public class SimulateTransactionResult extends PathResponse {
2426
@JsonProperty("exec-trace")
2527
public SimulationTransactionExecTrace execTrace;
2628

29+
/**
30+
* The account that needed to sign this transaction when no signature was provided
31+
* and the provided signer was incorrect.
32+
*/
33+
@JsonProperty("fixed-signer")
34+
public void fixedSigner(String fixedSigner) throws NoSuchAlgorithmException {
35+
this.fixedSigner = new Address(fixedSigner);
36+
}
37+
@JsonProperty("fixed-signer")
38+
public String fixedSigner() throws NoSuchAlgorithmException {
39+
if (this.fixedSigner != null) {
40+
return this.fixedSigner.encodeAsString();
41+
} else {
42+
return null;
43+
}
44+
}
45+
public Address fixedSigner;
46+
2747
/**
2848
* Budget used during execution of a logic sig transaction.
2949
*/
@@ -60,6 +80,7 @@ public boolean equals(Object o) {
6080
SimulateTransactionResult other = (SimulateTransactionResult) o;
6181
if (!Objects.deepEquals(this.appBudgetConsumed, other.appBudgetConsumed)) return false;
6282
if (!Objects.deepEquals(this.execTrace, other.execTrace)) return false;
83+
if (!Objects.deepEquals(this.fixedSigner, other.fixedSigner)) return false;
6384
if (!Objects.deepEquals(this.logicSigBudgetConsumed, other.logicSigBudgetConsumed)) return false;
6485
if (!Objects.deepEquals(this.txnResult, other.txnResult)) return false;
6586
if (!Objects.deepEquals(this.unnamedResourcesAccessed, other.unnamedResourcesAccessed)) return false;

src/main/java/com/algorand/algosdk/v2/client/model/SimulationEvalOverrides.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ public class SimulationEvalOverrides extends PathResponse {
3131
@JsonProperty("extra-opcode-budget")
3232
public Long extraOpcodeBudget;
3333

34+
/**
35+
* If true, signers for transactions that are missing signatures will be fixed
36+
* during evaluation.
37+
*/
38+
@JsonProperty("fix-signers")
39+
public Boolean fixSigners;
40+
3441
/**
3542
* The maximum log calls one can make during simulation
3643
*/
@@ -53,6 +60,7 @@ public boolean equals(Object o) {
5360
if (!Objects.deepEquals(this.allowEmptySignatures, other.allowEmptySignatures)) return false;
5461
if (!Objects.deepEquals(this.allowUnnamedResources, other.allowUnnamedResources)) return false;
5562
if (!Objects.deepEquals(this.extraOpcodeBudget, other.extraOpcodeBudget)) return false;
63+
if (!Objects.deepEquals(this.fixSigners, other.fixSigners)) return false;
5664
if (!Objects.deepEquals(this.maxLogCalls, other.maxLogCalls)) return false;
5765
if (!Objects.deepEquals(this.maxLogSize, other.maxLogSize)) return false;
5866

0 commit comments

Comments
 (0)