Skip to main content

utils.validation

@bosonprotocol/common / Exports / utils / validation

Namespace: validation

utils.validation

Table of contents

Variables

Functions

Variables

createOfferArgsSchema

Const createOfferArgsSchema: OptionalObjectSchema<{ buyerCancelPenalty: RequiredStringSchema<string, AnyObject> ; disputePeriodDurationInMS: RequiredStringSchema<string, AnyObject> ; exchangeToken: RequiredStringSchema<string, AnyObject> ; metadataHash: RequiredStringSchema<string, AnyObject> ; metadataUri: RequiredStringSchema<string, AnyObject> ; price: RequiredStringSchema<string, AnyObject> ; quantityAvailable: RequiredStringSchema<string, AnyObject> ; resolutionPeriodDurationInMS: RequiredStringSchema<string, AnyObject> ; sellerDeposit: RequiredStringSchema<string, AnyObject> ; validFromDateInMS: RequiredStringSchema<string, AnyObject> ; validUntilDateInMS: RequiredStringSchema<string, AnyObject> ; voucherRedeemableFromDateInMS: RequiredStringSchema<string, AnyObject> ; voucherRedeemableUntilDateInMS: RequiredStringSchema<string, AnyObject> ; voucherValidDurationInMS: default<string, AnyObject, string> }, AnyObject, TypeOfShape<{ buyerCancelPenalty: RequiredStringSchema<string, AnyObject> ; disputePeriodDurationInMS: RequiredStringSchema<string, AnyObject> ; exchangeToken: RequiredStringSchema<string, AnyObject> ; metadataHash: RequiredStringSchema<string, AnyObject> ; metadataUri: RequiredStringSchema<string, AnyObject> ; price: RequiredStringSchema<string, AnyObject> ; quantityAvailable: RequiredStringSchema<string, AnyObject> ; resolutionPeriodDurationInMS: RequiredStringSchema<string, AnyObject> ; sellerDeposit: RequiredStringSchema<string, AnyObject> ; validFromDateInMS: RequiredStringSchema<string, AnyObject> ; validUntilDateInMS: RequiredStringSchema<string, AnyObject> ; voucherRedeemableFromDateInMS: RequiredStringSchema<string, AnyObject> ; voucherRedeemableUntilDateInMS: RequiredStringSchema<string, AnyObject> ; voucherValidDurationInMS: default<string, AnyObject, string> }>>

Defined in

src/utils/validation.ts:23


createSellerArgsSchema

Const createSellerArgsSchema: OptionalObjectSchema<{ admin: RequiredStringSchema<string, AnyObject> ; clerk: RequiredStringSchema<string, AnyObject> ; contractUri: RequiredStringSchema<string, AnyObject> ; operator: RequiredStringSchema<string, AnyObject> ; treasury: RequiredStringSchema<string, AnyObject> }, AnyObject, TypeOfShape<{ admin: RequiredStringSchema<string, AnyObject> ; clerk: RequiredStringSchema<string, AnyObject> ; contractUri: RequiredStringSchema<string, AnyObject> ; operator: RequiredStringSchema<string, AnyObject> ; treasury: RequiredStringSchema<string, AnyObject> }>>

Defined in

src/utils/validation.ts:144

Functions

validateMetadata

validateMetadata(metadata): boolean

Parameters

NameType
metadataAnyMetadata

Returns

boolean

Defined in

node_modules/@bosonprotocol/metadata/dist/cjs/index.d.ts:12