Skip to content

Commit

Permalink
issues/314 - Tidy up for review
Browse files Browse the repository at this point in the history
  • Loading branch information
meywood committed Jul 22, 2024
1 parent 3feb080 commit 40494d1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 46 deletions.
27 changes: 6 additions & 21 deletions src/main/java/com/casper/sdk/model/contract/Contract.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package com.casper.sdk.model.contract;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.*;

import java.util.List;

Expand All @@ -23,34 +19,23 @@
@NoArgsConstructor
public class Contract {

/**
* contract_package_hash(String) - The hash address of the contract package.
*/
/** contract_package_hash(String) - The hash address of the contract package. */
@JsonProperty("contract_package_hash")
private String packageHash;

/**
* contract_wasm_hash(String) The hash address of the contract wasm.
*/
/** contract_wasm_hash(String) The hash address of the contract wasm. */
@JsonProperty("contract_wasm_hash")
private String wasmHash;

/**
* entry_points(Array) - A list of entry points.
*/
/** entry_points(Array) - A list of entry points. */
@JsonProperty("entry_points")
private List<EntryPoint> entryPoints;


/**
* named_keys(Array) - A list of named keys.
*/
/** named_keys(Array) - A list of named keys. */
@JsonProperty("named_keys")
private List<NamedKey> namedKeys;

/**
* protocol_version(String) - ?
*/
/** protocol_version(String) - ? */
@JsonProperty("protocol_version")
private String protocolVersion;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,17 @@
@JsonTypeName("Failure")
public class Failure {

/**
* The cost of executing the deploy.
*/
/** The cost of executing the deploy. */
@JsonSerialize(using = ToStringSerializer.class)
private BigInteger cost;

/**
* @see ExecutionEffect
*/
/** @see ExecutionEffect */
private ExecutionEffect effect;

/**
* The error message associated with executing the deploy
*/
/** The error message associated with executing the deploy */
@JsonProperty("error_message")
private String errorMessage;

/**
* List of Hex-encoded transfer address.
*/
/** List of Hex-encoded transfer address. */
private List<String> transfers;
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,13 @@
@JsonTypeName("Success")
public class Success {

/**
* @see ExecutionEffect
*/
/** @see ExecutionEffect */
private ExecutionEffect effect;

/**
* List of Hex-encoded transfer address.
*/
/** List of Hex-encoded transfer address. */
private List<String> transfers;

/**
* The cost of executing the deploy.
*/
/** The cost of executing the deploy. */
@JsonSerialize(using = ToStringSerializer.class)
private BigInteger cost;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
@JsonTypeName("WriteBid")
public class WriteBid implements Transform {

/**
* @see Bid
*/
/** @see Bid */
@JsonProperty("WriteBid")
private Bid bid;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.List;

/**
* Transaction response obtained using the info_get_transaction RPC call.
* Base class for transaction response obtained using the info_get_transaction RPC call.
*
* @author [email protected]
*/
Expand Down

0 comments on commit 40494d1

Please sign in to comment.