@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartySecret.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/PartySecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,cAAc,CAAC,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const EscrowTermsSchema: "network.xyo.escrow.terms";
|
|
4
|
+
export type EscrowTermsSchema = typeof EscrowTermsSchema;
|
|
5
|
+
export interface EscrowTermsFields {
|
|
6
|
+
/**
|
|
7
|
+
* The trusted estimators for the worth of the things being sold
|
|
8
|
+
*/
|
|
9
|
+
appraisalAuthorities: Address[];
|
|
10
|
+
/**
|
|
11
|
+
* The estimated worths of the things being sold
|
|
12
|
+
*/
|
|
13
|
+
appraisals: Hash[];
|
|
14
|
+
/**
|
|
15
|
+
* The things being sold
|
|
16
|
+
*/
|
|
17
|
+
assets: Hash[];
|
|
18
|
+
/**
|
|
19
|
+
* The buyer
|
|
20
|
+
*/
|
|
21
|
+
buyer: Address[];
|
|
22
|
+
/**
|
|
23
|
+
* The buyer
|
|
24
|
+
*/
|
|
25
|
+
buyerSecret: Hash;
|
|
26
|
+
/**
|
|
27
|
+
* Any discounts (coupons, vouchers, credits, etc.) to be applied to the escrow
|
|
28
|
+
*/
|
|
29
|
+
discounts: Hash[];
|
|
30
|
+
/**
|
|
31
|
+
* The escrow agent responsible for the escrow
|
|
32
|
+
*/
|
|
33
|
+
escrowAgent: Address;
|
|
34
|
+
/**
|
|
35
|
+
* The time the escrow expires
|
|
36
|
+
*/
|
|
37
|
+
exp: number;
|
|
38
|
+
/**
|
|
39
|
+
* The time the escrow starts
|
|
40
|
+
*/
|
|
41
|
+
nbf: number;
|
|
42
|
+
/**
|
|
43
|
+
* The trusted payment authorities
|
|
44
|
+
*/
|
|
45
|
+
paymentAuthorities: Address[];
|
|
46
|
+
/**
|
|
47
|
+
* The seller
|
|
48
|
+
*/
|
|
49
|
+
seller: Address[];
|
|
50
|
+
/**
|
|
51
|
+
* The seller
|
|
52
|
+
*/
|
|
53
|
+
sellerSecret: Hash;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The terms of an escrow
|
|
57
|
+
*/
|
|
58
|
+
export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
|
|
59
|
+
/**
|
|
60
|
+
* Identity function for determining if an object is an EscrowTerms
|
|
61
|
+
*/
|
|
62
|
+
export declare const isEscrowTerms: (x?: unknown | null) => x is EscrowTerms;
|
|
63
|
+
export declare const asEscrowTerms: {
|
|
64
|
+
<TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.6.0-2effcc0872/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
65
|
+
<TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.6.0-2effcc0872/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowTerms>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
66
|
+
};
|
|
67
|
+
export declare const asOptionalEscrowTerms: <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.6.0-2effcc0872/package").AnyNonPromise) => TType | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Identity function for determining if an object is an EscrowTerms with sources
|
|
70
|
+
*/
|
|
71
|
+
export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<EscrowTerms>;
|
|
72
|
+
export declare const asEscrowTermsWithSources: {
|
|
73
|
+
<TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.6.0-2effcc0872/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
74
|
+
<TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.6.0-2effcc0872/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowTerms>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
75
|
+
};
|
|
76
|
+
export declare const asOptionalEscrowTermsWithSources: <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.6.0-2effcc0872/package").AnyNonPromise) => TType | undefined;
|
|
77
|
+
//# sourceMappingURL=Terms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,IAAI,EAAE,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa;8CApEoE,qDAErF,iCAAiC,gBAEzB;8CACa,qDAAiB,sGAO7C,gBAFc;CA0D+D,CAAA;AAC/E,eAAO,MAAM,qBAAqB,4CAvDO,qDAExC,qCAqD8F,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,4FAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB;8CA3EyD,qDAErF,iCAAiC,gBAEzB;8CACa,qDAAiB,sGAO7C,gBAFc;CAiEqF,CAAA;AACrG,eAAO,MAAM,gCAAgC,4CA9DJ,qDAExC,qCA4DoH,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
3
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
4
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Returns a dictionary of asset hashes and their associated appraisals
|
|
7
|
+
* @param terms The escrow terms
|
|
8
|
+
* @param dictionary The dictionary of payloads associated with the escrow terms
|
|
9
|
+
* @returns A dictionary of asset hashes and their associated appraisals
|
|
10
|
+
*/
|
|
11
|
+
export declare const getAppraisalsByAsset: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, WithSources<HashLeaseEstimate>[]>;
|
|
12
|
+
//# sourceMappingURL=getAppraisalsByAsset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAppraisalsByAsset.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getAppraisalsByAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,WAAW,EAAE,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAkBzI,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Returns a dictionary of appraisals and their associated bound witnesses which are signed by
|
|
7
|
+
* valid appraisal authorities from the escrow terms
|
|
8
|
+
* @param terms The escrow terms
|
|
9
|
+
* @param dictionary The diction of payloads associated with the escrow terms
|
|
10
|
+
* @returns A dictionary of appraisals and their associated bound witnesses
|
|
11
|
+
*/
|
|
12
|
+
export declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, BoundWitness[]>;
|
|
13
|
+
//# sourceMappingURL=getSignaturesByAppraisal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,WAAW,EAClB,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAChC,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,CAsB7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import type { Id } from '@xyo-network/id-payload-plugin';
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Creates an escrow intent (for a buyer or seller) using the supplied secret
|
|
6
|
+
* @param terms The payload describing the terms for the escrow
|
|
7
|
+
* @param secret The secret for the escrow principal party to use for the escrow
|
|
8
|
+
* @param account The account to create the escrow intent with
|
|
9
|
+
* @returns The escrow intent
|
|
10
|
+
*/
|
|
11
|
+
export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: Id, account: AccountInstance) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").AnyPayload[], import("@xyo-network/payload-model").ModuleError[]]>;
|
|
12
|
+
//# sourceMappingURL=createEscrowIntent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAA;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,OAAO,WAAW,EAAE,QAAQ,EAAE,EAAE,SAAS,eAAe,uOAG1G,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Returns an array of BoundWitnesses containing the secret signed by all the parties
|
|
7
|
+
* @param terms The escrow terms
|
|
8
|
+
* @param dictionary A dictionary of all the payloads associated with the escrow
|
|
9
|
+
* @param party The party to get the secret signatures for
|
|
10
|
+
* @returns An array of BoundWitnesses containing the secret signed by all the parties
|
|
11
|
+
*/
|
|
12
|
+
export declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash, Payload>, party: EscrowParty) => BoundWitness[];
|
|
13
|
+
//# sourceMappingURL=findEscrowPartySecretSignatures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAW7B;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAAI,OAAO,WAAW,EAAE,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,YAAY,EAqBvI,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IdPayload } from '@xyo-network/id-payload-plugin';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a cryptographically random secret to use for escrow
|
|
4
|
+
* @returns The escrow secret
|
|
5
|
+
*/
|
|
6
|
+
export declare const getEscrowSecret: () => IdPayload;
|
|
7
|
+
//# sourceMappingURL=getEscrowSecret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEscrowSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/getEscrowSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,SAElC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sCAAsC,CAAA;AACpD,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import type { IdPayload } from '@xyo-network/id-payload-plugin';
|
|
3
|
+
import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Creates an escrow intent (for a buyer or seller) using the supplied secret
|
|
6
|
+
* @param terms The payload describing the terms for the escrow
|
|
7
|
+
* @param escrowParty The party in the escrow transaction
|
|
8
|
+
* @param account The account(s) to create the escrow intent with
|
|
9
|
+
* @param secret The secret for the escrow principal party to use for the escrow. If
|
|
10
|
+
* not provided, a cryptographically random secret will be generated.
|
|
11
|
+
* @returns The escrow intent
|
|
12
|
+
*/
|
|
13
|
+
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").AnyPayload[], import("@xyo-network/payload-model").ModuleError[]]>;
|
|
14
|
+
//# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,SAAS,uOAanB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
|
package/dist/types/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { PayloadValueExpression } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowTerms } from '../../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
|
|
6
|
+
* @param escrowTerms The escrow terms to validate
|
|
7
|
+
* @param propertyExpression The selector to get the property containing the moduleIdentifier(s) from the escrow terms
|
|
8
|
+
* @param moduleIdentifiers The list of allowed moduleIdentifiers
|
|
9
|
+
* @param required Is the property required to be present
|
|
10
|
+
* @returns True if the property value contains one of the valid moduleIdentifiers
|
|
11
|
+
*/
|
|
12
|
+
export declare const moduleIdentifiersContainsOneOf: (escrowTerms: EscrowTerms, propertyExpression: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Checks if property value of the escrow terms contains all of the valid moduleIdentifiers
|
|
15
|
+
* @param escrowTerms The escrow terms to validate
|
|
16
|
+
* @param selector The selector to get the property containing the moduleIdentifier(s) from the escrow terms
|
|
17
|
+
* @param moduleIdentifiers The list of allowed moduleIdentifiers
|
|
18
|
+
* @param required Is the property required to be present
|
|
19
|
+
* @returns True if the property value contains all of the valid moduleIdentifiers
|
|
20
|
+
*/
|
|
21
|
+
export declare const moduleIdentifiersContainsAllOf: (escrowTerms: EscrowTerms, selector: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
22
|
+
//# sourceMappingURL=moduleInstanceValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,oBAAoB,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EAC3I,mBAAmB,gBAAgB,EAAE,EACrC,WAAU,OAAc,YAQzB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,UAAU,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EACjI,mBAAmB,gBAAgB,EAAE,EACrC,WAAU,OAAc,YAQzB,CAAA"}
|
package/dist/types/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowParty, EscrowTerms } from '../../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Returns a function that validates the escrow terms for the existence of the party secret signed by the party
|
|
6
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
7
|
+
* @returns A function that validates the escrow terms for the existence of the party secret signed by the party
|
|
8
|
+
*/
|
|
9
|
+
export declare const getPartySecretSignedValidator: (dictionary: Record<Hash, Payload>, party: EscrowParty) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
10
|
+
//# sourceMappingURL=getPartySecretSignedValidator.d.ts.map
|
package/dist/types/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzF,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqB/I,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateWithinWindow.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAErD,eAAO,MAAM,oBAAoB,GAAI,OAAO,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAK,MAAmB,KAAG,OAG7F,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* A function that validates the escrow terms for tbe existence of appraisals
|
|
6
|
+
* @returns True if the escrow terms contain appraisals, false otherwise
|
|
7
|
+
*/
|
|
8
|
+
export declare const appraisalsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a function that validates the escrow terms for appraisals which are from valid authorities
|
|
11
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
+
* @returns A function that validates the escrow terms for appraisals which are from valid authorities
|
|
13
|
+
*/
|
|
14
|
+
export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a function that validates the escrow terms for appraisals which are valid
|
|
17
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
+
* @param minimumExp The minium amount of time an estimate needs to be valid
|
|
19
|
+
* for in the future (so as not to expire before the escrow is complete)
|
|
20
|
+
* @returns A function that validates the escrow terms for appraisals which are valid
|
|
21
|
+
*/
|
|
22
|
+
export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, Payload>, minimumExp: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns a function that validates the escrow terms to ensure that they contain an appraisal for each asset
|
|
25
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
26
|
+
* @returns A function that validates the escrow terms for appraisals
|
|
27
|
+
*/
|
|
28
|
+
export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
29
|
+
//# sourceMappingURL=appraisal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAIvC,OAAO,KAAK,EACV,OAAO,EAAE,6BAA6B,EACvC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BvI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EACjC,YAAY,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAW/H,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* A function that validates the escrow terms for appraisalAuthorities
|
|
6
|
+
* @returns True if the escrow terms contain appraisalAuthorities, false otherwise
|
|
7
|
+
*/
|
|
8
|
+
export declare const appraisalAuthoritiesExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
+
export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
10
|
+
//# sourceMappingURL=appraisalAuthorities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a function that validates the escrow terms for assets
|
|
5
|
+
* @returns A function that validates the escrow terms for assets
|
|
6
|
+
*/
|
|
7
|
+
export declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* A function that validates the escrow terms for buyer
|
|
5
|
+
* @returns True if the escrow terms contain buyer, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
+
//# sourceMappingURL=buyer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Returns a function that validates the escrow terms for buyerSecret
|
|
6
|
+
* @returns A function that validates the escrow terms for buyerSecret
|
|
7
|
+
*/
|
|
8
|
+
export declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a function that validates the escrow terms for the existence of the buyerSecret in the dictionary
|
|
11
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
+
* @returns A function that validates the escrow terms for the existence of the buyerSecret in the dictionary
|
|
13
|
+
*/
|
|
14
|
+
export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
17
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
+
* @returns A function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
19
|
+
*/
|
|
20
|
+
export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
|
+
//# sourceMappingURL=buyerSecret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,6BAA6B,CAAC,WAAW,CAQjF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS5H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE3H,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './agent.ts';
|
|
2
|
+
export * from './appraisal.ts';
|
|
3
|
+
export * from './appraisalAuthorities.ts';
|
|
4
|
+
export * from './assets.ts';
|
|
5
|
+
export * from './buyer.ts';
|
|
6
|
+
export * from './buyerSecret.ts';
|
|
7
|
+
export * from './nbfExp.ts';
|
|
8
|
+
export * from './paymentAuthorities.ts';
|
|
9
|
+
export * from './seller.ts';
|
|
10
|
+
export * from './sellerSecret.ts';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
+
export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
|
+
//# sourceMappingURL=nbfExp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,qBAAqB,MAAM,KAAG,6BAA6B,CAAC,WAAW,CActH,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
+
//# sourceMappingURL=paymentAuthorities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,qCAAqC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* A function that validates the escrow terms for seller
|
|
5
|
+
* @returns True if the escrow terms contain seller, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
+
//# sourceMappingURL=seller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Returns a function that validates the escrow terms for sellerSecret
|
|
6
|
+
* @returns A function that validates the escrow terms for sellerSecret
|
|
7
|
+
*/
|
|
8
|
+
export declare const sellerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a function that validates the escrow terms for the existence of the sellerSecret in the dictionary
|
|
11
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
+
* @returns A function that validates the escrow terms for the existence of the sellerSecret in the dictionary
|
|
13
|
+
*/
|
|
14
|
+
export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
17
|
+
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
+
* @returns A function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
19
|
+
*/
|
|
20
|
+
export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
|
+
//# sourceMappingURL=sellerSecret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,6BAA6B,CAAC,WAAW,CAQlF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS7H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE5H,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Discount } from '../Discount/index.ts';
|
|
2
|
+
import type { Payment } from '../Payment/index.ts';
|
|
3
|
+
import type { Subtotal } from '../Subtotal/index.ts';
|
|
4
|
+
import type { Total } from '../Total/index.ts';
|
|
5
|
+
/**
|
|
6
|
+
* A tuple containing the subtotal, total, and payment for an invoice.
|
|
7
|
+
*/
|
|
8
|
+
export type StandardInvoice = [Subtotal, Total, Payment];
|
|
9
|
+
/**
|
|
10
|
+
* A tuple containing the subtotal, total, payment, and discount for an invoice.
|
|
11
|
+
*/
|
|
12
|
+
export type DiscountedInvoice = [...StandardInvoice, Discount];
|
|
13
|
+
/**
|
|
14
|
+
* An invoice.
|
|
15
|
+
*/
|
|
16
|
+
export type Invoice = StandardInvoice | DiscountedInvoice;
|
|
17
|
+
//# sourceMappingURL=Invoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../src/Invoice/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;AAExD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,eAAe,EAAE,QAAQ,CAAC,CAAA;AAE9D;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Invoice/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|