TITLE: Starting a React Development Server with npm DESCRIPTION: Runs the React application in development mode. The app will open in your browser at http://localhost:3000 and automatically reload when changes are made. Any lint errors will be displayed in the console. SOURCE: https://github.com/ckbfansdao/ckbdapps/blob/master/README.md#_snippet_0 LANGUAGE: shell CODE: ``` npm start ``` ---------------------------------------- TITLE: Initialize Google Analytics Tracking DESCRIPTION: This JavaScript snippet initializes Google Analytics (gtag.js) by setting up the dataLayer array and defining the gtag function. It then configures the tracking ID 'G-E3NMWVCXRM' to enable analytics data collection for the application. SOURCE: https://github.com/ckbfansdao/ckbdapps/blob/master/public/index.html#_snippet_0 LANGUAGE: JavaScript CODE: ``` window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-E3NMWVCXRM'); ``` ---------------------------------------- TITLE: Configure Robots.txt for Full Site Access DESCRIPTION: This robots.txt file grants full access to all web crawlers (user agents) by specifying an empty Disallow directive for the wildcard user agent. It ensures that search engines can index all content on the site without restrictions. SOURCE: https://github.com/ckbfansdao/ckbdapps/blob/master/public/robots.txt#_snippet_0 LANGUAGE: Robots.txt CODE: ``` User-agent: * Disallow: ``` ---------------------------------------- TITLE: CKB Halving Epoch Calculation Formula DESCRIPTION: This formula defines how the epoch number for each CKB halving event is calculated. It establishes the relationship between the number of years, days, and epoch duration to determine the specific epoch at which a halving occurs. SOURCE: https://github.com/ckbfansdao/ckbdapps/blob/master/public/markdown/halving_en_US.md#_snippet_0 LANGUAGE: APIDOC CODE: ``` Epochs per halving: 4 years * 365 days/year * (24 hours/day / 4 hours/epoch) = 8760 epochs Nth halving epoch: the_Nth_halving_epoch = 8760 * N ``` ---------------------------------------- TITLE: CKB Halving Event Schedule and Rewards DESCRIPTION: This table outlines the detailed schedule for CKB halving events, including their dates, corresponding epoch numbers, epoch rewards, block rewards, daily rewards, and the total new CKB issued between events. It illustrates the predictable reduction in CKB base issuance over time. SOURCE: https://github.com/ckbfansdao/ckbdapps/blob/master/public/markdown/halving_en_US.md#_snippet_1 LANGUAGE: APIDOC CODE: ``` Halving Schedule: - Event: Nervos launches Date: 16 Nov 2019 Epoch number: 0 (genesis epoch) Epoch reward: 1,917,808 CKB Block reward (1800 blocks/epoch): 1,065 CKB Daily reward: 11,506,849 CKB Total new CKB between events: 16,800,000,000 CKB - Event: First halving Date: 19 Nov 2023 Epoch number: 8,760 Epoch reward: 958,904 CKB Block reward (1800 blocks/epoch): 533 CKB Daily reward: 5,753,424 CKB Total new CKB between events: 8,400,000,000 CKB - Event: Second halving Date: Expected November 2027 Epoch number: 17,520 Epoch reward: 479,452 CKB Block reward (1800 blocks/epoch): 266 CKB Daily reward: 2,876,712 CKB Total new CKB between events: 4,200,000,000 CKB - Event: 3rd halving Date: Expected November 2031 Epoch number: 26,280 Epoch reward: 239,726 CKB Block reward (1800 blocks/epoch): 133 CKB Daily reward: 1,438,356 CKB Total new CKB between events: 2,100,000,000 CKB - Event: 4th halving Date: Expected November 2035 Epoch number: 35,040 Epoch reward: 119,863 CKB Block reward (1800 blocks/epoch): 67 CKB Daily reward: 719,178 CKB Total new CKB between events: 1,050,000,000 CKB - Event: 5th having Date: Expected November 2039 Epoch number: 43,800 Epoch reward: 59,932 CKB Block reward (1800 blocks/epoch): 33.5 CKB Daily reward: 359,589 CKB Total new CKB between events: 525,000,000 CKB - Event: 6th having Date: Expected November 2043 Epoch number: 52,560 Epoch reward: 29,966 CKB Block reward (1800 blocks/epoch): 16.75 CKB Daily reward: 179,794.5 CKB Total new CKB between events: 262,500,000 CKB - Event: 7th having Date: Expected November 2047 Epoch number: 61,320 Epoch reward: 14,983 CKB Block reward (1800 blocks/epoch): 8.375 CKB Daily reward: 89,897.25 CKB Total new CKB between events: 131,250,000 CKB - Event: 8th having Date: Expected November 2051 Epoch number: 70,080 Epoch reward: 7,491 CKB Block reward (1800 blocks/epoch): 4.1875 CKB Daily reward: 44,948.625 CKB Total new CKB between events: 65,625,000 CKB - Event: 9th having Date: Expected November 2055 Epoch number: 78,840 Epoch reward: 3,746 CKB Block reward (1800 blocks/epoch): 2.09375 CKB Daily reward: 22,474.3125 CKB Total new CKB between events: 32,812,500 CKB - Event: 10th having Date: Expected November 2059 Epoch number: 87,600 Epoch reward: 1,873 CKB Block reward (1800 blocks/epoch): 1.046875 CKB Daily reward: 11,237.15625 CKB Total new CKB between events: 16,406,250 CKB ```