Skip to content

Instantly share code, notes, and snippets.

View alvseven's full-sized avatar

Alves alvseven

View GitHub Profile
@alvseven
alvseven / sdk-usage.ts
Created September 5, 2025 22:26
Node sdk for blindpay
const blindpay = new Blindpay("sk_test_1234567890");
// Usage examples for all available SDK methods:
// Payins
blindpay.payins.createEvm({} as any);
blindpay.payins.export({} as any);
blindpay.payins.get({} as any);
blindpay.payins.getTrack({} as any);
@alvseven
alvseven / workflow-dev.yaml
Created December 11, 2023 15:49
github actions pipeline with dependencies cache, eslint and tests run
name: Run Eslint And Tests
on:
pull_request:
branches:
- development # the branches you want
push:
branches:
- development # you probably you dont need this if you are using branch protection/gitflow
@alvseven
alvseven / custom-error-map.ts
Last active September 15, 2024 00:19
Zod custom error map
import { type ZodErrorMap, z } from 'zod';
// Error map
type Error = Parameters<ZodErrorMap>['0'];
type Ctx = Parameters<ZodErrorMap>['1'];
type Field = string | number | undefined;
export class ZodCustomErrorMap {
public errorMap(error: Error, ctx: Ctx) {