@goodaofi/bonds-sdk 3.0.130 → 3.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1 -78
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -94551,83 +94551,6 @@ const BondRowsByChain = ({ contractsByChain }) => {
|
|
|
94551
94551
|
}) }));
|
|
94552
94552
|
};
|
|
94553
94553
|
|
|
94554
|
-
const Confetti = ({ trigger }) => {
|
|
94555
|
-
const canvasRef = useRef(null);
|
|
94556
|
-
const confettiTriggeredRef = useRef(false);
|
|
94557
|
-
useEffect(() => {
|
|
94558
|
-
if (trigger && !confettiTriggeredRef.current) {
|
|
94559
|
-
confettiTriggeredRef.current = true;
|
|
94560
|
-
triggerConfetti();
|
|
94561
|
-
}
|
|
94562
|
-
}, [trigger]);
|
|
94563
|
-
const triggerConfetti = () => {
|
|
94564
|
-
const canvas = canvasRef.current;
|
|
94565
|
-
if (!canvas)
|
|
94566
|
-
return;
|
|
94567
|
-
const ctx = canvas.getContext('2d');
|
|
94568
|
-
if (!ctx)
|
|
94569
|
-
return;
|
|
94570
|
-
canvas.width = window.innerWidth;
|
|
94571
|
-
canvas.height = window.innerHeight;
|
|
94572
|
-
const particles = [];
|
|
94573
|
-
const colors = ['#312E7A', '#5C4FAE', '#AD6568', '#AD6E66', '#FFD700', '#FF6B6B', '#4ECDC4'];
|
|
94574
|
-
// Create particles
|
|
94575
|
-
for (let i = 0; i < 150; i++) {
|
|
94576
|
-
particles.push({
|
|
94577
|
-
x: Math.random() * canvas.width,
|
|
94578
|
-
y: -10,
|
|
94579
|
-
vx: (Math.random() - 0.5) * 8,
|
|
94580
|
-
vy: Math.random() * 3 + 2,
|
|
94581
|
-
color: colors[Math.floor(Math.random() * colors.length)],
|
|
94582
|
-
size: Math.random() * 8 + 4,
|
|
94583
|
-
rotation: Math.random() * 360,
|
|
94584
|
-
rotationSpeed: (Math.random() - 0.5) * 10,
|
|
94585
|
-
});
|
|
94586
|
-
}
|
|
94587
|
-
let animationId;
|
|
94588
|
-
const animate = () => {
|
|
94589
|
-
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
94590
|
-
particles.forEach((particle, index) => {
|
|
94591
|
-
particle.x += particle.vx;
|
|
94592
|
-
particle.y += particle.vy;
|
|
94593
|
-
particle.vy += 0.15; // gravity
|
|
94594
|
-
particle.rotation += particle.rotationSpeed;
|
|
94595
|
-
ctx.save();
|
|
94596
|
-
ctx.translate(particle.x, particle.y);
|
|
94597
|
-
ctx.rotate((particle.rotation * Math.PI) / 180);
|
|
94598
|
-
ctx.fillStyle = particle.color;
|
|
94599
|
-
ctx.fillRect(-particle.size / 2, -particle.size / 2, particle.size, particle.size);
|
|
94600
|
-
ctx.restore();
|
|
94601
|
-
// Remove particles that are off screen
|
|
94602
|
-
if (particle.y > canvas.height) {
|
|
94603
|
-
particles.splice(index, 1);
|
|
94604
|
-
}
|
|
94605
|
-
});
|
|
94606
|
-
if (particles.length > 0) {
|
|
94607
|
-
animationId = requestAnimationFrame(animate);
|
|
94608
|
-
}
|
|
94609
|
-
else {
|
|
94610
|
-
// Clean up canvas after animation
|
|
94611
|
-
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
94612
|
-
}
|
|
94613
|
-
};
|
|
94614
|
-
animate();
|
|
94615
|
-
return () => {
|
|
94616
|
-
if (animationId)
|
|
94617
|
-
cancelAnimationFrame(animationId);
|
|
94618
|
-
};
|
|
94619
|
-
};
|
|
94620
|
-
return (jsx$2("canvas", { ref: canvasRef, style: {
|
|
94621
|
-
position: 'fixed',
|
|
94622
|
-
top: 0,
|
|
94623
|
-
left: 0,
|
|
94624
|
-
width: '100%',
|
|
94625
|
-
height: '100%',
|
|
94626
|
-
pointerEvents: 'none',
|
|
94627
|
-
zIndex: 9999,
|
|
94628
|
-
} }));
|
|
94629
|
-
};
|
|
94630
|
-
|
|
94631
94554
|
const ProgressBar = ({ saleInfo }) => {
|
|
94632
94555
|
var _a, _b, _c, _d;
|
|
94633
94556
|
const nextStageNumber = (_a = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _a === void 0 ? void 0 : _a.stageNumber;
|
|
@@ -94678,7 +94601,7 @@ const ProgressBar = ({ saleInfo }) => {
|
|
|
94678
94601
|
})
|
|
94679
94602
|
: 'N/A';
|
|
94680
94603
|
}, [saleInfo]);
|
|
94681
|
-
return (jsxs(Fragment$1, { children: [
|
|
94604
|
+
return (jsxs(Fragment$1, { children: [jsxs(Flex$1, { sx: { alignItems: 'end', justifyContent: 'space-between', flexDirection: 'row', mt: '1rem' }, children: [jsxs(Flex$1, { sx: { flexDirection: 'column', width: '200px', alignItems: 'start' }, children: [jsx$2(Text, { sx: {
|
|
94682
94605
|
fontSize: '14px',
|
|
94683
94606
|
fontWeight: '700',
|
|
94684
94607
|
color: 'var(--theme-ui-colors-textDisabledButton)',
|