Skip to content

Regenerate code with the latest specification file (15a7b6e3) #834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class AccountApplicationInformation extends Query {
private Long applicationId;

/**
* @param address An account public key
* @param applicationId An application identifier
* @param address An account public key.
* @param applicationId An application identifier.
*/
public AccountApplicationInformation(Client client, Address address, Long applicationId) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class AccountAssetInformation extends Query {
private Long assetId;

/**
* @param address An account public key
* @param assetId An asset identifier
* @param address An account public key.
* @param assetId An asset identifier.
*/
public AccountAssetInformation(Client client, Address address, Long assetId) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class AccountInformation extends Query {
private Address address;

/**
* @param address An account public key
* @param address An account public key.
*/
public AccountInformation(Client client, Address address) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class GetApplicationBoxByName extends Query {
private Long applicationId;

/**
* @param applicationId An application identifier
* @param applicationId An application identifier.
*/
public GetApplicationBoxByName(Client client, Long applicationId) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class GetApplicationBoxes extends Query {
private Long applicationId;

/**
* @param applicationId An application identifier
* @param applicationId An application identifier.
*/
public GetApplicationBoxes(Client client, Long applicationId) {
super(client, new HttpMethod("get"));
Expand All @@ -30,7 +30,7 @@ public GetApplicationBoxes(Client client, Long applicationId) {
* Max number of box names to return. If max is not set, or max == 0, returns all
* box-names.
*/
public GetApplicationBoxes max(Long max) {
public GetApplicationBoxes max(java.math.BigInteger max) {
addQuery("max", String.valueOf(max));
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class GetApplicationByID extends Query {
private Long applicationId;

/**
* @param applicationId An application identifier
* @param applicationId An application identifier.
*/
public GetApplicationByID(Client client, Long applicationId) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class GetAssetByID extends Query {
private Long assetId;

/**
* @param assetId An asset identifier
* @param assetId An asset identifier.
*/
public GetAssetByID(Client client, Long assetId) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetBlock extends Query {
private Long round;

/**
* @param round The round from which to fetch block information.
* @param round A round number.
*/
public GetBlock(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetBlockHash extends Query {
private Long round;

/**
* @param round The round from which to fetch block hash information.
* @param round A round number.
*/
public GetBlockHash(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetBlockLogs extends Query {
private Long round;

/**
* @param round The round from which to fetch block log information.
* @param round A round number.
*/
public GetBlockLogs(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetBlockTxids extends Query {
private Long round;

/**
* @param round The round from which to fetch block transaction IDs.
* @param round A round number.
*/
public GetBlockTxids(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetLedgerStateDelta extends Query {
private Long round;

/**
* @param round The round for which the deltas are desired.
* @param round A round number.
*/
public GetLedgerStateDelta(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetLightBlockHeaderProof extends Query {
private Long round;

/**
* @param round The round to which the light block header belongs.
* @param round A round number.
*/
public GetLightBlockHeaderProof(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class GetPendingTransactionsByAddress extends Query {
private Address address;

/**
* @param address An account public key
* @param address An account public key.
*/
public GetPendingTransactionsByAddress(Client client, Address address) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetStateProof extends Query {
private Long round;

/**
* @param round The round for which a state proof is desired.
* @param round A round number.
*/
public GetStateProof(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetTransactionGroupLedgerStateDeltasForRound extends Query {
private Long round;

/**
* @param round The round for which the deltas are desired.
* @param round A round number.
*/
public GetTransactionGroupLedgerStateDeltasForRound(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.algorand.algosdk.v2.client.common.QueryData;
import com.algorand.algosdk.v2.client.common.Response;
import com.algorand.algosdk.v2.client.model.Enums;
import com.algorand.algosdk.v2.client.model.TransactionProofResponse;
import com.algorand.algosdk.v2.client.model.TransactionProof;


/**
Expand All @@ -19,7 +19,7 @@ public class GetTransactionProof extends Query {
private String txid;

/**
* @param round The round in which the transaction appears.
* @param round A round number.
* @param txid The transaction ID for which to generate a proof.
*/
public GetTransactionProof(Client client, Long round, String txid) {
Expand All @@ -45,9 +45,9 @@ public GetTransactionProof hashtype(Enums.Hashtype hashtype) {
* @throws Exception
*/
@Override
public Response<TransactionProofResponse> execute() throws Exception {
Response<TransactionProofResponse> resp = baseExecute();
resp.setValueType(TransactionProofResponse.class);
public Response<TransactionProof> execute() throws Exception {
Response<TransactionProof> resp = baseExecute();
resp.setValueType(TransactionProof.class);
return resp;
}

Expand All @@ -60,9 +60,9 @@ public Response<TransactionProofResponse> execute() throws Exception {
* @throws Exception
*/
@Override
public Response<TransactionProofResponse> execute(String[] headers, String[] values) throws Exception {
Response<TransactionProofResponse> resp = baseExecute(headers, values);
resp.setValueType(TransactionProofResponse.class);
public Response<TransactionProof> execute(String[] headers, String[] values) throws Exception {
Response<TransactionProof> resp = baseExecute(headers, values);
resp.setValueType(TransactionProof.class);
return resp;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SetSyncRound extends Query {
private Long round;

/**
* @param round The round for which the deltas are desired.
* @param round A round number.
*/
public SetSyncRound(Client client, Long round) {
super(client, new HttpMethod("post"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class WaitForBlock extends Query {
private Long round;

/**
* @param round The round to wait until returning status
* @param round A round number.
*/
public WaitForBlock(Client client, Long round) {
super(client, new HttpMethod("get"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Proof of transaction in a block.
*/
public class TransactionProofResponse extends PathResponse {
public class TransactionProof extends PathResponse {

/**
* The type of hash function used to create the proof, must be one of:
Expand All @@ -23,7 +23,7 @@ public class TransactionProofResponse extends PathResponse {
* Index of the transaction in the block's payset.
*/
@JsonProperty("idx")
public Long idx;
public java.math.BigInteger idx;

/**
* Proof of transaction membership.
Expand Down Expand Up @@ -54,15 +54,15 @@ public String stibhash() {
* from a leaf to the root.
*/
@JsonProperty("treedepth")
public Long treedepth;
public java.math.BigInteger treedepth;

@Override
public boolean equals(Object o) {

if (this == o) return true;
if (o == null) return false;

TransactionProofResponse other = (TransactionProofResponse) o;
TransactionProof other = (TransactionProof) o;
if (!Objects.deepEquals(this.hashtype, other.hashtype)) return false;
if (!Objects.deepEquals(this.idx, other.idx)) return false;
if (!Objects.deepEquals(this.proof, other.proof)) return false;
Expand Down