Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864917
config.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Subscribers
None
config.ts
View Options
// Copyright (c) 2024 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
import
{
SendMessageOptions
}
from
'node-telegram-bot-api'
;
interface
CryptoSlug
{
coingeckoSlug
:
string
;
ticker
:
string
;
}
export
type
FiatCode
=
'usd'
|
'eur'
|
'gbp'
|
'jpy'
;
export
interface
HeraldPriceApi
{
apiBase
:
string
;
cryptos
:
CryptoSlug
[];
fiat
:
FiatCode
;
precision
:
number
;
}
export
interface
HeraldConfig
{
cacheTtlMsecs
:
number
;
xecSendDisplayCount
:
number
;
chronik
:
string
[];
blockExplorer
:
string
;
tokenLandingBase
:
string
;
priceApi
:
HeraldPriceApi
;
fiatReference
:
{
usd
:
string
;
jpy
:
string
;
eur
:
string
;
gbp
:
string
};
stakingRewardApiUrl
:
string
;
ifpAddress
:
string
;
tgMsgOptions
:
SendMessageOptions
;
whaleSats
:
{
bigWhale
:
number
;
// 10 billion xec
modestWhale
:
number
;
// 5 billion xec
shark
:
number
;
// 1 billion xec
swordfish
:
number
;
// 700 million xec
barracuda
:
number
;
// 500 million xec
octopus
:
number
;
// 250 million xec
piranha
:
number
;
// 100 million xec
crab
:
number
;
// anything under 100 million xec
shrimp
:
number
;
};
emojis
:
{
agora
:
string
;
volume
:
string
;
agoraBuy
:
string
;
agoraList
:
string
;
agoraCancel
:
string
;
alias
:
string
;
alp
:
string
;
invalid
:
string
;
nft
:
string
;
mintvault
:
string
;
block
:
string
;
miner
:
string
;
staker
:
string
;
stakingNode
:
string
;
xecSend
:
string
;
arrowRight
:
string
;
tokenBurn
:
string
;
tokenGenesis
:
string
;
tokenSend
:
string
;
tokenMint
:
string
;
tokenFixed
:
string
;
gift
:
string
;
bank
:
string
;
app
:
string
;
token
:
string
;
fusion
:
string
;
cashtabMsg
:
string
;
cashtabEncrypted
:
string
;
payButton
:
string
;
swap
:
string
;
airdrop
:
string
;
paywall
:
string
;
authentication
:
string
;
unknown
:
string
;
memo
:
string
;
bigWhale
:
string
;
modestWhale
:
string
;
shark
:
string
;
swordfish
:
string
;
barracuda
:
string
;
octopus
:
string
;
piranha
:
string
;
crab
:
string
;
shrimp
:
string
;
priceUp
:
string
;
priceDown
:
string
;
};
}
const
config
:
HeraldConfig
=
{
cacheTtlMsecs
:
1000
*
60
*
60
*
4
,
// 4 hours
xecSendDisplayCount
:
12
,
/**
* chronik servers must be indexed with agora.py plugin
* for full herald functionality
*/
chronik
:
[
'https://chronik-native1.fabien.cash'
,
'https://chronik-native2.fabien.cash'
,
'https://chronik.pay2stay.com/xec2'
,
],
blockExplorer
:
'https://explorer.e.cash'
,
tokenLandingBase
:
'https://cashtab.com/#/token'
,
priceApi
:
{
apiBase
:
'https://api.coingecko.com/api/v3/simple/price'
,
cryptos
:
[
{
coingeckoSlug
:
'ecash'
,
ticker
:
'XEC'
},
{
coingeckoSlug
:
'bitcoin'
,
ticker
:
'BTC'
},
{
coingeckoSlug
:
'ethereum'
,
ticker
:
'ETH'
},
],
fiat
:
'usd'
,
precision
:
8
,
},
fiatReference
:
{
usd
:
'$'
,
jpy
:
'ยฅ'
,
eur
:
'โฌ'
,
gbp
:
'ยฃ'
},
stakingRewardApiUrl
:
'https://avalanche.cash/api/nextstakingreward'
,
ifpAddress
:
'ecash:prfhcnyqnl5cgrnmlfmms675w93ld7mvvqd0y8lz07'
,
tgMsgOptions
:
{
parse_mode
:
'HTML'
,
disable_web_page_preview
:
true
,
},
whaleSats
:
{
// 20 billion xec
bigWhale
:
2000000000000
,
// 10 billion xec
modestWhale
:
1000000000000
,
// 5 billion xec
shark
:
500000000000
,
// 1 billion xec
swordfish
:
100000000000
,
// 700 million xec
barracuda
:
70000000000
,
// 500 million xec
octopus
:
50000000000
,
// 250 million xec
piranha
:
25000000000
,
// 100 million xec
crab
:
10000000000
,
// anything under 100 million xec
shrimp
:
0
,
},
emojis
:
{
agora
:
'๐'
,
volume
:
'๐'
,
agoraBuy
:
'๐ฐ'
,
agoraList
:
'๐ท'
,
agoraCancel
:
'โ'
,
alias
:
'๐พ'
,
alp
:
'๐ป'
,
invalid
:
'โ'
,
nft
:
'๐ผ'
,
mintvault
:
'๐งฉ'
,
block
:
'๐ฆ'
,
miner
:
'โ๏ธ'
,
staker
:
'๐ฐ'
,
stakingNode
:
'๐งฎ'
,
xecSend
:
'๐ธ'
,
arrowRight
:
'โก๏ธ'
,
tokenBurn
:
'๐ฅ'
,
tokenGenesis
:
'๐งช'
,
tokenSend
:
'๐'
,
tokenMint
:
'๐จ'
,
tokenFixed
:
'๐'
,
gift
:
'๐'
,
bank
:
'๐ฆ'
,
app
:
'๐ฑ'
,
token
:
'๐ช'
,
fusion
:
'โ๏ธ'
,
cashtabMsg
:
'๐'
,
cashtabEncrypted
:
'๐'
,
payButton
:
'๐'
,
swap
:
'๐คณ'
,
airdrop
:
'๐ช'
,
paywall
:
'๐ธ'
,
authentication
:
'๐'
,
unknown
:
'โ'
,
memo
:
'๐'
,
bigWhale
:
'๐'
,
modestWhale
:
'๐ณ'
,
shark
:
'๐ฆ'
,
swordfish
:
'๐ฌ'
,
barracuda
:
'๐ '
,
octopus
:
'๐'
,
piranha
:
'๐ก'
,
crab
:
'๐ฆ'
,
// Most addresses seen by the app are shrimp, so use empty string
shrimp
:
''
,
priceUp
:
'๐'
,
priceDown
:
'๐'
,
},
};
export
default
config
;
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 21, 23:10 (23 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5866137
Default Alt Text
config.ts (5 KB)
Attached To
rSTAGING Bitcoin ABC staging
Event Timeline
Log In to Comment