@xyo-network/payment-payload-plugins 3.0.2 → 3.0.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/Billing/Address/Address.d.ts +24 -0
- package/dist/neutral/Billing/Address/Address.d.ts.map +1 -0
- package/dist/neutral/Billing/Address/Schema.d.ts +3 -0
- package/dist/neutral/Billing/Address/Schema.d.ts.map +1 -0
- package/dist/neutral/Billing/Address/index.d.ts +3 -0
- package/dist/neutral/Billing/Address/index.d.ts.map +1 -0
- package/dist/neutral/Billing/Schema.d.ts +3 -0
- package/dist/neutral/Billing/Schema.d.ts.map +1 -0
- package/dist/neutral/Billing/index.d.ts +3 -0
- package/dist/neutral/Billing/index.d.ts.map +1 -0
- package/dist/neutral/Currency.d.ts +2 -0
- package/dist/neutral/Currency.d.ts.map +1 -0
- package/dist/neutral/Escrow/Outcome.d.ts +14 -0
- package/dist/neutral/Escrow/Outcome.d.ts.map +1 -0
- package/dist/neutral/Escrow/Schema.d.ts +3 -0
- package/dist/neutral/Escrow/Schema.d.ts.map +1 -0
- package/dist/neutral/Escrow/Terms.d.ts +28 -0
- package/dist/neutral/Escrow/Terms.d.ts.map +1 -0
- package/dist/neutral/Escrow/createEscrowIntent.d.ts +28 -0
- package/dist/neutral/Escrow/createEscrowIntent.d.ts.map +1 -0
- package/dist/neutral/Escrow/getEscrowSecret.d.ts +3 -0
- package/dist/neutral/Escrow/getEscrowSecret.d.ts.map +1 -0
- package/dist/neutral/Escrow/index.d.ts +7 -0
- package/dist/neutral/Escrow/index.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +2 -0
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +6 -0
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +2 -0
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +6 -0
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/common/index.d.ts +3 -0
- package/dist/neutral/Escrow/validators/common/index.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts +5 -0
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +8 -0
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +6 -0
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts +4 -0
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +4 -0
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +7 -0
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/index.d.ts +11 -0
- package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +4 -0
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +5 -0
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts +4 -0
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +7 -0
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/index.d.ts +3 -0
- package/dist/neutral/Escrow/validators/index.d.ts.map +1 -0
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +20 -0
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -0
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +3 -0
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +1 -0
- package/dist/neutral/Payment/Instrument/Card/index.d.ts +3 -0
- package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +1 -0
- package/dist/neutral/Payment/Instrument/Schema.d.ts +3 -0
- package/dist/neutral/Payment/Instrument/Schema.d.ts.map +1 -0
- package/dist/neutral/Payment/Instrument/index.d.ts +3 -0
- package/dist/neutral/Payment/Instrument/index.d.ts.map +1 -0
- package/dist/neutral/Payment/Payload.d.ts +12 -0
- package/dist/neutral/Payment/Payload.d.ts.map +1 -0
- package/dist/neutral/Payment/Schema.d.ts +3 -0
- package/dist/neutral/Payment/Schema.d.ts.map +1 -0
- package/dist/neutral/Payment/Status/Payload.d.ts +11 -0
- package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -0
- package/dist/neutral/Payment/Status/Schema.d.ts +3 -0
- package/dist/neutral/Payment/Status/Schema.d.ts.map +1 -0
- package/dist/neutral/Payment/Status/index.d.ts +3 -0
- package/dist/neutral/Payment/Status/index.d.ts.map +1 -0
- package/dist/neutral/Payment/index.d.ts +5 -0
- package/dist/neutral/Payment/index.d.ts.map +1 -0
- package/dist/neutral/Purchase/Payload.d.ts +12 -0
- package/dist/neutral/Purchase/Payload.d.ts.map +1 -0
- package/dist/neutral/Purchase/Schema.d.ts +3 -0
- package/dist/neutral/Purchase/Schema.d.ts.map +1 -0
- package/dist/neutral/Purchase/index.d.ts +3 -0
- package/dist/neutral/Purchase/index.d.ts.map +1 -0
- package/dist/neutral/Receipt/Payload.d.ts +12 -0
- package/dist/neutral/Receipt/Payload.d.ts.map +1 -0
- package/dist/neutral/Receipt/Schema.d.ts +3 -0
- package/dist/neutral/Receipt/Schema.d.ts.map +1 -0
- package/dist/neutral/Receipt/index.d.ts +3 -0
- package/dist/neutral/Receipt/index.d.ts.map +1 -0
- package/dist/neutral/Schema.d.ts +3 -0
- package/dist/neutral/Schema.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +7 -218
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs +15 -3
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +34 -34
- package/src/Billing/Address/Address.ts +4 -1
- package/src/Escrow/Outcome.ts +2 -2
- package/src/Escrow/Terms.ts +5 -2
- package/src/Escrow/createEscrowIntent.ts +3 -3
- package/src/Escrow/getEscrowSecret.ts +2 -1
- package/src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts +3 -3
- package/src/Escrow/validators/escrow/agent.ts +3 -3
- package/src/Escrow/validators/escrow/appraisal.ts +9 -5
- package/src/Escrow/validators/escrow/appraisalAuthorities.ts +3 -3
- package/src/Escrow/validators/escrow/assets.ts +2 -2
- package/src/Escrow/validators/escrow/buyer.ts +2 -2
- package/src/Escrow/validators/escrow/buyerSecret.ts +5 -3
- package/src/Escrow/validators/escrow/nbfExp.ts +2 -2
- package/src/Escrow/validators/escrow/paymentAuthorities.ts +3 -3
- package/src/Escrow/validators/escrow/seller.ts +2 -2
- package/src/Escrow/validators/escrow/sellerSecret.ts +5 -3
- package/src/Payment/Instrument/Card/Payload.ts +4 -1
- package/src/Payment/Payload.ts +2 -2
- package/src/Payment/Status/Payload.ts +1 -1
- package/src/Purchase/Payload.ts +2 -2
- package/src/Receipt/Payload.ts +2 -2
- package/xy.config.ts +2 -4
package/package.json
CHANGED
|
@@ -1,33 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payment-payload-plugins",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"url": "https://xyo.network"
|
|
7
|
-
},
|
|
3
|
+
"version": "3.0.4",
|
|
4
|
+
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
|
+
"homepage": "https://xyo.network",
|
|
8
6
|
"bugs": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
7
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins/issues",
|
|
8
|
+
"email": "support@xyo.network"
|
|
11
9
|
},
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"@xylabs/hex": "^4.0.1",
|
|
16
|
-
"@xyo-network/account-model": "^3.0.2",
|
|
17
|
-
"@xyo-network/boundwitness-builder": "^3.0.2",
|
|
18
|
-
"@xyo-network/boundwitness-model": "^3.0.2",
|
|
19
|
-
"@xyo-network/boundwitness-validator": "^3.0.2",
|
|
20
|
-
"@xyo-network/diviner-hash-lease": "^3.0.2",
|
|
21
|
-
"@xyo-network/id-payload-plugin": "^3.0.2",
|
|
22
|
-
"@xyo-network/module-model": "^3.0.2",
|
|
23
|
-
"@xyo-network/payload-model": "^3.0.2"
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins.git"
|
|
24
13
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
14
|
+
"license": "LGPL-3.0-only",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "XYO Development Team",
|
|
17
|
+
"email": "support@xyo.network",
|
|
18
|
+
"url": "https://xyo.network"
|
|
29
19
|
},
|
|
30
|
-
"
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
31
22
|
"exports": {
|
|
32
23
|
".": {
|
|
33
24
|
"types": "./dist/neutral/index.d.ts",
|
|
@@ -37,16 +28,25 @@
|
|
|
37
28
|
},
|
|
38
29
|
"module": "dist/neutral/index.mjs",
|
|
39
30
|
"types": "dist/neutral/index.d.ts",
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@xylabs/assert": "^4.0.4",
|
|
33
|
+
"@xylabs/crypto": "^4.0.4",
|
|
34
|
+
"@xylabs/hex": "^4.0.4",
|
|
35
|
+
"@xyo-network/account-model": "^3.0.10",
|
|
36
|
+
"@xyo-network/boundwitness-builder": "^3.0.10",
|
|
37
|
+
"@xyo-network/boundwitness-model": "^3.0.10",
|
|
38
|
+
"@xyo-network/boundwitness-validator": "^3.0.10",
|
|
39
|
+
"@xyo-network/diviner-hash-lease": "^3.0.10",
|
|
40
|
+
"@xyo-network/id-payload-plugin": "^3.0.10",
|
|
41
|
+
"@xyo-network/module-model": "^3.0.10",
|
|
42
|
+
"@xyo-network/payload-model": "^3.0.10"
|
|
44
43
|
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
46
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
47
|
+
"typescript": "^5.5.4"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
+
import {
|
|
3
|
+
isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,
|
|
4
|
+
} from '@xyo-network/payload-model'
|
|
2
5
|
|
|
3
6
|
import { BillingAddressSchema } from './Schema.ts'
|
|
4
7
|
|
package/src/Escrow/Outcome.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { PayloadWithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
5
|
isPayloadOfSchemaTypeWithMeta,
|
|
5
6
|
isPayloadOfSchemaTypeWithSources,
|
|
6
|
-
PayloadWithSources,
|
|
7
7
|
} from '@xyo-network/payload-model'
|
|
8
8
|
|
|
9
9
|
import { EscrowSchema } from './Schema.ts'
|
package/src/Escrow/Terms.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { Address, Hash } from '@xylabs/hex'
|
|
2
|
-
import {
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex'
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
3
|
+
import {
|
|
4
|
+
isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
} from '@xyo-network/payload-model'
|
|
3
6
|
|
|
4
7
|
import { EscrowSchema } from './Schema.ts'
|
|
5
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AccountInstance } from '@xyo-network/account-model'
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
3
|
-
import { IdPayload } from '@xyo-network/id-payload-plugin'
|
|
3
|
+
import type { IdPayload } from '@xyo-network/id-payload-plugin'
|
|
4
4
|
|
|
5
|
-
import { EscrowTerms } from './Terms.ts'
|
|
5
|
+
import type { EscrowTerms } from './Terms.ts'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates an escrow intent
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Crypto } from '@xylabs/crypto'
|
|
2
|
-
import { IdPayload
|
|
2
|
+
import type { IdPayload } from '@xyo-network/id-payload-plugin'
|
|
3
|
+
import { IdSchema } from '@xyo-network/id-payload-plugin'
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Returns a cryptographically random secret to use for escrow
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
-
import { PayloadValueExpression } from '@xyo-network/payload-model'
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { PayloadValueExpression } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../../Terms.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../../Terms.ts'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
-
import { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
5
5
|
import { moduleIdentifiersContainsOneOf } from '../common/index.ts'
|
|
6
6
|
|
|
7
7
|
const name = 'EscrowTerms.escrowAgent'
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { Hash } from '@xylabs/hex'
|
|
3
|
-
import { BoundWitness
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import { isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'
|
|
5
|
+
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease'
|
|
6
|
+
import { isHashLeaseEstimateWithSources } from '@xyo-network/diviner-hash-lease'
|
|
7
|
+
import type {
|
|
8
|
+
Payload, PayloadValidationFunction, WithMeta, WithSources,
|
|
9
|
+
} from '@xyo-network/payload-model'
|
|
6
10
|
|
|
7
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
11
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
8
12
|
import { validateWithinWindow } from '../common/index.ts'
|
|
9
13
|
|
|
10
14
|
const name = 'EscrowTerms.appraisal'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { asAddress } from '@xylabs/hex'
|
|
2
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
3
|
-
import { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
3
|
+
import type { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
5
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
6
6
|
import { moduleIdentifiersContainsAllOf } from '../common/index.ts'
|
|
7
7
|
|
|
8
8
|
const name = 'EscrowTerms.appraisalAuthorities'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
3
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
4
4
|
|
|
5
5
|
const name = 'EscrowTerms.assets'
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { asAddress } from '@xylabs/hex'
|
|
2
|
-
import { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
|
+
import type { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
5
5
|
|
|
6
6
|
const name = 'EscrowTerms.buyer'
|
|
7
7
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
3
|
import { isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'
|
|
4
4
|
import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
|
+
Payload, PayloadValidationFunction, WithMeta,
|
|
7
|
+
} from '@xyo-network/payload-model'
|
|
6
8
|
|
|
7
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
9
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
8
10
|
|
|
9
11
|
const name = 'EscrowTerms.buyerSecret'
|
|
10
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
3
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
4
4
|
|
|
5
5
|
export const getNbfExpValidator = (now: number, minRequiredDuration: number): PayloadValidationFunction<EscrowTerms> => {
|
|
6
6
|
const minExp = now + minRequiredDuration
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
-
import { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
5
5
|
import { moduleIdentifiersContainsAllOf } from '../common/index.ts'
|
|
6
6
|
|
|
7
7
|
const name = 'EscrowTerms.paymentAuthorities'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { asAddress } from '@xylabs/hex'
|
|
2
|
-
import { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
|
+
import type { PayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
5
5
|
|
|
6
6
|
const name = 'EscrowTerms.seller'
|
|
7
7
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
3
|
import { isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'
|
|
4
4
|
import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
|
+
Payload, PayloadValidationFunction, WithMeta,
|
|
7
|
+
} from '@xyo-network/payload-model'
|
|
6
8
|
|
|
7
|
-
import { EscrowTerms } from '../../Terms.ts'
|
|
9
|
+
import type { EscrowTerms } from '../../Terms.ts'
|
|
8
10
|
|
|
9
11
|
const name = 'EscrowTerms.sellerSecret'
|
|
10
12
|
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
+
import {
|
|
3
|
+
isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,
|
|
4
|
+
} from '@xyo-network/payload-model'
|
|
2
5
|
|
|
3
6
|
import { PaymentCardSchema } from './Schema.ts'
|
|
4
7
|
|
package/src/Payment/Payload.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { PayloadWithSources } from '@xyo-network/payload-model'
|
|
1
2
|
import {
|
|
2
3
|
isPayloadOfSchemaType,
|
|
3
4
|
isPayloadOfSchemaTypeWithMeta,
|
|
4
5
|
isPayloadOfSchemaTypeWithSources,
|
|
5
|
-
PayloadWithSources,
|
|
6
6
|
} from '@xyo-network/payload-model'
|
|
7
7
|
|
|
8
|
-
import { SupportedCurrency } from '../Currency.ts'
|
|
8
|
+
import type { SupportedCurrency } from '../Currency.ts'
|
|
9
9
|
import { PaymentSchema } from './Schema.ts'
|
|
10
10
|
|
|
11
11
|
export interface PaymentFields {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { PayloadWithSources } from '@xyo-network/payload-model'
|
|
1
2
|
import {
|
|
2
3
|
isPayloadOfSchemaType,
|
|
3
4
|
isPayloadOfSchemaTypeWithMeta,
|
|
4
5
|
isPayloadOfSchemaTypeWithSources,
|
|
5
|
-
PayloadWithSources,
|
|
6
6
|
} from '@xyo-network/payload-model'
|
|
7
7
|
|
|
8
8
|
import { PaymentStatusSchema } from './Schema.ts'
|
package/src/Purchase/Payload.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { PayloadWithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
5
|
isPayloadOfSchemaTypeWithMeta,
|
|
5
6
|
isPayloadOfSchemaTypeWithSources,
|
|
6
|
-
PayloadWithSources,
|
|
7
7
|
} from '@xyo-network/payload-model'
|
|
8
8
|
|
|
9
9
|
import { PurchaseSchema } from './Schema.ts'
|
package/src/Receipt/Payload.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { PayloadWithSources } from '@xyo-network/payload-model'
|
|
1
2
|
import {
|
|
2
3
|
isPayloadOfSchemaType,
|
|
3
4
|
isPayloadOfSchemaTypeWithMeta,
|
|
4
5
|
isPayloadOfSchemaTypeWithSources,
|
|
5
|
-
PayloadWithSources,
|
|
6
6
|
} from '@xyo-network/payload-model'
|
|
7
7
|
|
|
8
|
-
import { SupportedCurrency } from '../Currency.ts'
|
|
8
|
+
import type { SupportedCurrency } from '../Currency.ts'
|
|
9
9
|
import { ReceiptSchema } from './Schema.ts'
|
|
10
10
|
|
|
11
11
|
export interface ReceiptFields {
|
package/xy.config.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
|
|
1
|
+
import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
|
|
2
2
|
const config: XyTsupConfig = {
|
|
3
3
|
compile: {
|
|
4
4
|
browser: {},
|
|
5
|
-
neutral: {
|
|
6
|
-
src: true,
|
|
7
|
-
},
|
|
5
|
+
neutral: { src: true },
|
|
8
6
|
node: {},
|
|
9
7
|
},
|
|
10
8
|
}
|