kopia lustrzana https://github.com/bugout-dev/moonstream
Merge branch 'main' into add_sql_execution_endpoint
commit
cf14df0333
|
@ -159,7 +159,7 @@ def main() -> None:
|
|||
"--min-blocks-batch",
|
||||
"-n",
|
||||
type=int,
|
||||
default=10,
|
||||
default=40,
|
||||
help="Minimum number of blocks to crawl in a single batch",
|
||||
)
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ def continuous_crawler(
|
|||
function_call_crawl_jobs: List[FunctionCallCrawlJob],
|
||||
start_block: int,
|
||||
max_blocks_batch: int = 100,
|
||||
min_blocks_batch: int = 10,
|
||||
min_blocks_batch: int = 40,
|
||||
confirmations: int = 60,
|
||||
min_sleep_time: float = 0.1,
|
||||
heartbeat_interval: float = 60,
|
||||
|
@ -187,12 +187,12 @@ def continuous_crawler(
|
|||
)
|
||||
|
||||
if start_block + min_blocks_batch > end_block:
|
||||
min_sleep_time *= 2
|
||||
min_sleep_time += 0.1
|
||||
logger.info(
|
||||
f"Sleeping for {min_sleep_time} seconds because of low block count"
|
||||
)
|
||||
continue
|
||||
min_sleep_time = max(min_sleep_time, min_sleep_time / 2)
|
||||
min_sleep_time = max(0, min_sleep_time - 0.1)
|
||||
|
||||
logger.info(f"Crawling events from {start_block} to {end_block}")
|
||||
all_events = _crawl_events(
|
||||
|
|
|
@ -65,7 +65,6 @@ def yield_db_session() -> Session:
|
|||
|
||||
yield_db_session_ctx = contextmanager(yield_db_session)
|
||||
|
||||
|
||||
# Read only
|
||||
|
||||
RO_engine = create_engine(
|
||||
|
|
Plik diff jest za duży
Load Diff
|
@ -12,5 +12,12 @@ const Badge = {
|
|||
variants: {
|
||||
outline: variantOutline,
|
||||
},
|
||||
sizes: {
|
||||
xxl: {
|
||||
fontSize: "4xl",
|
||||
borderWidth: "xl",
|
||||
borderRadius: "lg",
|
||||
},
|
||||
},
|
||||
};
|
||||
export default Badge;
|
||||
|
|
|
@ -11,10 +11,11 @@ import {
|
|||
useColorModeValue,
|
||||
Button,
|
||||
useBreakpointValue,
|
||||
useToken,
|
||||
} from "@chakra-ui/react";
|
||||
import React, { useContext } from "react";
|
||||
import UIContext from "../core/providers/UIProvider/context";
|
||||
import { FaGithubSquare } from "react-icons/fa";
|
||||
import { FaDiscord, FaGithubSquare } from "react-icons/fa";
|
||||
import RouteButton from "../components/RouteButton";
|
||||
|
||||
const Feature = ({ text, icon, iconBg, bullets }) => {
|
||||
|
@ -96,14 +97,17 @@ const SplitWithImage = ({
|
|||
return () => observer.unobserve(current);
|
||||
}, []);
|
||||
|
||||
const themeColor = useColorModeValue(
|
||||
`${colorScheme}.50`,
|
||||
`${colorScheme}.900`
|
||||
);
|
||||
|
||||
const bgThemeColor = useColorModeValue(
|
||||
`${colorScheme}.900`,
|
||||
`${colorScheme}.50`
|
||||
const [theme100, theme200, theme300, theme900] = useToken(
|
||||
// the key within the theme, in this case `theme.colors`
|
||||
"colors",
|
||||
// the subkey(s), resolving to `theme.colors.red.100`
|
||||
[
|
||||
`${colorScheme}.100`,
|
||||
`${colorScheme}.200`,
|
||||
`${colorScheme}.300`,
|
||||
`${colorScheme}.900`,
|
||||
]
|
||||
// a single fallback or fallback array matching the length of the previous arg
|
||||
);
|
||||
|
||||
return (
|
||||
|
@ -132,10 +136,12 @@ const SplitWithImage = ({
|
|||
<Text
|
||||
id={`MoonBadge ${elementName}`}
|
||||
textTransform={"uppercase"}
|
||||
color={themeColor}
|
||||
color={"white.100"}
|
||||
fontWeight={600}
|
||||
fontSize={["xs", "sm"]}
|
||||
bg={bgThemeColor}
|
||||
sx={{
|
||||
background: `linear-gradient(to bottom, ${theme100} 0%,${theme100} 15%,${theme200} 19%,${theme300} 20%,${theme900} 50%,${theme300} 80%,${theme200} 81%,${theme100} 85%,${theme100} 100%);`,
|
||||
}}
|
||||
p={[1, 2]}
|
||||
rounded={"md"}
|
||||
>
|
||||
|
@ -174,20 +180,6 @@ const SplitWithImage = ({
|
|||
flexWrap="nowrap"
|
||||
display={["column", "column", null, "row"]}
|
||||
>
|
||||
{cta && (
|
||||
<Button
|
||||
colorScheme={colorScheme}
|
||||
w={["100%", "100%", "fit-content", null]}
|
||||
maxW={["250px", null, "fit-content"]}
|
||||
variant="outline"
|
||||
mt={[0, 0, null, 16]}
|
||||
size={socialButton ? buttonSize.double : buttonSize.single}
|
||||
onClick={cta.onClick}
|
||||
>
|
||||
{cta.label}
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{socialButton && (
|
||||
<RouteButton
|
||||
isExternal
|
||||
|
@ -198,11 +190,27 @@ const SplitWithImage = ({
|
|||
size={socialButton ? buttonSize.double : buttonSize.single}
|
||||
variant="outline"
|
||||
colorScheme={colorScheme}
|
||||
leftIcon={<FaGithubSquare />}
|
||||
leftIcon={
|
||||
(socialButton.icon == "github" && <FaGithubSquare />) ||
|
||||
(socialButton.icon == "discord" && <FaDiscord />)
|
||||
}
|
||||
>
|
||||
git clone moonstream
|
||||
{socialButton.title}
|
||||
</RouteButton>
|
||||
)}
|
||||
{cta && (
|
||||
<Button
|
||||
colorScheme={cta.colorScheme ?? colorScheme}
|
||||
w={["100%", "100%", "fit-content", null]}
|
||||
maxW={["250px", null, "fit-content"]}
|
||||
variant="outline"
|
||||
mt={[0, 0, null, 16]}
|
||||
size={socialButton ? buttonSize.double : buttonSize.single}
|
||||
onClick={cta.onClick}
|
||||
>
|
||||
{cta.label}
|
||||
</Button>
|
||||
)}
|
||||
</Flex>
|
||||
</Stack>
|
||||
</Stack>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { React } from "react";
|
||||
import { Flex, Image, Link } from "@chakra-ui/react";
|
||||
|
||||
const TrustedBadge = ({ name, caseURL, ImgURL }) => {
|
||||
const TrustedBadge = ({ name, caseURL, ImgURL, scale, isGrayScale }) => {
|
||||
const _scale = scale ?? 1;
|
||||
return (
|
||||
<Flex
|
||||
m={1}
|
||||
|
@ -13,8 +14,15 @@ const TrustedBadge = ({ name, caseURL, ImgURL }) => {
|
|||
direction="column"
|
||||
>
|
||||
<Image
|
||||
sx={{ filter: "grayscale(100%)" }}
|
||||
h={["2.25rem", null, "3rem", "3rem", "4rem", "6rem"]}
|
||||
sx={isGrayScale && { filter: "grayscale(100%)" }}
|
||||
h={[
|
||||
`${2.25 * _scale}rem`,
|
||||
null,
|
||||
`${3 * _scale}rem`,
|
||||
`${3 * _scale}rem`,
|
||||
`${4 * _scale}rem`,
|
||||
`${6 * _scale}rem`,
|
||||
]}
|
||||
src={ImgURL}
|
||||
alt={name}
|
||||
></Image>
|
||||
|
|
|
@ -6,11 +6,11 @@ export const BUGOUT_ENDPOINTS = {
|
|||
};
|
||||
|
||||
export const DEFAULT_METATAGS = {
|
||||
title: "Moonstream: Open source blockchain analytics",
|
||||
title: "Moonstream: Building blocks for your blockchain economy",
|
||||
description:
|
||||
"Product analytics for Web3. Moonstream helps you understand exactly how people are using your smart contracts",
|
||||
"Moonstream DAO makes tools that help you build, manage, and secure your blockchain economy.",
|
||||
keywords:
|
||||
"analytics, blockchain analytics, protocol, protocols, blockchain, crypto, data, trading, smart contracts, web3, smart contract, ethereum, solana, polygon, matic, transactions, defi, finance, decentralized, mempool, NFT, NFTs, DAO, DAOs, DEX, DEXes, DEXs, cryptocurrency, cryptocurrencies, bitcoin",
|
||||
"analytics, blockchain analytics, protocol, protocols, blockchain, crypto, data, NFT gaming, smart contracts, web3, smart contract, ethereum, polygon, matic, transactions, defi, finance, decentralized, mempool, NFT, NFTs, DAO, DAOs, cryptocurrency, cryptocurrencies, bitcoin, blockchain economy, marketplace, blockchain security, loyalty program, Ethereum bridge, Ethereum bridges, NFT game, NFT games",
|
||||
url: "https://www.moonstream.to",
|
||||
image: `https://s3.amazonaws.com/static.simiotics.com/moonstream/assets/crypto+traders.png`,
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue