@xyo-network/payment-payload-plugins 3.4.2 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/types/Amount/Iso4217Currency.d.ts +14 -0
- package/dist/types/Amount/Iso4217Currency.d.ts.map +1 -0
- package/dist/types/Amount/Payload.d.ts +31 -0
- package/dist/types/Amount/Payload.d.ts.map +1 -0
- package/dist/types/Amount/index.d.ts +3 -0
- package/dist/types/Amount/index.d.ts.map +1 -0
- package/dist/types/Billing/Address/Address.d.ts +48 -0
- package/dist/types/Billing/Address/Address.d.ts.map +1 -0
- package/dist/types/Billing/Address/Schema.d.ts +3 -0
- package/dist/types/Billing/Address/Schema.d.ts.map +1 -0
- package/dist/types/Billing/Address/index.d.ts +3 -0
- package/dist/types/Billing/Address/index.d.ts.map +1 -0
- package/dist/types/Billing/Schema.d.ts +3 -0
- package/dist/types/Billing/Schema.d.ts.map +1 -0
- package/dist/types/Billing/index.d.ts +3 -0
- package/dist/types/Billing/index.d.ts.map +1 -0
- package/dist/types/Currency.d.ts +2 -0
- package/dist/types/Currency.d.ts.map +1 -0
- package/dist/types/Discount/Config.d.ts +23 -0
- package/dist/types/Discount/Config.d.ts.map +1 -0
- package/dist/types/Discount/Params.d.ts +11 -0
- package/dist/types/Discount/Params.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +8 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +8 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +34 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/index.d.ts +4 -0
- package/dist/types/Discount/Payload/Coupon/Conditions/index.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +30 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +30 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +30 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/index.d.ts +4 -0
- package/dist/types/Discount/Payload/Coupon/Coupons/index.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Payload.d.ts +22 -0
- package/dist/types/Discount/Payload/Coupon/Payload.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/Schema.d.ts +3 -0
- package/dist/types/Discount/Payload/Coupon/Schema.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/index.d.ts +6 -0
- package/dist/types/Discount/Payload/Coupon/index.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/types/Condition.d.ts +22 -0
- package/dist/types/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/types/CouponFields.d.ts +16 -0
- package/dist/types/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/types/index.d.ts +4 -0
- package/dist/types/Discount/Payload/Coupon/types/index.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Coupon/types/isStackable.d.ts +5 -0
- package/dist/types/Discount/Payload/Coupon/types/isStackable.d.ts.map +1 -0
- package/dist/types/Discount/Payload/Discount.d.ts +29 -0
- package/dist/types/Discount/Payload/Discount.d.ts.map +1 -0
- package/dist/types/Discount/Payload/NoDiscount.d.ts +3 -0
- package/dist/types/Discount/Payload/NoDiscount.d.ts.map +1 -0
- package/dist/types/Discount/Payload/index.d.ts +4 -0
- package/dist/types/Discount/Payload/index.d.ts.map +1 -0
- package/dist/types/Discount/index.d.ts +4 -0
- package/dist/types/Discount/index.d.ts.map +1 -0
- package/dist/types/Escrow/Outcome.d.ts +32 -0
- package/dist/types/Escrow/Outcome.d.ts.map +1 -0
- package/dist/types/Escrow/Schema.d.ts +3 -0
- package/dist/types/Escrow/Schema.d.ts.map +1 -0
- package/dist/types/Escrow/Terms/Party.d.ts +6 -0
- package/dist/types/Escrow/Terms/Party.d.ts.map +1 -0
- package/dist/types/Escrow/Terms/PartySecret.d.ts +6 -0
- package/dist/types/Escrow/Terms/PartySecret.d.ts.map +1 -0
- package/dist/types/Escrow/Terms/Terms.d.ts +77 -0
- package/dist/types/Escrow/Terms/Terms.d.ts.map +1 -0
- package/dist/types/Escrow/Terms/index.d.ts +4 -0
- package/dist/types/Escrow/Terms/index.d.ts.map +1 -0
- package/dist/types/Escrow/index.d.ts +6 -0
- package/dist/types/Escrow/index.d.ts.map +1 -0
- package/dist/types/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +12 -0
- package/dist/types/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -0
- package/dist/types/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +13 -0
- package/dist/types/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -0
- package/dist/types/Escrow/util/appraisal/index.d.ts +3 -0
- package/dist/types/Escrow/util/appraisal/index.d.ts.map +1 -0
- package/dist/types/Escrow/util/index.d.ts +3 -0
- package/dist/types/Escrow/util/index.d.ts.map +1 -0
- package/dist/types/Escrow/util/secret/createEscrowIntent.d.ts +12 -0
- package/dist/types/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -0
- package/dist/types/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +13 -0
- package/dist/types/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -0
- package/dist/types/Escrow/util/secret/getEscrowSecret.d.ts +7 -0
- package/dist/types/Escrow/util/secret/getEscrowSecret.d.ts.map +1 -0
- package/dist/types/Escrow/util/secret/index.d.ts +5 -0
- package/dist/types/Escrow/util/secret/index.d.ts.map +1 -0
- package/dist/types/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +14 -0
- package/dist/types/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -0
- package/dist/types/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +2 -0
- package/dist/types/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +1 -0
- package/dist/types/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +22 -0
- package/dist/types/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -0
- package/dist/types/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +10 -0
- package/dist/types/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -0
- package/dist/types/Escrow/validators/common/SecretValidators/index.d.ts +2 -0
- package/dist/types/Escrow/validators/common/SecretValidators/index.d.ts.map +1 -0
- package/dist/types/Escrow/validators/common/TemporalValidators/index.d.ts +2 -0
- package/dist/types/Escrow/validators/common/TemporalValidators/index.d.ts.map +1 -0
- package/dist/types/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +6 -0
- package/dist/types/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +1 -0
- package/dist/types/Escrow/validators/common/index.d.ts +4 -0
- package/dist/types/Escrow/validators/common/index.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/agent.d.ts +5 -0
- package/dist/types/Escrow/validators/escrow/agent.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/appraisal.d.ts +29 -0
- package/dist/types/Escrow/validators/escrow/appraisal.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/appraisalAuthorities.d.ts +10 -0
- package/dist/types/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/assets.d.ts +8 -0
- package/dist/types/Escrow/validators/escrow/assets.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/buyer.d.ts +8 -0
- package/dist/types/Escrow/validators/escrow/buyer.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/buyerSecret.d.ts +21 -0
- package/dist/types/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/index.d.ts +11 -0
- package/dist/types/Escrow/validators/escrow/index.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/nbfExp.d.ts +4 -0
- package/dist/types/Escrow/validators/escrow/nbfExp.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/paymentAuthorities.d.ts +5 -0
- package/dist/types/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/seller.d.ts +8 -0
- package/dist/types/Escrow/validators/escrow/seller.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/sellerSecret.d.ts +21 -0
- package/dist/types/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
- package/dist/types/Escrow/validators/index.d.ts +3 -0
- package/dist/types/Escrow/validators/index.d.ts.map +1 -0
- package/dist/types/Invoice/Invoice.d.ts +17 -0
- package/dist/types/Invoice/Invoice.d.ts.map +1 -0
- package/dist/types/Invoice/index.d.ts +2 -0
- package/dist/types/Invoice/index.d.ts.map +1 -0
- package/dist/types/Payment/Instrument/Card/Payload.d.ts +50 -0
- package/dist/types/Payment/Instrument/Card/Payload.d.ts.map +1 -0
- package/dist/types/Payment/Instrument/Card/Schema.d.ts +3 -0
- package/dist/types/Payment/Instrument/Card/Schema.d.ts.map +1 -0
- package/dist/types/Payment/Instrument/Card/index.d.ts +3 -0
- package/dist/types/Payment/Instrument/Card/index.d.ts.map +1 -0
- package/dist/types/Payment/Instrument/Schema.d.ts +3 -0
- package/dist/types/Payment/Instrument/Schema.d.ts.map +1 -0
- package/dist/types/Payment/Instrument/index.d.ts +3 -0
- package/dist/types/Payment/Instrument/index.d.ts.map +1 -0
- package/dist/types/Payment/Payload.d.ts +36 -0
- package/dist/types/Payment/Payload.d.ts.map +1 -0
- package/dist/types/Payment/Schema.d.ts +3 -0
- package/dist/types/Payment/Schema.d.ts.map +1 -0
- package/dist/types/Payment/Status/Payload.d.ts +35 -0
- package/dist/types/Payment/Status/Payload.d.ts.map +1 -0
- package/dist/types/Payment/Status/Schema.d.ts +3 -0
- package/dist/types/Payment/Status/Schema.d.ts.map +1 -0
- package/dist/types/Payment/Status/index.d.ts +3 -0
- package/dist/types/Payment/Status/index.d.ts.map +1 -0
- package/dist/types/Payment/index.d.ts +5 -0
- package/dist/types/Payment/index.d.ts.map +1 -0
- package/dist/types/Purchase/Payload.d.ts +37 -0
- package/dist/types/Purchase/Payload.d.ts.map +1 -0
- package/dist/types/Purchase/Schema.d.ts +3 -0
- package/dist/types/Purchase/Schema.d.ts.map +1 -0
- package/dist/types/Purchase/index.d.ts +3 -0
- package/dist/types/Purchase/index.d.ts.map +1 -0
- package/dist/types/Receipt/Payload.d.ts +36 -0
- package/dist/types/Receipt/Payload.d.ts.map +1 -0
- package/dist/types/Receipt/Schema.d.ts +3 -0
- package/dist/types/Receipt/Schema.d.ts.map +1 -0
- package/dist/types/Receipt/index.d.ts +3 -0
- package/dist/types/Receipt/index.d.ts.map +1 -0
- package/dist/types/Schema.d.ts +3 -0
- package/dist/types/Schema.d.ts.map +1 -0
- package/dist/types/Subtotal/Diviner/Config.d.ts +8 -0
- package/dist/types/Subtotal/Diviner/Config.d.ts.map +1 -0
- package/dist/types/Subtotal/Diviner/Params.d.ts +5 -0
- package/dist/types/Subtotal/Diviner/Params.d.ts.map +1 -0
- package/dist/types/Subtotal/Diviner/Payload.d.ts +29 -0
- package/dist/types/Subtotal/Diviner/Payload.d.ts.map +1 -0
- package/dist/types/Subtotal/Diviner/index.d.ts +4 -0
- package/dist/types/Subtotal/Diviner/index.d.ts.map +1 -0
- package/dist/types/Subtotal/index.d.ts +2 -0
- package/dist/types/Subtotal/index.d.ts.map +1 -0
- package/dist/types/Total/Diviner/Config.d.ts +18 -0
- package/dist/types/Total/Diviner/Config.d.ts.map +1 -0
- package/dist/types/Total/Diviner/Params.d.ts +5 -0
- package/dist/types/Total/Diviner/Params.d.ts.map +1 -0
- package/dist/types/Total/Diviner/Payload.d.ts +29 -0
- package/dist/types/Total/Diviner/Payload.d.ts.map +1 -0
- package/dist/types/Total/Diviner/index.d.ts +4 -0
- package/dist/types/Total/Diviner/index.d.ts.map +1 -0
- package/dist/types/Total/index.d.ts +2 -0
- package/dist/types/Total/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +26 -26
- package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +2 -2
- package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +2 -4
- package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +2 -2
- package/src/Discount/Payload/Coupon/Payload.ts +3 -1
- package/src/Discount/Payload/Coupon/types/Condition.ts +2 -1
- package/src/Discount/Payload/Discount.ts +2 -2
- package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +2 -1
- package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +2 -1
- package/src/Escrow/util/secret/createEscrowIntent.ts +2 -2
- package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +2 -1
- package/src/Escrow/validators/escrow/appraisal.ts +2 -1
- package/dist/neutral/index.d.ts +0 -561
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
-
import type {
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
3
3
|
import {
|
|
4
4
|
isPayloadOfSchemaType,
|
|
5
5
|
isPayloadOfSchemaTypeWithSources,
|
|
@@ -17,7 +17,7 @@ export interface FixedAmountCouponFields extends CouponFields, AmountFields {}
|
|
|
17
17
|
/**
|
|
18
18
|
* A coupon that provides a fixed discount amount
|
|
19
19
|
*/
|
|
20
|
-
export type FixedAmountCoupon =
|
|
20
|
+
export type FixedAmountCoupon = Payload<FixedAmountCouponFields, FixedAmountCouponSchema>
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Identity function for determining if an object is an FixedAmountCoupon
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
-
import type {
|
|
3
|
-
Payload, PayloadWithOptionalSources, WithSources,
|
|
4
|
-
} from '@xyo-network/payload-model'
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
5
3
|
import {
|
|
6
4
|
isPayloadOfSchemaType,
|
|
7
5
|
isPayloadOfSchemaTypeWithSources,
|
|
@@ -20,7 +18,7 @@ export interface FixedPercentageCouponFields extends CouponFields {
|
|
|
20
18
|
/**
|
|
21
19
|
* A coupon that provides a fixed discount amount
|
|
22
20
|
*/
|
|
23
|
-
export type FixedPercentageCoupon =
|
|
21
|
+
export type FixedPercentageCoupon = Payload<FixedPercentageCouponFields, FixedPercentageCouponSchema>
|
|
24
22
|
|
|
25
23
|
/**
|
|
26
24
|
* Identity function for determining if an object is an FixedPercentageCoupon
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
-
import type {
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
3
3
|
import {
|
|
4
4
|
isPayloadOfSchemaType,
|
|
5
5
|
isPayloadOfSchemaTypeWithSources,
|
|
@@ -17,7 +17,7 @@ export interface FixedPriceCouponFields extends CouponFields, AmountFields { }
|
|
|
17
17
|
/**
|
|
18
18
|
* A coupon that provides a fixed total price
|
|
19
19
|
*/
|
|
20
|
-
export type FixedPriceCoupon =
|
|
20
|
+
export type FixedPriceCoupon = Payload<FixedPriceCouponFields, FixedPriceCouponSchema>
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Identity function for determining if an object is an FixedPriceCoupon
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
|
|
3
|
+
import type {
|
|
4
|
+
FixedAmountCoupon, FixedPercentageCoupon, FixedPriceCoupon,
|
|
5
|
+
} from './Coupons/index.ts'
|
|
3
6
|
import {
|
|
4
|
-
type FixedAmountCoupon, type FixedPercentageCoupon, type FixedPriceCoupon,
|
|
5
7
|
isFixedAmountCoupon, isFixedAmountCouponWithSources, isFixedPercentageCoupon,
|
|
6
8
|
isFixedPercentageCouponWithSources,
|
|
7
9
|
isFixedPriceCoupon,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
3
|
-
import {
|
|
3
|
+
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'
|
|
4
|
+
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The payloads that can be used as conditions for a coupon
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
-
import type {
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
3
3
|
import {
|
|
4
4
|
isPayloadOfSchemaType,
|
|
5
5
|
isPayloadOfSchemaTypeWithSources,
|
|
@@ -15,7 +15,7 @@ export interface DiscountFields extends AmountFields { }
|
|
|
15
15
|
/**
|
|
16
16
|
* The result of a discount
|
|
17
17
|
*/
|
|
18
|
-
export type Discount =
|
|
18
|
+
export type Discount = Payload<DiscountFields, DiscountSchema>
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Identity function for determining if an object is an Discount
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import {
|
|
2
|
+
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease'
|
|
3
|
+
import { isHashLeaseEstimateWithSources } from '@xyo-network/diviner-hash-lease'
|
|
3
4
|
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
4
5
|
|
|
5
6
|
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import {
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import { isBoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
4
5
|
|
|
5
6
|
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
3
|
-
import type {
|
|
3
|
+
import type { Id } from '@xyo-network/id-payload-plugin'
|
|
4
4
|
|
|
5
5
|
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ import type { EscrowTerms } from '../../Terms/index.ts'
|
|
|
11
11
|
* @param account The account to create the escrow intent with
|
|
12
12
|
* @returns The escrow intent
|
|
13
13
|
*/
|
|
14
|
-
export const createEscrowIntentWithSecret = async (terms: EscrowTerms, secret:
|
|
14
|
+
export const createEscrowIntentWithSecret = async (terms: EscrowTerms, secret: Id, account: AccountInstance) => {
|
|
15
15
|
const result = await new BoundWitnessBuilder().signers([account]).payloads([terms, secret]).build()
|
|
16
16
|
return result
|
|
17
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import {
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import { isBoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
4
5
|
|
|
5
6
|
import type {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
2
|
import type { Hash } from '@xylabs/hex'
|
|
3
|
-
import {
|
|
3
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import { isBoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
5
|
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease'
|
|
5
6
|
import type {
|
|
6
7
|
Payload, SyncPayloadValidationFunction, WithSources,
|