goodrdotfun-sdk
Version:
SDK for interacting with goodr.fun and Sonic on Solana
31 lines (30 loc) • 1.37 kB
TypeScript
import { PublicKey } from '@solana/web3.js';
import { ChainType } from '../types/common';
export declare const enum DonationDestinationName {
CustomDonation = "Custom Donation",
HealthcareAndWellbeing = "Healthcare and Well-being",
FoodSecurityAndPovertyAlleviation = "Food Security and Poverty Alleviation",
ChildrenAndYouth = "Children and Youth",
DisasterReliefAndHumanitarianAid = "Disaster Relief and Humanitarian Aid",
Biodiversity = "Biodiversity",
Forests = "Forests",
WaterResources = "Water Resources",
Climate = "Climate",
KnowledgeAndScience = "Knowledge and Science",
Education = "Education",
GenderEquality = "Gender Equality",
CultureAndTradition = "Culture and Tradition",
Energy = "Energy",
AI = "AI",
Technology = "Technology",
NoDonation = "No Donation"
}
export type DonationDestination = {
id: number;
address: PublicKey;
name: DonationDestinationName;
};
export declare const SONIC_DONATION_DESTINATIONS: Record<number, DonationDestination>;
export declare const SOLANA_DONATION_DESTINATIONS: Record<number, DonationDestination>;
export declare const getDonationDestinationFromId: (chainType: ChainType, id: number) => DonationDestination;
export declare const getDonationDestinationFromName: (chainType: ChainType, name: DonationDestinationName) => DonationDestination;