-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- If you're making a doc PR or something tiny where the below is irrelevant, delete this template and use a short description, but in your description aim to include both what the change is, and why it is being made, with enough context for anyone to understand. --> ### Description Fix the bug where `client_id` was not passed to `getRate()` when the customer of the wallet exists. ### Context Bug fix ### Testing ./gradlew test --------- Co-authored-by: Jiahui Hu <[email protected]>
- Loading branch information
Showing
28 changed files
with
425 additions
and
394 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
core/src/main/java/org/stellar/anchor/config/ClientsConfig.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.stellar.anchor.config; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
public interface ClientsConfig { | ||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
class ClientConfig { | ||
String name; | ||
ClientType type; | ||
String signingKey; | ||
String domain; | ||
String callbackUrl; | ||
} | ||
|
||
enum ClientType { | ||
CUSTODIAL, | ||
NONCUSTODIAL | ||
} | ||
|
||
ClientConfig getClientConfigBySigningKey(String signingKey); | ||
|
||
ClientConfig getClientConfigByDomain(String domain); | ||
} |
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
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
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
Oops, something went wrong.