UNPKG

@darkpay/dark-types

Version:

JavaScript type definitions for Darkdot blockchain.

14 lines (13 loc) 778 B
import { AccountId } from '@polkadot/types/interfaces'; import BN from 'bn.js'; import { StorefrontId, ProductId, Ordering, OrderingId, Storefront, Product, ReactionId, SwapId, RedeemId } from '.'; import { SocialAccountWithId } from '../../dto'; export declare type SubstrateId = StorefrontId | ProductId | OrderingId | BN; export declare type CommonStruct = Storefront | Product | Ordering | SocialAccountWithId; export declare type AnyAccountId = AccountId | string; export declare type AnyStorefrontId = StorefrontId | BN; export declare type AnyProductId = ProductId | BN; export declare type AnyOrderingId = OrderingId | BN; export declare type AnyReactionId = ReactionId | BN; export declare type AnySwapId = SwapId | BN; export declare type AnyRedeemId = RedeemId | BN;