X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fenums%2FSemanticError.ts;h=ea1655f949742dbbd495e76ecf5f5b617e3cbcb1;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=a296463ad3c40745de57518f251f4f09715b2428;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/enums/SemanticError.ts b/ts/enums/SemanticError.ts index a296463a..ea1655f9 100644 --- a/ts/enums/SemanticError.ts +++ b/ts/enums/SemanticError.ts @@ -1,14 +1,45 @@ export enum SemanticError { - LDKSemanticError_NoPaymentHash, - LDKSemanticError_MultiplePaymentHashes, - LDKSemanticError_NoDescription, - LDKSemanticError_MultipleDescriptions, - LDKSemanticError_NoPaymentSecret, - LDKSemanticError_MultiplePaymentSecrets, - LDKSemanticError_InvalidFeatures, - LDKSemanticError_InvalidRecoveryId, - LDKSemanticError_InvalidSignature, - LDKSemanticError_ImpreciseAmount, + /** + * The invoice is missing the mandatory payment hash + */ +LDKSemanticError_NoPaymentHash, + /** + * The invoice has multiple payment hashes which isn't allowed + */ +LDKSemanticError_MultiplePaymentHashes, + /** + * No description or description hash are part of the invoice + */ +LDKSemanticError_NoDescription, + /** + * The invoice contains multiple descriptions and/or description hashes which isn't allowed + */ +LDKSemanticError_MultipleDescriptions, + /** + * The invoice is missing the mandatory payment secret, which all modern lightning nodes +should provide. + */ +LDKSemanticError_NoPaymentSecret, + /** + * The invoice contains multiple payment secrets + */ +LDKSemanticError_MultiplePaymentSecrets, + /** + * The invoice's features are invalid + */ +LDKSemanticError_InvalidFeatures, + /** + * The recovery id doesn't fit the signature/pub key + */ +LDKSemanticError_InvalidRecoveryId, + /** + * The invoice's signature is invalid + */ +LDKSemanticError_InvalidSignature, + /** + * The invoice's amount was not a whole number of millisatoshis + */ +LDKSemanticError_ImpreciseAmount, }