@@ -645,7 +645,7 @@ public class HumanObjectPeerTestInstance {
645
645
do {
646
646
// create invoice for 10k satoshis to pay to peer2
647
647
648
- let invoiceResult = Bindings . swiftCreateInvoiceFromChannelmanager ( channelmanager: peer2. channelManager, nodeSigner: peer2. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: SEND_MSAT_AMOUNT_A_TO_B, description: " Invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
648
+ let invoiceResult = Bindings . createInvoiceFromChannelmanager ( channelmanager: peer2. channelManager, nodeSigner: peer2. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: SEND_MSAT_AMOUNT_A_TO_B, description: " Invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
649
649
if let invoiceError = invoiceResult. getError ( ) {
650
650
let creationError = invoiceError. getValueAsCreationError ( )
651
651
print ( " creation error: \( creationError) " )
@@ -657,7 +657,7 @@ public class HumanObjectPeerTestInstance {
657
657
XCTAssertTrue ( recreatedInvoice. isOk ( ) )
658
658
659
659
let channelManagerConstructor = peer1. constructor!
660
- let invoicePaymentResult = Bindings . swiftPayInvoice ( invoice: invoice, retryStrategy: Bindings . Retry. initWithAttempts ( a: 3 ) , channelmanager: channelManagerConstructor. channelManager)
660
+ let invoicePaymentResult = Bindings . payInvoice ( invoice: invoice, retryStrategy: Bindings . Retry. initWithAttempts ( a: 3 ) , channelmanager: channelManagerConstructor. channelManager)
661
661
XCTAssertTrue ( invoicePaymentResult. isOk ( ) )
662
662
663
663
do {
@@ -767,15 +767,15 @@ public class HumanObjectPeerTestInstance {
767
767
print ( " pre-payment balance A->B mSats: \( prePaymentBalanceAToB) " )
768
768
print ( " pre-payment balance B->A mSats: \( prePaymentBalanceBToA) " )
769
769
770
- let invoiceResult = Bindings . swiftCreateInvoiceFromChannelmanager ( channelmanager: peer1. channelManager, nodeSigner: peer1. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: nil , description: " Second invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
770
+ let invoiceResult = Bindings . createInvoiceFromChannelmanager ( channelmanager: peer1. channelManager, nodeSigner: peer1. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: nil , description: " Second invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
771
771
let invoice = invoiceResult. getValue ( ) !
772
772
print ( " Implicit amount invoice: \( invoice. toStr ( ) ) " )
773
773
774
774
let invoiceString = invoice. toStr ( )
775
775
let recreatedInvoice = Invoice . fromStr ( s: invoiceString)
776
776
XCTAssertTrue ( recreatedInvoice. isOk ( ) )
777
777
778
- let invoicePaymentResult = Bindings . swiftPayZeroValueInvoice ( invoice: invoice, amountMsats: SEND_MSAT_AMOUNT_B_TO_A, retryStrategy: Retry . initWithAttempts ( a: 3 ) , channelmanager: peer2. channelManager)
778
+ let invoicePaymentResult = Bindings . payZeroValueInvoice ( invoice: invoice, amountMsats: SEND_MSAT_AMOUNT_B_TO_A, retryStrategy: Retry . initWithAttempts ( a: 3 ) , channelmanager: peer2. channelManager)
779
779
if let error = invoicePaymentResult. getError ( ) {
780
780
print ( " value type: \( error. getValueType ( ) ) " )
781
781
if let routingError = error. getValueAsSending ( ) {
0 commit comments