@anuragchvn-blip/mandatekit
Version:
Production-ready Web3 autopay SDK for crypto-based recurring payments using EIP-712 mandates
40 lines • 1.62 kB
JavaScript
/**
* MandateKit SDK - Main entry point
* Production-ready Web3 autopay SDK for crypto-based recurring payments
* @module mandatekit
*/
// Re-export all public APIs
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';
// Convenience re-exports for common use cases
export { createMandateClient, } from './client/index.js';
export { createRelayerClient, createScheduler } 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 const VERSION = '1.0.0';
/**
* SDK configuration defaults
*/
export const DEFAULTS = {
/** Default domain name for EIP-712 */
DOMAIN_NAME: 'MandateRegistry',
/** Default domain version */
DOMAIN_VERSION: '1',
/** Default gas limit for mandate execution */
GAS_LIMIT: 200000n,
/** Default gas price strategy */
GAS_STRATEGY: 'standard',
/** Default scheduler interval (seconds) */
SCHEDULER_INTERVAL: 60,
};
//# sourceMappingURL=index.js.map