UNPKG

@depay/verify-payment

Version:

A light JavaScript/TypeScript package to decode payment instructions for the DePay payment protocol.

11 lines (10 loc) 556 B
import { BlockchainIdType, BlockchainNameType, BlockchainNetworkIdType, BlockchainType, CallDataType, InputType, PaymentType, TransactionType } from "./types"; import PROTOCOL_ADDRESSES from "./addresses"; export { PROTOCOL_ADDRESSES }; export type { BlockchainNameType }; export type { BlockchainNetworkIdType }; export type { BlockchainIdType }; export type { BlockchainType }; export type { CallDataType }; export type { TransactionType }; export declare function decodePayment({ blockchain, address, transaction }: InputType): PaymentType | undefined;