Skip to content

Instantly share code, notes, and snippets.

@hantuzun
Last active February 9, 2023 08:27
Show Gist options
  • Save hantuzun/a8b4c169de8960c3b6586455ce836df5 to your computer and use it in GitHub Desktop.
Save hantuzun/a8b4c169de8960c3b6586455ce836df5 to your computer and use it in GitHub Desktop.
turkey relief dao data
// All the cryptocurrency networks must be listed here
const NETWORKS = [
'Bitcoin',
'Ethereum',
'Avalanche',
'Binance',
'Polygon',
'Solana',
'Cosmos',
'Polkadot',
'Tron',
];
type Network = typeof NETWORKS[number];
const OPTION_TYPES = [
'cryptocurrency',
'bank',
'btcturk',
'card',
'nft',
];
type OptionType = typeof OPTION_TYPES[number];
interface Option {
type: OptionType,
name: string,
address?: string,
sourceURLs?: string,
linkName?: string,
linkUrl?: string,
info?: string,
warning?: string,
}
const categoryDetails: {[index: string]:any} = {
governmental: {
name: 'Governmental',
classes: 'bg-gray-100 text-gray-800',
},
ngo: {
name: 'NGO',
classes: 'bg-green-100 text-green-800',
},
individual: {
name: 'Individual',
classes: 'bg-amber-100 text-amber-800',
},
turkish: {
name: 'Turkish',
classes: 'bg-red-100 text-red-800',
},
international: {
name: 'International',
classes: 'bg-blue-100 text-blue-800',
},
}
// All of the icons should be SVGs
// Click "raw" and copy the url from the list at https://github.com/spothq/cryptocurrency-icons/tree/master/svg/color
// All option types except "cryptocurrency" and "nft" must have an icon in this map.
// All "cryptocurrency" and "nft" types must have exact names in their respective maps.
const icons: {[index: string]:any} = {
cryptocurrencies: {
'Bitcoin': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/btc.svg',
'Ethereum': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/eth.svg',
'Avalanche': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/avax.svg',
'Binance': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/bnb.svg',
'Polygon': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/matic.svg',
'Solana': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/sol.svg',
'Cosmos': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/atom.svg',
'Polkadot': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/dot.svg',
'Tron': 'https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/svg/color/trx.svg',
},
bank: './icons/bank.svg',
btcturk: './icons/btcturk.svg',
card: './icons/card.svg',
nft: './icons/nft.svg',
};
// All entries must have the following: name, description, logoUrl, websiteUrl, twitterUrl, popularity, endorsementUrls, categories, options
// Categories must include:
// * One of: governmental, ngo, individual
// * One of: turkish, international
// All options must have the following: type, name
// * If an option has "cryptocurrency" type, it must include: address, sourceUrls
// * If an option has another type, it must include: linkName, linkUrl
// * Options could have the following: info, warning
const organizations = [
{
name: 'AFAD',
description: 'Disaster and Emergency Management Authority, an institution working to prevent disasters and minimize disaster-related damages, plan and coordinate post-disaster response, and promote cooperation among various government agencies.',
logoUrl: './icons/organizations/afad.svg',
websiteUrl: 'https://en.afad.gov.tr/',
twitterUrl: 'https://twitter.com/AFADTurkiye',
popularity: 6,
endorsementUrls: [],
categories: ['turkish', 'governmental'],
options: [
{
type: 'cryptocurrency',
name: 'Bitcoin',
address: 'bc1q30uv6s9gwyzq2fd5hhc06v7xge3zzg3qa99vuv0w5dfmxgq8vnws97dpcl',
sourceUrls: ['https://donation.btcturk.com/', 'https://twitter.com/btcturkpro/status/1623344419976929282'],
},
{
type: 'cryptocurrency',
name: 'Ethereum',
address: '0x64A994CC850a56e87331d880A23A69b16dbFC8ea',
sourceUrls: ['https://donation.btcturk.com/', 'https://twitter.com/btcturkpro/status/1623344419976929282'],
warning: 'Only send ETH or USDT as this is an exchange wallet',
},
{
type: 'bank',
name: 'Bank Accounts',
linkName: 'The list of AFAD bank accounts on their official website',
linkUrl: 'https://en.afad.gov.tr/earthquake-donation-accounts',
},
{
type: 'btcturk',
name: 'BtcTurk',
linkName: 'Instructions for donating Turkish Lira from BtcTurk',
linkUrl: 'https://pro.btcturk.com/deprem-bagis',
info: 'Matched 1:1 by BtcTurk',
warning: 'Only Turkish citizens can register to BtcTurk',
},
],
},
{
name: 'Ahbap',
description: 'A Turkey based non-profit organization established on the principles of solidarity and cooperation, founded by the Turkish musician and philanthropist, Haluk Levent.',
logoUrl: './icons/organizations/ahbap.png',
websiteUrl: 'https://ahbap.org/',
twitterUrl: 'https://twitter.com/ahbap',
popularity: 10,
endorsementUrls: ['https://twitter.com/avalancheavax/status/1622975707528962049'],
categories: ['turkish', 'ngo'],
options: [
{
type: 'cryptocurrency',
name: 'Ethereum',
address: '0xe1935271D1993434A1a59fE08f24891Dc5F398Cd',
sourceUrls: ['https://twitter.com/ahbap/status/1622963311514996739'],
},
{
type: 'cryptocurrency',
name: 'Avalanche',
address: '0x868D27c361682462536DfE361f2e20B3A6f4dDD8',
sourceUrls: ['https://twitter.com/ahbap/status/1622963311514996739'],
},
{
type: 'cryptocurrency',
name: 'Binance',
address: '0xB67705398fEd380a1CE02e77095fed64f8aCe463',
sourceUrls: ['https://twitter.com/ahbap/status/1622963311514996739'],
},
{
type: 'bank',
name: 'Bank Accounts',
linkName: 'The list of Ahbap bank accounts on their official website',
linkUrl: 'https://ahbap.org/disasters-turkey',
},
],
},
{
name: 'Needs Map (İhtiyaç Haritası)',
description: 'An online social platform cooperative based in Türkiye, where individuals and organizations wishing to support those in need can connect',
logoUrl: './icons/organizations/needsmap.png',
websiteUrl: 'https://www.needsmap.coop/',
twitterUrl: 'https://twitter.com/ihtiyacharitasi',
popularity: 1,
endorsementUrls: ['https://twitter.com/iksv_istanbul/status/1622936410704560129'], // Turkish
categories: ['turkish', 'ngo'],
options: [
{
type: 'cryptocurrency',
name: 'Ethereum',
address: '0xbe4cde5eeeed1f0a97a9457f6ef5b71eae108652',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send ETH, USDC, USDT or TRYC as this is an exchange wallet',
},
{
type: 'cryptocurrency',
name: 'Bitcoin',
address: '3PkihQfm6doGW41uZ5Q9GFNw6XpEK5g9Vk',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send BTC as this is an exchange wallet',
},
{
type: 'cryptocurrency',
name: 'Polygon',
address: '0xbe4cde5eeeed1f0a97a9457f6ef5b71eae108652',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send MATIC as this is an exchange wallet',
},
{
type: 'cryptocurrency',
name: 'Solana',
address: 'Fjo5AeFMbUD6gjoWKbVuMXRcPsjpXKksjKLxPFuXQhaK',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send SOL as this is an exchange wallet',
},
{
type: 'cryptocurrency',
name: 'Cosmos',
address: 'cosmos1dm68mx9jcsyqkyzp3up7gmnu3ku84v8gf6v75u',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send ATOM with MEMO: 624143',
},
{
type: 'cryptocurrency',
name: 'Polkadot',
address: '1haY6iHgLopw2WWmPhcdCy2jwzL2jthbNL515rUyJtnmhUt',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send DOT as this is an exchange wallet'
},
{
type: 'cryptocurrency',
name: 'Tron',
address: 'TUAum5Q3GWZvzsS1yQaDdjkDAzp3HbvKTT',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send TRX as this is an exchange wallet'
},
{
type: 'card',
name: 'Credit Card',
linkName: 'Option of Credit Card on their official website',
linkUrl: 'https://fonzip.com/ihtiyacharitasi/onlineimece',
},
],
},
{
name: 'Community Volunteers Foundation',
description: 'The Community Volunteer Foundation is a Turkish organization that helps young people uncover their potential through education and project development, while also addressing their housing, scholarship, and cultural needs.',
logoUrl: './icons/organizations/tog.svg',
websiteUrl: 'https://www.tog.org.tr/',
twitterUrl: 'https://twitter.com/TOGVakfi',
popularity: 4,
endorsementUrls: ['https://www.tog.org.tr/destekcilerimiz/kurumsal-destekcilerimiz/'], // Turkish
categories: ['turkish', 'ngo'],
options: [
{
type: 'cryptocurrency',
name: 'Ethereum',
address: '0x9b40f98ccc326beaa0bfb94cfa8bfc6383a267e5',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send ETH as this is an exchange wallet',
},
{
type: 'cryptocurrency',
name: 'Tron',
address: 'TCJ2qvKJsXE4XZD2VcyeppDWmZUGfLShMm',
sourceUrls: ['https://www.paribu.com/blog/haberler/afet-destek-planimiz-ve-kripto-para-ile-bagis-organizasyonu-hakkinda/'], // Turkish
warning: 'Only send TRX as this is an exchange wallet'
},
{
type: 'card',
name: 'Credit Card',
linkName: 'Option of Credit Card on their official website',
linkUrl: 'https://www.tog.org.tr/bagisci-ol/#tek-seferlik-bagis',
},
{
type: 'bank',
name: 'Bank Accounts',
linkName: 'The list of bank accounts on the official website',
linkUrl: 'https://www.tog.org.tr/bagisci-ol/#1630673115839-aeef1bfb-85a7',
},
],
},
{
name: 'Earthquake Türkiye 2023 by Murat Pak',
description: 'Distinguished Turkish NFT artist Pak has built an NFT platform for raising funds for the relief effort. All donations are promised to be channelled to Ahbap.',
logoUrl: './icons/organizations/cause.svg',
websiteUrl: 'https://cause.quest/',
twitterUrl: 'https://twitter.com/muratpak',
popularity: 2,
endorsementUrls: ['https://twitter.com/beeple/status/1623107218567581697'],
categories: ['turkish', 'individual'],
options: [
{
type: 'nft',
name: 'Cause #1',
linkName: 'Mint Earthquake Türkiye 2023 NFTs',
linkUrl: 'https://cause.quest',
warning: 'Non-transferable',
},
],
},
];