Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STG -> TEST Bitz improvements #411

Merged
merged 6 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/appsConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type app_token = {
export const TRAILBLAZER_TOKENS: app_token[] = IS_DEVNET
? [
{ tokenIdentifier: "DATANFTFT-e0b917", nonce: 1 },
{ tokenIdentifier: "DATANFTFT-e0b917", nonce: 266 },
// { tokenIdentifier: "DATANFTFT-e0b917", nonce: 423 },
// { tokenIdentifier: "DATANFTFT-e0b917", nonce: 453 },
]
Expand Down Expand Up @@ -57,7 +58,10 @@ export const ESDT_BUBBLE_TOKENS: app_token[] = [
// { tokenIdentifier: "DATANFTFT-e0b917", nonce: 417 }
];
export const TIMECAPSULE_TOKENS: app_token[] = IS_DEVNET
? [{ tokenIdentifier: "DATANFTFT-e0b917", nonce: 57 }]
? [
{ tokenIdentifier: "DATANFTFT-e0b917", nonce: 57 },
{ tokenIdentifier: "DATANFTFT-e0b917", nonce: 266 },
]
: [{ tokenIdentifier: "DATANFTFT-e936d4", nonce: 5 }];

export const BOBER_GAME_ROOM_TOKENS: app_token[] = IS_DEVNET
Expand Down
Binary file removed src/assets/img/getbitz/givebitz/bounty.png
Binary file not shown.
Binary file removed src/assets/img/getbitz/givebitz/bounty1.png
Binary file not shown.
Binary file removed src/assets/img/getbitz/givebitz/bounty11.jpg
Binary file not shown.
Binary file removed src/assets/img/getbitz/givebitz/bounty12.jpg
Binary file not shown.
Binary file removed src/assets/img/getbitz/givebitz/bounty13.png
Binary file not shown.
Binary file removed src/assets/img/getbitz/givebitz/bounty2.jpg
Binary file not shown.
Binary file removed src/assets/img/getbitz/givebitz/bounty3.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/pages/AppMarketplace/GetBitz/GiveBitz/GiveBitzBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const GiveBitzBase = (props: GiveBitzBaseProps) => {
</div>

<div
className="flex flex-col md:flex-row md:flex-wrap gap-4 items-center md:items-start justify-center w-full antialiased pt-4 relative h-[100%] "
className="flex flex-col md:flex-row md:flex-wrap gap-4 items-center md:items-start justify-center md:justify-start w-full antialiased pt-4 relative h-[100%] "
style={{ backgroundImage: `url(${bounty})`, objectFit: "scale-down", backgroundSize: "contain", backgroundRepeat: "no-repeat" }}>
{getDataBounties().map((item: GiveBitzDataBounty) => (
<PowerUpBounty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useAccountStore } from "store/account";
import { confetti } from "@tsparticles/confetti";
import { motion } from "framer-motion";
import bitzLogo from "assets/img/getbitz/givebitz/flaskBottle.png";
import { sleep } from "libs/utils";

export interface LeaderBoardGiverItemType {
giverAddr: string;
Expand Down Expand Up @@ -48,7 +47,6 @@ const GiveBitzLowerCard: React.FC<GiveBitzLowerCardProps> = (props) => {

if (_isPowerUpSuccess) {
const _bitzGivenToCreator = bitzGivenToCreator >= 0 ? bitzGivenToCreator + bitzSent : bitzSent;
setBitzGivenToCreator(_bitzGivenToCreator);

fetchMyGivenBitz();
fetchGiverLeaderBoard();
Expand All @@ -75,6 +73,8 @@ const GiveBitzLowerCard: React.FC<GiveBitzLowerCardProps> = (props) => {
setTweetText(
`url=https://explorer.itheum.io/getbitz?v=2&text=I just gave ${bitzVal} of my precious %23itheum <BiTz> XP to Power-Up a Data Bounty in return for some exclusive rewards and perks.%0A%0AWhat are you waiting for? %23GetBiTz and %23GiveBiTz here`
);
setBitzVal(0);
setBitzGivenToCreator(_bitzGivenToCreator);
setIsPowerUpSuccess(true);
}

Expand Down
55 changes: 33 additions & 22 deletions src/pages/AppMarketplace/GetBitz/GiveBitz/PowerUpBounty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@ const PowerUpBounty = (props: PowerUpBountyProps) => {
backgroundRepeat: "no-repeat",
}} /> */}
<>
<div className="mb-3 text-lg font-bold p-1">{title}</div>
<div className="py-2 border-b-4 border-[#35d9fa]/30 text-sm h-[11rem]">
{summary} <br />
{readMoreLink && (
<a className="!text-[#35d9fa] hover:underline" href={readMoreLink} target="blank">
Read More
</a>
)}
<div className="mb-3 text-lg font-bold p-1 md:h-11">{title}</div>
<div className="py-2 border-b-4 border-[#35d9fa]/30 text-sm ">
<div className="md:h-[10rem] overflow-y-auto">{summary} </div>
<div className="md:h-[1.3rem]">
{readMoreLink && (
<a className="!text-[#35d9fa] hover:underline" href={readMoreLink} target="blank">
Read More
</a>
)}{" "}
</div>
</div>
<div className="my-2">
Submitted Id:{" "}
Expand All @@ -98,7 +100,15 @@ const PowerUpBounty = (props: PowerUpBountyProps) => {
</div>
<div className="mb-3 py-1">Bounty Id: {bountyId}</div>
<div className="mb-3 py-1 border-b-4 border-[#35d9fa]/30">Submitted On: {moment(submittedOnTs * 1000).format("YYYY-MM-DD")}</div>
<div className="mb-3 py-2 border-b-4 border-[#35d9fa]/30 text-sm">Bounty Fulfillment Perks: {fillPerks}</div>
<div className="mb-3 py-2 border-b-4 border-[#35d9fa]/30 text-sm">
Data Bounty Fulfillment Perks: <br />
{/* // h-[120px] */}
<ul className="mt-2 h-[280px] overflow-y-auto ">
{fillPerks.split("\n").map((line, index) => {
return <li key={index}>💎 {line}</li>;
})}
</ul>
</div>
{address && (
<GiveBitzLowerCard
bountySubmitter={bountySubmitter}
Expand All @@ -111,17 +121,18 @@ const PowerUpBounty = (props: PowerUpBountyProps) => {
)}

{address && (
<div
className="rounded-b-3xl w-full bg-[#35d9fa]/30 dark:bg-neutral-950 hover:bg-[#2495AC] hover:dark:bg-[#022629] cursor-pointer text-foreground relative"
onClick={handleLeaderboard}>
<div className="flex item-center justify-center border-t-4 border-[#35d9fa]/30">
<div className="relative">
<div
onClick={handleLeaderboard}
className="relative flex z-[100] cursor-pointer text-foreground rounded-b-3xl w-full bg-[#35d9fa]/30 dark:bg-neutral-950 hover:bg-[#2495AC] hover:dark:bg-[#022629] item-center justify-center border-t-4 border-[#35d9fa]/30">
<p className="p-2">{showLeaderboard ? "Close" : `Leaderboard`} </p>
</div>

<motion.div
initial={{ y: 0 }}
animate={{ opacity: showLeaderboard ? 1 : 0, y: showLeaderboard ? -756 : 0 }}
animate={{ opacity: showLeaderboard ? 1 : 0, y: showLeaderboard ? -800 : 0 }}
transition={{ duration: 1, type: "spring" }}
className=" z-20 h-[753px] w-full -mt-10 md:-mt-0 md:h-[713px] overflow-y-auto border border-[#35d9fa]/30 shadow-inner shadow-[#35d9fa]/30 bg-[#2495AC] dark:bg-[#022629] absolute p-4 rounded-t-3xl z-100">
className="z-20 h-[797px] w-full -mt-10 overflow-y-auto border border-[#35d9fa]/30 shadow-inner shadow-[#35d9fa]/30 bg-[#2495AC] dark:bg-[#022629] absolute p-4 rounded-t-xl z-100">
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} className="flex flex-col max-w-[100%] p-[.5rem] mb-[3rem] rounded-[1rem]">
<h4 className="text-center text-white mb-[1rem] !text-[1rem]">
Giver Leaderboard <br />
Expand All @@ -144,14 +155,14 @@ const PowerUpBounty = (props: PowerUpBountyProps) => {
</motion.div>
</div>
)}
<Link
to="https://docs.google.com/forms/d/e/1FAIpQLSctQIpxSw-TnJzP52nUddJEun28DUcObqbUGH8ulHEd0MNmaQ/viewform?usp=sf_link"
target="_blank"
className="relative z-[100] mt-2 text-[#35d9fa] hover:underline text-xs md:text-sm flex flex-row gap-1 justify-center items-center">
Fill this bounty as a Data NFT!
<ExternalLinkIcon width={12} />
</Link>
</>
<Link
to="https://docs.google.com/forms/d/e/1FAIpQLSctQIpxSw-TnJzP52nUddJEun28DUcObqbUGH8ulHEd0MNmaQ/viewform?usp=sf_link"
target="_blank"
className="mt-2 text-[#35d9fa] hover:underline text-xs md:text-sm flex flex-row gap-1 justify-center items-center">
Fill this bounty as a Data NFT!
<ExternalLinkIcon width={12} />
</Link>
</div>
</div>
</div>
Expand Down
67 changes: 50 additions & 17 deletions src/pages/AppMarketplace/GetBitz/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function getDataBounties() {
if (import.meta.env.VITE_ENV_NETWORK && import.meta.env.VITE_ENV_NETWORK === EnvironmentsEnum.devnet) {
allBounties.push({
bountySubmitter: "erd1xdq4d7uewptx9j9k23aufraklda9leumqc7eu3uezt2kf4fqxz2sex2rxl",
bountyId: "b1",
bountyId: "b11",
title: "Top 50 addresses of daily ITHEUM flippers",
summary: "A dynamic Data NFT which can be opened to find the top 50 flippers of ITHEUM tokens",
readMoreLink: "https://docs.itheum.io/data-bounties/top-itheum-flippers",
Expand All @@ -76,34 +76,67 @@ export function getDataBounties() {

allBounties.push({
bountySubmitter: "erd1xdq4d7uewptx9j9k23aufraklda9leumqc7eu3uezt2kf4fqxz2sex2rxl",
bountyId: "b2",
bountyId: "b21",
title: "Top 50 addresses of daily RIDE flippers",
summary: "A dynamic Data NFT which can be opened to find the top 50 flippers of RIDE tokens",
readMoreLink: "https://docs.itheum.io/data-bounties/top-ride-flippers",
submittedOnTs: 1712713989,
fillPerks: "Top 20 Leaderboard gets Data NFT once bounty launches. 10 Data NFTs to be dropped to random winners of top 100 Leaderboard.",
});

allBounties.push({
bountySubmitter: "erd1qmsq6ej344kpn8mc9xfngjhyla3zd6lqdm4zxx6653jee6rfq3ns3fkcc7",
bountySubmitter: "erd1lgyz209038gh8l2zfxq68kzl9ljz0p22hv6l0ev8fydhx8s9cwasdtrua2",
bountyId: "b1",
title: "DNB Music DataNFT",
summary:
"Craft a Music Data NFT featuring a dynamic playlist of at least 3 songs. The playlist can evolve over time based on community input. AI utilization is allowed as long as the content generated complies with the Terms of Use.",
readMoreLink: "",
submittedOnTs: 1714138439,
fillPerks:
"The Creator of the bounty will receive 5 copies of the album.\n The top 5 contributors on the GiveBiTz leaderboard for this bounty will each receive 3 copies.\n Contributors ranked 6th to 20th will receive 2 copies each.\n Contributors ranked 21st to 50th will receive 1 copy each.\n Additionally, 5 lucky winners from the top 51 to 100 contributors will each receive 1 copy.\n 50 copies donated to BiTz Monthly Leaderboard",
});
allBounties.push({
bountySubmitter: "erd1lgyz209038gh8l2zfxq68kzl9ljz0p22hv6l0ev8fydhx8s9cwasdtrua2",
bountyId: "b2",
title: "Hip-Hop Music DataNFT",
summary: "Craft a Music Data NFT featuring a dynamic playlist of at least 3 songs. The playlist can evolve over time based on community input.",
readMoreLink: "https://docs.itheum.io/data-bounties/top-ride-flippers",
submittedOnTs: 1714138439,
fillPerks:
"The Creator of the bounty will receive 5 copies of the album.\n The top 5 contributors on the GiveBiTz leaderboard for this bounty will each receive 3 copies.\n Contributors ranked 6th to 20th will receive 2 copies each.\n Contributors ranked 21st to 50th will receive 1 copy each.\n Additionally, 5 lucky winners from the top 51 to 100 contributors will each receive 1 copy.\n 50 copies donated to BiTz Monthly Leaderboard",
});
allBounties.push({
bountySubmitter: "erd108t4gdwdhwx2xhj5q0e6pujurk0kdyzxxh69987e873n83xumazshe0l3r",
bountyId: "b3",
title: "Top 50 addresses of daily EGLD flippers",
summary: "A dynamic Data NFT which can be opened to find the top 50 flippers of EGLD tokens",
readMoreLink: "https://docs.itheum.io/data-bounties/top-egld-flippers",
submittedOnTs: 1712713989,
fillPerks: "Top 20 Leaderboard gets Data NFT once bounty launches. 10 Data NFTs to be dropped to random winners of top 100 Leaderboard.",
title: "$BOBER flippers",
summary:
"Create a dynamic visual map of everyone flipping $BOBER. Each address should be represented as a Bubble, and the bubble increases every time the address sells $BOBER.\n The dynamic map can show the top 150/250/500 flippers as a starting point and evolve into more numbers over time.\n",
readMoreLink: "",
submittedOnTs: 1714138439,
fillPerks:
"The Creator of the bounty will receive 5 copies of the album.\n The top 5 contributors on the GiveBiTz leaderboard for this bounty will each receive 3 copies.\n Contributors ranked 6th to 20th will receive 2 copies each.\n Contributors ranked 21st to 50th will receive 1 copy each.\n Additionally, 5 lucky winners from the top 51 to 100 contributors will each receive 1 copy.\n 50 copies donated to BiTz Monthly Leaderboard",
});

allBounties.push({
bountySubmitter: "erd16vjhrga4yjpy88lwnu64wlxlapwxtvjl93jax4rg3yq3hzxtnausdmhcjf",
bountySubmitter: "erd108t4gdwdhwx2xhj5q0e6pujurk0kdyzxxh69987e873n83xumazshe0l3r",
bountyId: "b4",
title: "Top 50 addresses of daily ASH flippers",
summary: "A dynamic Data NFT which can be opened to find the top 50 flippers of ASH tokens",
readMoreLink: "https://docs.itheum.io/data-bounties/top-ash-flippers",
submittedOnTs: 1712713989,
fillPerks: "Top 20 Leaderboard gets Data NFT once bounty launches. 10 Data NFTs to be dropped to random winners of top 100 Leaderboard.",
title: "ESDT flippers",
summary:
"Create a dynamic visual map of everyone flipping any ESDT tokens. Each address should be represented as a Bubble, and the bubble increases every time the address sells ESDT.\n The dynamic map can show the top 150/250/500 flippers as a starting point and evolve into more numbers over time.\n",
readMoreLink: "",
submittedOnTs: 1714138439,
fillPerks:
"The Creator of the bounty will receive 5 copies of the album.\n The top 5 contributors on the GiveBiTz leaderboard for this bounty will each receive 3 copies.\n Contributors ranked 6th to 20th will receive 2 copies each.\n Contributors ranked 21st to 50th will receive 1 copy each.\n Additionally, 5 lucky winners from the top 51 to 100 contributors will each receive 1 copy.\n 50 copies donated to BiTz Monthly Leaderboard",
});
allBounties.push({
bountySubmitter: "erd1mvuj03mcvrpc48nhnkptdjkx9xwm65jadxgy500m293vvkqkkutqgfm24d",
bountyId: "b5",
title: "MultiversX Meme vs Other Major Blockchain Meme Coin Activity",
summary:
"hain vs other major Blockchain ecosystems. The activity can include volumes per day, total unique holders, and any other valuable metrics that show “activity”Create a dynamic visual map that compares the Meme Coin activity in the MultiversX blockchain vs other major Blockchain ecosystems. The activity can include volumes per day, total unique holders, and any other valuable metrics that show “activity”",
readMoreLink: "",
submittedOnTs: 1714138439,
fillPerks:
"The Creator of the bounty will receive 5 copies of the album.\n The top 5 contributors on the GiveBiTz leaderboard for this bounty will each receive 3 copies.\n Contributors ranked 6th to 20th will receive 2 copies each.\n Contributors ranked 21st to 50th will receive 1 copy each.\n Additionally, 5 lucky winners from the top 51 to 100 contributors will each receive 1 copy.\n 50 copies donated to BiTz Monthly Leaderboard",
});

return allBounties;
} else {
allBounties.push({
Expand Down