@bitgo/public-types
Advanced tools
Comparing version 2.38.0 to 2.39.0
@@ -37,6 +37,13 @@ import * as t from "io-ts"; | ||
}>, t.TypeC<{ | ||
request: t.IntersectionC<[t.TypeC<{ | ||
invoice: t.StringC; | ||
}>, t.PartialC<{ | ||
amountMsat: import("io-ts-types").BigIntFromStringC; | ||
feeLimitMsat: import("io-ts-types").BigIntFromStringC; | ||
feeLimitRatio: t.NumberC; | ||
}>]>; | ||
signature: t.StringC; | ||
}>, t.TypeC<{ | ||
intentType: t.LiteralC<"payment">; | ||
invoice: t.StringC; | ||
signedInvoice: t.StringC; | ||
}>]>; | ||
export type LightningPaymentIntent = t.TypeOf<typeof LightningPaymentIntent>; |
@@ -30,10 +30,10 @@ "use strict"; | ||
const intentType_1 = require("./intentType"); | ||
const payment_1 = require("../../lightning/payment"); | ||
exports.LightningPaymentIntent = t.intersection([ | ||
baseIntent_1.BaseIntent, | ||
payment_1.LightningPaymentRequestWithSig, | ||
t.type({ | ||
intentType: intentType_1.intentTypes.payment, | ||
invoice: t.string, | ||
signedInvoice: t.string, | ||
}), | ||
]); | ||
//# sourceMappingURL=lightningPaymentIntent.js.map |
@@ -11,11 +11,2 @@ import * as t from "io-ts"; | ||
export type TransactionRecipient = t.TypeOf<typeof recipient>; | ||
declare const lightningPaymentRequest: t.IntersectionC<[t.TypeC<{ | ||
invoice: t.StringC; | ||
}>, t.PartialC<{ | ||
amount: t.NumberC; | ||
sequenceId: t.StringC; | ||
feeLimit: t.NumberC; | ||
feeLimitRatio: t.NumberC; | ||
}>]>; | ||
export type LightningPaymentRequest = t.TypeOf<typeof lightningPaymentRequest>; | ||
declare const halfSigned: t.PartialC<{ | ||
@@ -52,17 +43,2 @@ txHex: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>; | ||
signature: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>; | ||
lightningPaymentRequest: t.UnionC<[t.Type<{ | ||
invoice: string; | ||
} & { | ||
amount?: number | undefined; | ||
sequenceId?: string | undefined; | ||
feeLimit?: number | undefined; | ||
feeLimitRatio?: number | undefined; | ||
}, { | ||
invoice: string; | ||
} & { | ||
amount?: number | undefined; | ||
sequenceId?: string | undefined; | ||
feeLimit?: number | undefined; | ||
feeLimitRatio?: number | undefined; | ||
}, unknown>, t.UndefinedC]>; | ||
}>; | ||
@@ -98,10 +74,2 @@ export type HalfSignedTransaction = t.TypeOf<typeof halfSigned>; | ||
signature?: string | undefined; | ||
lightningPaymentRequest?: ({ | ||
invoice: string; | ||
} & { | ||
amount?: number | undefined; | ||
sequenceId?: string | undefined; | ||
feeLimit?: number | undefined; | ||
feeLimitRatio?: number | undefined; | ||
}) | undefined; | ||
}, { | ||
@@ -128,10 +96,2 @@ txHex?: string | undefined; | ||
signature?: string | undefined; | ||
lightningPaymentRequest?: ({ | ||
invoice: string; | ||
} & { | ||
amount?: number | undefined; | ||
sequenceId?: string | undefined; | ||
feeLimit?: number | undefined; | ||
feeLimitRatio?: number | undefined; | ||
}) | undefined; | ||
}, unknown>, t.UndefinedC]>; | ||
@@ -291,10 +251,2 @@ invoice: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>; | ||
signature?: string | undefined; | ||
lightningPaymentRequest?: ({ | ||
invoice: string; | ||
} & { | ||
amount?: number | undefined; | ||
sequenceId?: string | undefined; | ||
feeLimit?: number | undefined; | ||
feeLimitRatio?: number | undefined; | ||
}) | undefined; | ||
}, { | ||
@@ -321,10 +273,2 @@ txHex?: string | undefined; | ||
signature?: string | undefined; | ||
lightningPaymentRequest?: ({ | ||
invoice: string; | ||
} & { | ||
amount?: number | undefined; | ||
sequenceId?: string | undefined; | ||
feeLimit?: number | undefined; | ||
feeLimitRatio?: number | undefined; | ||
}) | undefined; | ||
}, unknown>, t.UndefinedC]>; | ||
@@ -331,0 +275,0 @@ invoice: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>; |
@@ -43,13 +43,2 @@ "use strict"; | ||
}); | ||
const lightningPaymentRequest = t.intersection([ | ||
t.type({ | ||
invoice: t.string, | ||
}), | ||
t.partial({ | ||
amount: t.number, | ||
sequenceId: t.string, | ||
feeLimit: t.number, | ||
feeLimitRatio: t.number, | ||
}), | ||
]); | ||
const halfSigned = t.partial({ | ||
@@ -66,3 +55,2 @@ txHex: utils_1.optionalString, | ||
signature: utils_1.optionalString, | ||
lightningPaymentRequest: (0, utils_1.Optional)(lightningPaymentRequest), | ||
}); | ||
@@ -69,0 +57,0 @@ exports.memo = t.partial({ |
{ | ||
"name": "@bitgo/public-types", | ||
"version": "2.38.0", | ||
"version": "2.39.0", | ||
"description": "Collection of types exposed externally as part of the BitGo public API", | ||
@@ -5,0 +5,0 @@ "license": "UNLICENSED", |
import * as t from "io-ts"; | ||
import { BaseIntent } from "./baseIntent"; | ||
import { intentTypes } from "./intentType"; | ||
import { LightningPaymentRequestWithSig } from "../../lightning/payment"; | ||
export const LightningPaymentIntent = t.intersection([ | ||
BaseIntent, | ||
LightningPaymentRequestWithSig, | ||
t.type({ | ||
intentType: intentTypes.payment, | ||
invoice: t.string, | ||
signedInvoice: t.string, | ||
}), | ||
@@ -12,0 +12,0 @@ ]); |
@@ -28,15 +28,2 @@ import * as t from "io-ts"; | ||
const lightningPaymentRequest = t.intersection([ | ||
t.type({ | ||
invoice: t.string, | ||
}), | ||
t.partial({ | ||
amount: t.number, | ||
sequenceId: t.string, | ||
feeLimit: t.number, | ||
feeLimitRatio: t.number, | ||
}), | ||
]); | ||
export type LightningPaymentRequest = t.TypeOf<typeof lightningPaymentRequest>; | ||
const halfSigned = t.partial({ | ||
@@ -53,3 +40,2 @@ txHex: optionalString, | ||
signature: optionalString, | ||
lightningPaymentRequest: Optional(lightningPaymentRequest), | ||
}); | ||
@@ -56,0 +42,0 @@ export type HalfSignedTransaction = t.TypeOf<typeof halfSigned>; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
864217
567
17843