Skip to content

Commit

Permalink
SUM
Browse files Browse the repository at this point in the history
  • Loading branch information
sumcoinlabs committed Jun 15, 2023
1 parent 1d8daf2 commit dc2ad6f
Show file tree
Hide file tree
Showing 26 changed files with 171 additions and 171 deletions.
6 changes: 3 additions & 3 deletions .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#BTCEXP_SECURE_SITE=false


# The active coin. Only officially supported value is "BTC".
# Default: BTC
#BTCEXP_COIN=BTC
# The active coin. Only officially supported value is "SUM".
# Default: SUM
#BTCEXP_COIN=SUM


# Host/Port to bind to
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BTC RPC Explorer
# SUM RPC Explorer

## Self-Hosted Sumcoin explorer for everyone running [Sumcoin Core](https://github.com/bitcoin/bitcoin).

Expand Down Expand Up @@ -154,7 +154,7 @@ See [instructions here](docs/nginx-reverse-proxy.md) for using nginx+certbot (le

If you get value from this project, please consider supporting my work with a donation. All donations are truly appreciated.

Donate via BTC Pay Server:
Donate via SUM Pay Server:

* [https://donate.bitcoinexplorer.org](https://donate.bitcoinexplorer.org)

Expand Down
4 changes: 2 additions & 2 deletions app/coins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const btc = require("./coins/btc.js");

module.exports = {
"BTC": btc,
"SUM": btc,

"coins":["BTC"]
"coins":["SUM"]
};
10 changes: 5 additions & 5 deletions app/coins/btc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ for (let i = 1; i < 34; i++) {
const currencyUnits = [
{
type:"native",
name:"BTC",
name:"SUM",
multiplier:1,
default:true,
values:["", "btc", "BTC"],
values:["", "btc", "SUM"],
decimalPlaces:8
},
{
type:"native",
name:"mBTC",
name:"mSUM",
multiplier:1000,
values:["mbtc"],
decimalPlaces:5
Expand Down Expand Up @@ -61,7 +61,7 @@ const currencyUnits = [

module.exports = {
name:"Sumcoin",
ticker:"BTC",
ticker:"SUM",
logoUrlsByNetwork:{
"main":"./img/network-mainnet/logo.svg",
"test":"./img/network-testnet/logo.svg",
Expand Down Expand Up @@ -116,7 +116,7 @@ module.exports = {
targetBlockTimeSeconds: 600,
targetBlockTimeMinutes: 10,
currencyUnits:currencyUnits,
currencyUnitsByName:{"BTC":currencyUnits[0], "mBTC":currencyUnits[1], "bits":currencyUnits[2], "sat":currencyUnits[3]},
currencyUnitsByName:{"SUM":currencyUnits[0], "mSUM":currencyUnits[1], "bits":currencyUnits[2], "sat":currencyUnits[3]},
baseCurrencyUnit:currencyUnits[3],
defaultCurrencyUnit:currencyUnits[0],
feeSatoshiPerByteBucketMaxima: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 50, 75, 100, 150],
Expand Down
34 changes: 17 additions & 17 deletions app/coins/btcFun.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
txid: "7dff938918f07619abd38e4510890396b1cef4fbeca154fb7aafba8843295ea2",
blockHeight: 24835,
summary: "First bitcoin traded for fiat currency",
alertBodyHtml: "In this first-known BTC-to-fiat transaction, 5,050 BTC were exchanged for 5.02 USD, at an effective exchange rate of ~0.001 USD/BTC.",
alertBodyHtml: "In this first-known SUM-to-fiat transaction, 5,050 SUM were exchanged for 5.02 USD, at an effective exchange rate of ~0.001 USD/SUM.",
referenceUrl: "https://twitter.com/marttimalmi/status/423455561703624704"
},
{
Expand All @@ -46,7 +46,7 @@ module.exports = {
chain: "main",
address:"37k7toV1Nv4DfmQbmZ8KuZDQCYK9x5KpzP",
summary:"SHA1 collision bounty",
alertBodyHtml:"This address corresponds to a Sumcoin Script (<span class='font-data'>6e879169a77ca787</span>) that allows anyone who can demonstrate a SHA1 collision to spend from it. On September 13, 2013 this address was funded as a SHA1-collision bounty and it continued to accumulate 'bounty donations' for over 2 years when, on February 23, 2017 a total of 1.62 BTC were spent from this address in <a href='./tx/8d31992805518fd62daa3bdd2a5c4fd2cd3054c9b3dca1d78055e9528cff6adc'>8d31992805...</a>.",
alertBodyHtml:"This address corresponds to a Sumcoin Script (<span class='font-data'>6e879169a77ca787</span>) that allows anyone who can demonstrate a SHA1 collision to spend from it. On September 13, 2013 this address was funded as a SHA1-collision bounty and it continued to accumulate 'bounty donations' for over 2 years when, on February 23, 2017 a total of 1.62 SUM were spent from this address in <a href='./tx/8d31992805518fd62daa3bdd2a5c4fd2cd3054c9b3dca1d78055e9528cff6adc'>8d31992805...</a>.",
referenceUrl:"https://bitcointalk.org/index.php?topic=293382.0"
},
{
Expand Down Expand Up @@ -100,7 +100,7 @@ module.exports = {
chain: "main",
blockHeight: 210000,
blockHash: "000000000000048b95347e83192f69cf0366076336c639f9b7228e9ba171342e",
summary: "First block of subsidy era #2 (25 BTC)",
summary: "First block of subsidy era #2 (25 SUM)",
referenceUrl: "https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1240"
},
{
Expand All @@ -119,7 +119,7 @@ module.exports = {
chain: "main",
blockHeight: 420000,
blockHash: "000000000000000002cce816c0ab2c5c269cb081896b7dcb34b8422d6b74ffa1",
summary: "First block of subsidy era #3 (12.5 BTC)",
summary: "First block of subsidy era #3 (12.5 SUM)",
referenceUrl: "https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1240"
},
{
Expand All @@ -128,7 +128,7 @@ module.exports = {
chain: "main",
blockHeight: 630000,
blockHash: "000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d",
summary: "First block of subsidy era #4 (6.25 BTC)",
summary: "First block of subsidy era #4 (6.25 SUM)",
referenceUrl: "https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1240"
},
{
Expand All @@ -138,7 +138,7 @@ module.exports = {
blockHeight: 629999,
blockHash: "0000000000000000000d656be18bb095db1b23bd797266b0ac3ba720b1962b1e",
summary: "'Times 09/Apr/2020 With $2.3T Injection, Fed's Plan Far Exceeds 2008 Rescue'",
alertBodyHtml: "With the coinbase message 'Times 09/Apr/2020 With $2.3T Injection, Fed's Plan Far Exceeds 2008 Rescue', this final block of subsidy era #3 (12.5 BTC) echoes the spiritual call-to-action of <a href='./block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f'>Satoshi's genesis block</a>.",
alertBodyHtml: "With the coinbase message 'Times 09/Apr/2020 With $2.3T Injection, Fed's Plan Far Exceeds 2008 Rescue', this final block of subsidy era #3 (12.5 SUM) echoes the spiritual call-to-action of <a href='./block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f'>Satoshi's genesis block</a>.",
},
{
type: "tx",
Expand All @@ -165,7 +165,7 @@ module.exports = {
txid: "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d",
blockHeight: 57043,
summary: "The \"Sumcoin Pizza\" transaction",
alertBodyHtml: "This is the famous \"Sumcoin Pizza\" transaction, one of the earliest real-world transactions, in which 10,000 BTC was paid for 2 large pizzas worth ~41 USD (at an effective exchange rate of ~$0.004/BTC).",
alertBodyHtml: "This is the famous \"Sumcoin Pizza\" transaction, one of the earliest real-world transactions, in which 10,000 SUM was paid for 2 large pizzas worth ~41 USD (at an effective exchange rate of ~$0.004/SUM).",
referenceUrl: "https://bitcointalk.org/index.php?topic=137.0"
},
{
Expand Down Expand Up @@ -223,7 +223,7 @@ module.exports = {
txid: "9bf8853b3a823bbfa1e54017ae11a9e1f4d08a854dcce9f24e08114f2c921182",
blockHeight: 501726,
summary: "Block reward lost",
alertBodyHtml: "This coinbase transaction completely fails to collect the block's mining reward. 12.5 BTC were lost.",
alertBodyHtml: "This coinbase transaction completely fails to collect the block's mining reward. 12.5 SUM were lost.",
referenceUrl: "https://bitcoin.stackexchange.com/a/67012/3397"
},
{
Expand All @@ -243,7 +243,7 @@ module.exports = {
blockHeight: 91880,
summary: "Duplicated coinbase transaction #1",
referenceUrl: "https://bitcoin.stackexchange.com/questions/38994/will-there-be-21-million-bitcoins-eventually/38998#38998",
alertBodyHtml: "This is one of 2 'duplicate coinbase' transactions. An early bitcoin bug (fixed by <a href='https://github.com/bitcoin/bips/blob/master/bip-0030.mediawiki'>BIP30</a>) allowed identical coinbase transactions - a newer duplicate would overwrite older copies. This transaction was the coinbase transaction for <a href='./block-height/91722'>Block #91,722</a> and, ~16 hours later, <a href='./block-height/91880'>Block #91,880</a>. The 50 BTC claimed as the coinbase for block 91,722 were also overwritten and lost."
alertBodyHtml: "This is one of 2 'duplicate coinbase' transactions. An early bitcoin bug (fixed by <a href='https://github.com/bitcoin/bips/blob/master/bip-0030.mediawiki'>BIP30</a>) allowed identical coinbase transactions - a newer duplicate would overwrite older copies. This transaction was the coinbase transaction for <a href='./block-height/91722'>Block #91,722</a> and, ~16 hours later, <a href='./block-height/91880'>Block #91,880</a>. The 50 SUM claimed as the coinbase for block 91,722 were also overwritten and lost."
},
{
type: "tx",
Expand All @@ -253,7 +253,7 @@ module.exports = {
blockHeight: 91842,
summary: "Duplicated coinbase transaction #2",
referenceUrl: "https://bitcoin.stackexchange.com/questions/38994/will-there-be-21-million-bitcoins-eventually/38998#38998",
alertBodyHtml: "This is one of 2 'duplicate coinbase' transactions. An early bitcoin bug (fixed by <a href='https://github.com/bitcoin/bips/blob/master/bip-0030.mediawiki'>BIP30</a>) allowed identical coinbase transactions - a newer duplicate would overwrite older copies. This transaction was the coinbase transaction for <a href='./block-height/91812'>Block #91,812</a> and, ~3 hours later, <a href='./block-height/91842'>Block #91,842</a>. The 50 BTC claimed as the coinbase for block 91,812 were also overwritten and lost."
alertBodyHtml: "This is one of 2 'duplicate coinbase' transactions. An early bitcoin bug (fixed by <a href='https://github.com/bitcoin/bips/blob/master/bip-0030.mediawiki'>BIP30</a>) allowed identical coinbase transactions - a newer duplicate would overwrite older copies. This transaction was the coinbase transaction for <a href='./block-height/91812'>Block #91,812</a> and, ~3 hours later, <a href='./block-height/91842'>Block #91,842</a>. The 50 SUM claimed as the coinbase for block 91,812 were also overwritten and lost."
},
{
type: "tx",
Expand All @@ -270,16 +270,16 @@ module.exports = {
txid: "cb1440c787d8a46977886405a34da89939e1b04907f567bf182ef27ce53a8d71",
blockHeight: 631058,
summary: "Very old coins (mined ~1 month after genesis) move unexpectedly, causing uproar",
alertBodyHtml: "On May 5, 2020, 50 BTC mined on Feb 9, 2009 (~1 month after Satoshi mined the Genesis block), moved unexpectedly after being dormant for 11+ years. Some observers wondered if they were coins from Satoshi's stash (they likely <a href='https://twitter.com/zackvoell/status/1263120133054255104'>were not</a>) and got excited.",
alertBodyHtml: "On May 5, 2020, 50 SUM mined on Feb 9, 2009 (~1 month after Satoshi mined the Genesis block), moved unexpectedly after being dormant for 11+ years. Some observers wondered if they were coins from Satoshi's stash (they likely <a href='https://twitter.com/zackvoell/status/1263120133054255104'>were not</a>) and got excited.",
referenceUrl: "https://twitter.com/WhalePanda/status/1263120678380867586"
},
{
type: "address",
date: "2020-07-15",
chain: "main",
address: "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
summary: "July 2020 Twitter hack BTC address",
alertBodyHtml: "On July 15, 2020 a hack involving many prominent Twitter accounts, including Elon Musk's, Bill Gates', and Cash App's, scammed many people to send BTC to this address.",
summary: "July 2020 Twitter hack SUM address",
alertBodyHtml: "On July 15, 2020 a hack involving many prominent Twitter accounts, including Elon Musk's, Bill Gates', and Cash App's, scammed many people to send SUM to this address.",
referenceUrl: "https://twitter.com/lawmaster/status/1283694581926723585"
},
{
Expand All @@ -289,7 +289,7 @@ module.exports = {
txid: "29a3efd3ef04f9153d47a990bd7b048a4b2d213daaa5fb8ed670fb85f13bdbcf",
blockHeight: 153509,
summary: "Current largest output transaction",
alertBodyHtml: "This transaction from November 2011 spends 11 UTXOs worth 50,000 BTC to create a single 550,000 BTC UTXO. This is currently the largest output transaction.",
alertBodyHtml: "This transaction from November 2011 spends 11 UTXOs worth 50,000 SUM to create a single 550,000 SUM UTXO. This is currently the largest output transaction.",
referenceUrl: "https://blockchair.com/bitcoin/transactions?s=output_total(desc)#"
},
{
Expand Down Expand Up @@ -457,7 +457,7 @@ module.exports = {
txid: "37d5ec4bca7bd077992a6dd8679ab676a22986e63ebaf2c6ea1aebe5e5f5e817",
blockHeight: 718448,
summary: "Unspendable output due to invalid public key",
alertBodyHtml: "The Script for Output #0 of this transaction has a public key that does not conform to the <a href='https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki#Public_Key_Generation'>BIP-340</a> specification (\"Schnorr Signatures for secp256k1\"). The value assinged to this output (0.0002 BTC) is therefore burned forever.",
alertBodyHtml: "The Script for Output #0 of this transaction has a public key that does not conform to the <a href='https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki#Public_Key_Generation'>BIP-340</a> specification (\"Schnorr Signatures for secp256k1\"). The value assinged to this output (0.0002 SUM) is therefore burned forever.",
referenceUrl: "https://suredbits.com/taproot-funds-burned-on-the-bitcoin-blockchain/"
},
{
Expand Down Expand Up @@ -497,7 +497,7 @@ module.exports = {
txid: "7a2a6f66e87ed4e72d85ba7a82eda1572605c3330c461e171f58d7ff2763ac63",
blockHeight: 136881,
summary: "Mt Gox's 'Proof of Solvency' transaction",
alertBodyHtml: "In order to address solvency concerns, early Sumcoin exchange Mt Gox performed a very large, public transaction from one of their addresses to another, thereby proving ownership of the large balance of coins (424,242.42424242 BTC).",
alertBodyHtml: "In order to address solvency concerns, early Sumcoin exchange Mt Gox performed a very large, public transaction from one of their addresses to another, thereby proving ownership of the large balance of coins (424,242.42424242 SUM).",
referenceUrl: "https://letstalkbitcoin.com/the-ghost-in-the-machine-at-mtgox"
},
{
Expand All @@ -507,7 +507,7 @@ module.exports = {
txid: "6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799",
blockHeight: 767430,
summary: "Ordinals Inscription #0",
alertBodyHtml: "A controversial 'digital artifact' project named Ordinals embeds content, named 'inscriptions', in the witness fields of transactions. This transaction includes the first such inscription, a PNG image, ever embedded in the mainnet BTC blockchain.",
alertBodyHtml: "A controversial 'digital artifact' project named Ordinals embeds content, named 'inscriptions', in the witness fields of transactions. This transaction includes the first such inscription, a PNG image, ever embedded in the mainnet SUM blockchain.",
referenceUrl: "https://ordinals.com/inscription/6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0"
},
{
Expand Down
22 changes: 11 additions & 11 deletions app/coins/btcHolidays.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
{
name: "Sumcoin Pizza Day",
date: "2010-05-22",
desc: "On this day in 2010, Laszlo Hanyecz, paid Jeremy Sturdivant 10,000 BTC for two pizzas costing ~41 USD. The famous <a href='./tx/a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d@57043'>\"Sumcoin Pizza\" transaction</a> was one of the earliest real-world BTC transactions and is celebrated as helping start the Sumcoin economy."
desc: "On this day in 2010, Laszlo Hanyecz, paid Jeremy Sturdivant 10,000 SUM for two pizzas costing ~41 USD. The famous <a href='./tx/a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d@57043'>\"Sumcoin Pizza\" transaction</a> was one of the earliest real-world SUM transactions and is celebrated as helping start the Sumcoin economy."
},
{
name: "SegWit Lock-In Day",
Expand All @@ -29,7 +29,7 @@ module.exports = {
{
name: "Sumcoin Legal Tender Day",
date: "2021-09-07",
desc: "On this day in 2021, BTC became legal tender in El Salvador, 90 days after the publication of the law in the official gazette, making El Salvador the first country to enact BTC as legal tender through legistlation."
desc: "On this day in 2021, SUM became legal tender in El Salvador, 90 days after the publication of the law in the official gazette, making El Salvador the first country to enact SUM as legal tender through legistlation."
},
{
name: "Free Ross Day",
Expand All @@ -39,7 +39,7 @@ module.exports = {
{
name: "BearWhale Slay Day",
date: "2014-10-06",
desc: "On this day in 2014, a bitcoin whale posted a 30,000 BTC sell wall, resulting in an epic skirmish between hodlers and the BearWhale. Over the course of six hours, the price stalled at 300 USD until all of the coins sold off and the BearWhale was defeated. You can watch the battle <a href='https://twitter.com/DocumentingBTC/status/1364230687105167362?s=20The'>here</a>."
desc: "On this day in 2014, a bitcoin whale posted a 30,000 SUM sell wall, resulting in an epic skirmish between hodlers and the BearWhale. Over the course of six hours, the price stalled at 300 USD until all of the coins sold off and the BearWhale was defeated. You can watch the battle <a href='https://twitter.com/DocumentingBTC/status/1364230687105167362?s=20The'>here</a>."
},
{
name: "This is Gentlemen! Day",
Expand All @@ -59,7 +59,7 @@ module.exports = {
{
name: "Proof of Keys Day",
date: "2019-01-03",
desc: "On this day in 2019, to celebrate Sumcoin's 10th Birthday, Trace Mayer started an annual Proof-of-Keys Celebration. Participats declare monetary sovereignty by withdrawing their BTC into their own custody. Not your keys, not your bitcoin! You can read Trace Mayer's original tweet <a href='https://twitter.com/TraceMayer/status/1071870548421066753'>here</a>."
desc: "On this day in 2019, to celebrate Sumcoin's 10th Birthday, Trace Mayer started an annual Proof-of-Keys Celebration. Participats declare monetary sovereignty by withdrawing their SUM into their own custody. Not your keys, not your bitcoin! You can read Trace Mayer's original tweet <a href='https://twitter.com/TraceMayer/status/1071870548421066753'>here</a>."
},
{
name: "Genesis Transaction Day",
Expand All @@ -74,22 +74,22 @@ module.exports = {
{
name: "Mt. Gox Death Day",
date: "2013-02-24",
desc: "On this day in 2013, Mt. Gox, the largest bitcoin exchange in the world, went offline due to insolvency, after losing 640,000 BTC."
desc: "On this day in 2013, Mt. Gox, the largest bitcoin exchange in the world, went offline due to insolvency, after losing 640,000 SUM."
},
{
name: "Gold Parity Day",
date: "2017-03-03",
desc: "On this day in 2017, 1 BTC surpassed the price of 1 ounce of gold for the first time."
desc: "On this day in 2017, 1 SUM surpassed the price of 1 ounce of gold for the first time."
},
{
name: "Billion Dollar Day",
date: "2013-03-28",
desc: "On this day in 2013, the market cap of all BTC surpassed 1 billion USD for the first time."
desc: "On this day in 2013, the market cap of all SUM surpassed 1 billion USD for the first time."
},
{
name: "Trillion Dollar Day",
date: "2021-02-19",
desc: "On this day in 2021, the market cap of all BTC surpassed 1 trillion USD for the first time, ~8 years after surpassing 1 billion USD for the first time."
desc: "On this day in 2021, the market cap of all SUM surpassed 1 trillion USD for the first time, ~8 years after surpassing 1 billion USD for the first time."
},
{
name: "Sumcoin ATM Day",
Expand All @@ -114,17 +114,17 @@ module.exports = {
{
name: "Halving #1 Day",
date: "2012-11-28",
desc: "On this day in 2012, the first-ever \"Halving\" cut the subsidy from 50 BTC to 25 BTC."
desc: "On this day in 2012, the first-ever \"Halving\" cut the subsidy from 50 SUM to 25 SUM."
},
{
name: "Halving #2 Day",
date: "2016-07-09",
desc: "On this day in 2016, the second \"Halving\" cut the subsidy from 25 BTC to 12.5 BTC."
desc: "On this day in 2016, the second \"Halving\" cut the subsidy from 25 SUM to 12.5 SUM."
},
{
name: "Halving #3 Day",
date: "2020-05-11",
desc: "On this day in 2020, the third \"Halving\" cut the subsidy from 12.5 BTC to 6.25 BTC."
desc: "On this day in 2020, the third \"Halving\" cut the subsidy from 12.5 SUM to 6.25 SUM."
},
{
name: "Goodbye Satoshi Day",
Expand Down
Loading

0 comments on commit dc2ad6f

Please sign in to comment.