Skip to content

Commit

Permalink
Fix errors in documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Aug 19, 2023
1 parent ef91404 commit 75995cd
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/stellar/sdk/KeyPair.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ public DecoratedSignature signDecorated(byte[] data) {
/**
* Sign the provided payload data for payload signer where the input is the data being signed. Per
* the <a
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0040.md#signature-hint"
* CAP-40 Signature spec</a> {@link DecoratedSignature}.
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0040.md#signature-hint">CAP-40
* Signature spec</a> {@link DecoratedSignature}.
*
* @param signerPayload the payload signers raw data to sign
* @return DecoratedSignature
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/stellar/sdk/LedgerBounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@lombok.Builder
/**
* LedgerBounds are Preconditions of a transaction per <a
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21<a/>
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21</a>
*/
public class LedgerBounds {
long minLedger;
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/org/stellar/sdk/SignedPayloadSigner.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

/**
* Data model for the <a
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0040.md#xdr-changes">signed
* payload signer </a>
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0040.md#xdr-changes"
* target="_blank">signed payload signer</a>
*/
public class SignedPayloadSigner {
public static final int SIGNED_PAYLOAD_MAX_PAYLOAD_LENGTH = 64;
Expand Down Expand Up @@ -72,7 +72,8 @@ public AccountID getSignerAccountId() {
* get the payload that signatures are produced from.
*
* @see <a
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0040.md#semantics"/>
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0040.md#semantics">CAP-0040
* Semantics</a>
* @return
*/
public byte[] getPayload() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/stellar/sdk/SorobanServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public SimulateTransactionResponse simulateTransaction(Transaction transaction)
* Submit a trial contract invocation, first run a simulation of the contract invocation as
* defined on the incoming transaction, and apply the results to a new copy of the transaction
* which is then returned. Setting the ledger footprint and authorization, so the resulting
* transaction is ready for signing & sending.
* transaction is ready for signing and sending.
*
* <p>The returned transaction will also have an updated fee that is the sum of fee set on
* incoming transaction with the contract resource fees estimated from simulation. It is advisable
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/stellar/sdk/TransactionBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public TransactionBuilder addOperations(Collection<Operation> operations) {

/**
* Adds preconditions. For details of all preconditions on transaction refer to <a
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21<a/>
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21</a>
*
* @param preconditions the tx PreConditions
* @return updated Builder object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@Builder(toBuilder = true)
/**
* Preconditions of a transaction per <a
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21<a/>
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21</a>
*/
public class TransactionPreconditions {
public static final long MAX_EXTRA_SIGNERS_COUNT = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public AccountsRequestBuilder forAsset(AssetTypeCreditAlphaNum asset) {
/**
* Returns all accounts who have trustlines to the specified liquidity pool.
*
* @param Liquidity Pool ID
* @param liquidityPoolID Liquidity Pool ID
* @return current {@link AccountsRequestBuilder} instance
* @see <a href="https://developers.stellar.org/api/resources/accounts/list/">Accounts</a>
*/
Expand All @@ -107,7 +107,7 @@ public AccountsRequestBuilder forLiquidityPool(LiquidityPoolID liquidityPoolID)
/**
* Returns all accounts who have trustlines to the specified liquidity pool.
*
* @param Liquidity Pool ID
* @param liquidityPoolID Liquidity Pool ID
* @return current {@link AccountsRequestBuilder} instance
* @see <a href="https://developers.stellar.org/api/resources/accounts/list/">Accounts</a>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Throws when Soroban-RPC instance responds with error.
*
* @see <a href="https://www.jsonrpc.org/specification#error_object" target="_blank">JSON-RPC 2.0
* Specification - Error object<a>
* Specification - Error object</a>
*/
@Getter
public class SorobanRpcErrorResponse extends Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Represent the request sent to Soroban-RPC.
*
* @see <a href="https://www.jsonrpc.org/specification#request_object" target="_blank">JSON-RPC 2.0
* Specification - Request object<a>
* Specification - Request object</a>
*/
@RequiredArgsConstructor
@Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public Links getLinks() {

/**
* Preconditions of a transaction per <a
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21<a/>
* href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0021.md#specification">CAP-21</a>
*/
@Value
public static class Preconditions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Represent the response returned by Soroban-RPC.
*
* @see <a href="https://www.jsonrpc.org/specification#response_object" target="_blank">JSON-RPC 2.0
* Specification - Response object<a>
* Specification - Response object</a>
*/
@AllArgsConstructor
@Getter
Expand Down

0 comments on commit 75995cd

Please sign in to comment.