-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1 addition
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/main/java/org/stellar/sdk/requests/sorobanrpc/GetLedgerEntriesRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
package org.stellar.sdk.requests.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.Collection; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class GetLedgerEntriesRequest { | ||
@SerializedName("keys") | ||
Collection<String> keys; | ||
} |
2 changes: 0 additions & 2 deletions
2
src/main/java/org/stellar/sdk/requests/sorobanrpc/GetTransactionRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package org.stellar.sdk.requests.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@Value | ||
@AllArgsConstructor | ||
public class GetTransactionRequest { | ||
@SerializedName("hash") | ||
String hash; | ||
} |
2 changes: 0 additions & 2 deletions
2
src/main/java/org/stellar/sdk/requests/sorobanrpc/SendTransactionRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package org.stellar.sdk.requests.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class SendTransactionRequest { | ||
@SerializedName("transaction") | ||
String transaction; | ||
} |
2 changes: 0 additions & 2 deletions
2
src/main/java/org/stellar/sdk/requests/sorobanrpc/SimulateTransactionRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package org.stellar.sdk.requests.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class SimulateTransactionRequest { | ||
@SerializedName("transaction") | ||
String transaction; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/main/java/org/stellar/sdk/responses/sorobanrpc/GetEventsResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,42 @@ | ||
package org.stellar.sdk.responses.sorobanrpc; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
import org.stellar.sdk.requests.sorobanrpc.EventFilterType; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class GetEventsResponse { | ||
@SerializedName("events") | ||
ImmutableList<EventInfo> events; | ||
|
||
@SerializedName("latestLedger") | ||
Long latestLedger; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public static class EventInfo { | ||
@SerializedName("type") | ||
EventFilterType type; | ||
|
||
@SerializedName("ledger") | ||
Integer ledger; | ||
|
||
@SerializedName("ledgerClosedAt") | ||
String ledgerClosedAt; | ||
|
||
@SerializedName("contractId") | ||
String contractId; | ||
|
||
@SerializedName("id") | ||
String id; | ||
|
||
@SerializedName("pagingToken") | ||
String pagingToken; | ||
|
||
@SerializedName("topic") | ||
ImmutableList<String> topic; | ||
|
||
@SerializedName("value") | ||
EventInfoValue value; | ||
|
||
@SerializedName("inSuccessfulContractCall") | ||
Boolean inSuccessfulContractCall; | ||
} | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public static class EventInfoValue { | ||
@SerializedName("xdr") | ||
String xdr; | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
src/main/java/org/stellar/sdk/responses/sorobanrpc/GetHealthResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package org.stellar.sdk.responses.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class GetHealthResponse { | ||
@SerializedName("status") | ||
String status; | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/org/stellar/sdk/responses/sorobanrpc/GetLatestLedgerResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
package org.stellar.sdk.responses.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class GetLatestLedgerResponse { | ||
@SerializedName("id") | ||
String id; | ||
|
||
@SerializedName("protocolVersion") | ||
Integer protocolVersion; | ||
|
||
@SerializedName("sequence") | ||
Integer sequence; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
src/main/java/org/stellar/sdk/responses/sorobanrpc/GetNetworkResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
package org.stellar.sdk.responses.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class GetNetworkResponse { | ||
@SerializedName("friendbotUrl") | ||
String friendbotUrl; | ||
|
||
@SerializedName("passphrase") | ||
String passphrase; | ||
|
||
@SerializedName("protocolVersion") | ||
Integer protocolVersion; | ||
} |
18 changes: 0 additions & 18 deletions
18
src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,38 @@ | ||
package org.stellar.sdk.responses.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class GetTransactionResponse { | ||
@SerializedName("status") | ||
GetTransactionStatus status; | ||
|
||
@SerializedName("latestLedger") | ||
Long latestLedger; | ||
|
||
@SerializedName("latestLedgerCloseTime") | ||
Long latestLedgerCloseTime; | ||
|
||
@SerializedName("oldestLedger") | ||
Long oldestLedger; | ||
|
||
@SerializedName("oldestLedgerCloseTime") | ||
Long oldestLedgerCloseTime; | ||
|
||
@SerializedName("applicationOrder") | ||
Integer applicationOrder; | ||
|
||
@SerializedName("feeBump") | ||
Boolean feeBump; | ||
|
||
@SerializedName("envelopeXdr") | ||
String envelopeXdr; | ||
|
||
@SerializedName("resultXdr") | ||
String resultXdr; | ||
|
||
@SerializedName("resultMetaXdr") | ||
String resultMetaXdr; | ||
|
||
@SerializedName("ledger") | ||
Long ledger; | ||
|
||
@SerializedName("createdAt") | ||
Long createdAt; | ||
|
||
public enum GetTransactionStatus { | ||
@SerializedName("NOT_FOUND") | ||
NOT_FOUND, | ||
|
||
@SerializedName("SUCCESS") | ||
SUCCESS, | ||
|
||
@SerializedName("FAILED") | ||
FAILED | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
src/main/java/org/stellar/sdk/responses/sorobanrpc/SendTransactionResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,25 @@ | ||
package org.stellar.sdk.responses.sorobanrpc; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
@AllArgsConstructor | ||
@Value | ||
public class SendTransactionResponse { | ||
@SerializedName("status") | ||
SendTransactionStatus status; | ||
|
||
@SerializedName("errorResultXdr") | ||
String errorResultXdr; | ||
|
||
@SerializedName("hash") | ||
String hash; | ||
|
||
@SerializedName("latestLedger") | ||
Long latestLedger; | ||
|
||
@SerializedName("latestLedgerCloseTime") | ||
Long latestLedgerCloseTime; | ||
|
||
public enum SendTransactionStatus { | ||
@SerializedName("PENDING") | ||
PENDING, | ||
|
||
@SerializedName("DUPLICATE") | ||
DUPLICATE, | ||
|
||
@SerializedName("TRY_AGAIN_LATER") | ||
TRY_AGAIN_LATER, | ||
|
||
@SerializedName("ERROR") | ||
ERROR | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters