UNPKG

@heliofi/solana-adapter-v1

Version:

API to interact with Helio Finances program on Solana.

47 lines (46 loc) 1.11 kB
import { PublicKey } from '@solana/web3.js'; export declare type CreatePaymentRequest = { amount: string; startAt: string; endAt: string; interval: number; sender: PublicKey; recipient: PublicKey; paymentAccount: PublicKey; mintAddress?: PublicKey; }; export declare type CancelPaymentRequest = { sender: PublicKey; recipient: PublicKey; payment: PublicKey; mintAddress?: PublicKey; }; export declare type WithdrawRequest = { recipient: PublicKey; payment: PublicKey; mintAddress?: PublicKey; }; export declare type TopupRequest = { amount: string; sender: PublicKey; payment: PublicKey; mintAddress?: PublicKey; }; export declare type SinglePaymentRequest = { amount: string; sender: PublicKey; recipient: PublicKey; mintAddress: PublicKey; }; export declare type SingleTransactionProps = { transactionSignature: string; amount: string; sender: string; recipient: string; currency?: string; }; export interface Account { pubkey: PublicKey; isWritable: boolean; isSigner: boolean; }