Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
align Ilp-over-http custom settings to match update property style
Browse files Browse the repository at this point in the history
style should match property definition in issue #383
removed deprecated incomingHttpLinkSettings and outgoingHttpLinkSettings accessors

Signed-off-by: nhartner <[email protected]>
  • Loading branch information
nhartner committed Dec 23, 2019
1 parent e009829 commit a96756c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.interledger.stream.Denominations;
import org.interledger.stream.SendMoneyRequest;
import org.interledger.stream.SendMoneyResult;
import org.interledger.stream.SenderAmountMode;
import org.interledger.stream.sender.FixedSenderAmountPaymentTracker;
import org.interledger.stream.sender.SimpleStreamSender;

Expand Down Expand Up @@ -75,6 +76,7 @@ public static void main(String[] args) throws ExecutionException, InterruptedExc
SendMoneyResult result = simpleStreamSender.sendMoney(
SendMoneyRequest.builder()
.sourceAddress(SENDER_ADDRESS)
.senderAmountMode(SenderAmountMode.SENDER_AMOUNT)
.amount(UnsignedLong.valueOf(100000))
.denomination(Denominations.XRP)
.destinationAddress(connectionDetails.destinationAddress())
Expand All @@ -92,9 +94,9 @@ private static Link newIlpOverHttpLink() {
String sharedSecret = "some random secret here";
final IlpOverHttpLinkSettings linkSettings = IlpOverHttpLinkSettings.builder()
.outgoingLinkSettings(OutgoingLinkSettings.builder()
.authType(IlpOverHttpLinkSettings.AuthType.SIMPLE)
.url(HttpUrl.parse(TESTNET_URI + "/accounts/" + SENDER_ACCOUNT_USERNAME + "/ilp"))
.simpleAuthSettings(SimpleAuthSettings.forAuthToken(sharedSecret))
// .url(HttpUrl.parse(TESTNET_URI + "/ilp")) // new simple auth uri not yet deployed to testnet
.url(HttpUrl.parse(TESTNET_URI + "/ilp")) // old simple auth uri
.build())
.build();

Expand Down

0 comments on commit a96756c

Please sign in to comment.