UNPKG

@anuragchvn-blip/mandatekit

Version:

Production-ready Web3 autopay SDK for crypto-based recurring payments using EIP-712 mandates

38 lines 1.67 kB
/** * MandateKit SDK - Main entry point * Production-ready Web3 autopay SDK for crypto-based recurring payments * @module mandatekit */ export * from './types/index.js'; export * from './errors/index.js'; export * from './utils/index.js'; export * from './client/index.js'; export * from './relayer/index.js'; export * from './contracts/index.js'; export * from './adapters/index.js'; export { createMandateClient, type MandateClient, type MandateClientConfig, } from './client/index.js'; export { createRelayerClient, createScheduler, type RelayerClient } from './relayer/index.js'; export { MANDATE_REGISTRY_ABI, ERC20_ABI, getRegistryAddress, isDeployedOnChain, } from './contracts/index.js'; export { cadenceToSeconds, calculateNextExecution, isPaymentDue, describeCadence, generateExecutionSchedule, } from './utils/cadence.js'; export { hashMandate, prepareMandateTypedData, recoverMandateSigner, generateNonce, generateMandateId, } from './utils/crypto.js'; export { validateMandate, validateSignedMandate, isMandateActive, verifyMandateForExecution, } from './utils/validation.js'; /** * SDK version */ export declare const VERSION = "1.0.0"; /** * SDK configuration defaults */ export declare const DEFAULTS: { /** Default domain name for EIP-712 */ readonly DOMAIN_NAME: "MandateRegistry"; /** Default domain version */ readonly DOMAIN_VERSION: "1"; /** Default gas limit for mandate execution */ readonly GAS_LIMIT: 200000n; /** Default gas price strategy */ readonly GAS_STRATEGY: "standard"; /** Default scheduler interval (seconds) */ readonly SCHEDULER_INTERVAL: 60; }; //# sourceMappingURL=index.d.ts.map