-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
911 lines (833 loc) · 39.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>CORNHUB INTL INC.</title>
<meta content="text/html; charset=unicode" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18828">
<link rel="icon" type="image/png" href="images/favicon-32x32 2.png" sizes="32x32">
<link rel="icon" type="image/png" href="images/favicon-16x16 2.png" sizes="16x16">
<style>
table {
width: 100%;
max-width: 1200px;
margin: 0 auto;
}
td {
width: 50%;
padding: 10px;
vertical-align: top;
}
body {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
img {
max-width: 100%;
height: auto;
}
a {
text-decoration: none;
color: #000080;
}
a:visited {
color: #000080;
}
.wallet-connect {
position: absolute;
top: 20px;
right: 20px;
}
.connect-button {
background-color: #000080;
border: none;
color: white;
padding: 12px 24px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
transition: all 0.3s ease;
}
.connect-button:hover {
background-color: #0000a0;
transform: translateY(-2px);
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.connect-button.connected {
background-color: #4040ff;
color: white;
}
.connect-button.enabled {
background-color: #4040ff;
}
.balance-table {
margin: 20px auto;
border-collapse: collapse;
width: 90%;
max-width: 800px;
table-layout: fixed;
}
.balance-table th, .balance-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
font-size: clamp(10px, 1.5vw, 14px);
}
.balance-table th {
background-color: #000080;
color: white;
}
.balance-table td:last-child {
font-family: monospace;
padding: 0;
height: 40px;
position: relative;
overflow: hidden;
}
.balance-table td:last-child a {
position: absolute;
width: 100%;
animation: marquee 15s linear infinite;
white-space: nowrap;
}
.balance-table td:last-child a:nth-child(2) {
animation-delay: 5s;
}
.balance-table td:last-child a:nth-child(3) {
animation-delay: 10s;
}
@keyframes marquee {
0% { transform: translateY(100%); }
5% { transform: translateY(0); }
28% { transform: translateY(0); }
33% { transform: translateY(-100%); }
100% { transform: translateY(-100%); }
}
</style>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/5.7.2/ethers.umd.min.js"></script>
<script src="script.js"></script>
<script>
window.addEventListener('load', async () => {
if (typeof window.ethereum !== 'undefined') {
const polygonChainId = '0x89'; // Chain ID for Polygon Mainnet
const currentChainId = await window.ethereum.request({ method: 'eth_chainId' });
const button = document.getElementById('connect-button');
if (currentChainId !== polygonChainId) {
button.textContent = 'Change Network';
button.classList.add('change-network');
button.addEventListener('click', async () => {
try {
await window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: polygonChainId }],
});
window.location.reload();
} catch (switchError) {
if (switchError.code === 4902) {
alert('Polygon network is not available in your MetaMask. Please add it manually.');
} else {
console.error('Failed to switch network', switchError);
}
}
});
} else {
try {
await window.ethereum.request({ method: 'eth_requestAccounts' });
button.textContent = 'Connected';
button.classList.add('connected');
document.getElementById('button-grid').style.display = 'grid';
document.getElementById('wallet-status').style.display = 'none';
document.getElementById('balance-info').style.display = 'block';
updateBalances();
} catch (error) {
console.error('User denied account access');
}
}
} else {
alert('Please install MetaMask!');
}
});
async function connectWallet() {
if (typeof window.ethereum !== 'undefined') {
const polygonChainId = '0x89'; // Chain ID for Polygon Mainnet
const currentChainId = await window.ethereum.request({ method: 'eth_chainId' });
const button = document.getElementById('connect-button');
if (currentChainId !== polygonChainId) {
button.textContent = 'Change Network';
button.classList.add('change-network');
button.addEventListener('click', async () => {
try {
await window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: polygonChainId }],
});
window.location.reload();
} catch (switchError) {
if (switchError.code === 4902) {
alert('Polygon network is not available in your MetaMask. Please add it manually.');
} else {
console.error('Failed to switch network', switchError);
}
}
});
} else {
try {
await window.ethereum.request({ method: 'eth_requestAccounts' });
button.textContent = 'Connected';
button.classList.add('connected');
document.getElementById('button-grid').style.display = 'grid';
document.getElementById('wallet-status').style.display = 'none';
document.getElementById('balance-info').style.display = 'block';
updateBalances();
} catch (error) {
console.error('User denied account access');
}
}
} else {
alert('Please install MetaMask!');
}
}
async function updateBalances() {
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
const address = await signer.getAddress();
// Update Corn Token balance
const cornTokenAddress = '0xa0c45509036c422ea7c4d4fcac26a9925531d8c3';
const cornTokenAbi = ['function balanceOf(address) view returns (uint256)'];
const cornTokenContract = new ethers.Contract(cornTokenAddress, cornTokenAbi, provider);
const cornBalance = await cornTokenContract.balanceOf(address);
const cornBalanceFormatted = parseFloat(ethers.utils.formatUnits(cornBalance, 18)).toFixed(3);
document.getElementById('balance').innerText = cornBalanceFormatted;
document.getElementById('balance-display').innerText = cornBalanceFormatted;
// Update PopCorn Token balance
const popCornTokenAddress = '0x6531547b44784dDD8A934fB9fEB92ba582dfeD15';
const popCornTokenContract = new ethers.Contract(popCornTokenAddress, cornTokenAbi, provider);
const popCornBalance = await popCornTokenContract.balanceOf(address);
const popCornBalanceFormatted = parseFloat(ethers.utils.formatUnits(popCornBalance, 18)).toFixed(3);
document.getElementById('balance2').innerText = popCornBalanceFormatted;
document.getElementById('balance2-display').innerText = popCornBalanceFormatted;
// Update Butter Token balance
const butterTokenAddress = '0x409e02e728418501720d7b1e5d7328ac461ecaae';
const butterTokenContract = new ethers.Contract(butterTokenAddress, cornTokenAbi, provider);
const butterBalance = await butterTokenContract.balanceOf(address);
const butterBalanceFormatted = parseFloat(ethers.utils.formatUnits(butterBalance, 18)).toFixed(3);
document.getElementById('balance3').innerText = butterBalanceFormatted;
document.getElementById('balance3-display').innerText = butterBalanceFormatted;
// Enable/disable burn buttons based on CORN balance
const cornBalanceNum = parseFloat(cornBalanceFormatted);
document.getElementById('burn-1-corn').classList.toggle('enabled', cornBalanceNum >= 1);
document.getElementById('burn-3-corn').classList.toggle('enabled', cornBalanceNum >= 3);
document.getElementById('burn-5-corn').classList.toggle('enabled', cornBalanceNum >= 5);
// Enable/disable mint buttons based on POPCORN balance
const popcornBalanceNum = parseFloat(popCornBalanceFormatted);
document.getElementById('mint-bronze').classList.toggle('enabled', popcornBalanceNum >= 1);
document.getElementById('mint-silver').classList.toggle('enabled', popcornBalanceNum >= 3);
document.getElementById('mint-gold').classList.toggle('enabled', popcornBalanceNum >= 5);
}
</script>
</head>
<body bgcolor="#ffffff" text="#000080">
<b>
<font size="12"><p align="center">C</font><font size="8">ORN </font>
<font size="12">H</font><font size="8">UB </font>
<font size="4">INC.<br>CornHub.eth</font><br>Official Home Page</b>
<font size="2"> </p></font>
<center>
"God is just. Work is rewarded with blessing if not money. <br>
Luck is the most important thing, but really it's God."<br>
</center>
<!-- bitcoin countdoun -->
<div id="bitcoin-halving-countdown" style="text-align: center; margin: 20px;">
<h5>Bitcoin Halving Countdown</h5>
<div id="countdown" style="font-family: Arial, sans-serif; font-size: 24px; color: #333;"></div>
</div>
<script>
// Set the date and time for the next Bitcoin halving event
const halvingDate = new Date('April 14, 2028 14:36:22 UTC').getTime();
// Update the countdown every second
const countdownFunction = setInterval(() => {
const now = new Date().getTime();
const timeLeft = halvingDate - now;
// Time calculations for days, hours, minutes, and seconds
const days = Math.floor(timeLeft / (1000 * 60 * 60 * 24));
const hours = Math.floor((timeLeft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((timeLeft % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((timeLeft % (1000 * 60)) / 1000);
// Display the result
document.getElementById('countdown').innerHTML =
days + 'd ' + hours + 'h ' + minutes + 'm ' + seconds + 's ';
// If the countdown is over, display a message
if (timeLeft < 0) {
clearInterval(countdownFunction);
document.getElementById('countdown').innerHTML = 'The Bitcoin halving has occurred!';
}
}, 1000);
</script>
<div style="overflow: hidden; margin: 20px auto; width: 90%; max-width: 800px;">
<label for="toggle-marquee">Stop Ticker:</label>
<input type="checkbox" id="toggle-marquee" onclick="toggleMarquee()">
<div id="marquee-container">
<div style="white-space: nowrap; animation: scroll1 20s linear infinite;" class="marquee">
Corn Token - Balance: <span id="balance"></span> - <a href="https://quickswap.exchange/#/swap?exactField=input&outputCurrency=0xa0c45509036c422ea7c4d4fcac26a9925531d8c3&swapIndex=0¤cy0=ETH" target="_blank">Trade Corn</a> - Contract: <a href="https://polygonscan.com/address/0xa0c45509036c422ea7c4d4fcac26a9925531d8c3" target="_blank">0xa0c45509036c422ea7c4d4fcac26a9925531d8c3</a>
</div>
<div style="white-space: nowrap; animation: scroll2 30s linear infinite;" class="marquee">
PopCorn Token - Balance: <span id="balance2"></span> - <a href="https://quickswap.exchange/#/swap?exactField=input&outputCurrency=0x6531547b44784dDD8A934fB9fEB92ba582dfeD15&swapIndex=0¤cy0=ETH" target="_blank">Trade PopCorn</a> - Contract: <a href="https://polygonscan.com/address/0x6531547b44784dDD8A934fB9fEB92ba582dfeD15" target="_blank">0x6531547b44784dDD8A934fB9fEB92ba582dfeD15</a>
</div>
<div style="white-space: nowrap; animation: scroll3 25s linear infinite;" class="marquee">
Butter Token - Balance: <span id="balance3"></span> - <a href="https://quickswap.exchange/#/swap?exactField=input&outputCurrency=0x409e02e728418501720d7b1e5d7328ac461ecaae&swapIndex=0¤cy0=ETH" target="_blank">Trade Butter</a> - Contract: <a href="https://polygonscan.com/address/0x409e02e728418501720d7b1e5d7328ac461ecaae" target="_blank">0x409e02e728418501720d7b1e5d7328ac461ecaae</a>
</div>
</div>
</div>
<br>
<script>
function toggleMarquee() {
const isChecked = document.getElementById('toggle-marquee').checked;
const marquees = document.querySelectorAll('.marquee');
if (isChecked) {
marquees.forEach(m => {
m.style.animation = 'none';
m.style.display = 'inline'; // Center the text
});
} else {
marquees.forEach((m, index) => {
m.style.animation = `scroll${index + 1} ${20 + index * 5}s linear infinite`;
m.style.display = 'block'; // Reset to block for scrolling
});
}
}
</script>
<script src="https://widgets.coingecko.com/gecko-coin-price-static-headline-widget.js"></script>
<gecko-coin-price-static-headline-widget locale="en" transparent-background="true" coin-ids="bitcoin,ethereum,chainlink,milady-cult-coin,curve-dao-token,aavegotchi,heheh" initial-currency="usd"></gecko-coin-price-static-headline-widget>
<style>
@keyframes scroll1 {
from { transform: translateX(100%); }
to { transform: translateX(-100%); }
}
@keyframes scroll2 {
from { transform: translateX(100%); }
to { transform: translateX(-100%); }
}
@keyframes scroll3 {
from { transform: translateX(100%); }
to { transform: translateX(-100%); }
}
</style>
<p align="center">
<center>
<table border="0" cellspacing="0">
<tbody>
<tr>
<td>
<ul>
<li style="font-size: 200%"><a href="./message.html">A Message from Tyler</a><br>
</ul>
</td>
<td>
<ul>
<li style="font-size: 200%"><a href="./gold.html">Gold & Glory</a><br>
<font size="2">in Times of Thought Chaos</font></li>
</ul>
</td>
</tr>
<tr>
<td>
<ul>
<li style="font-size: 200%"><a href="https://www.gallery.so/tylerirl" target="_blank">Visit Tyler's NFT Gallery</a><br>
<font size="2">Updated December 24, 2024</font></li>
</ul>
</td>
<td>
<ul>
<li style="font-size: 200%"><a href="https://quickswap.exchange/#/swap?exactField=input&outputCurrency=0xa0c45509036c422ea7c4d4fcac26a9925531d8c3&swapIndex=0" target="_blank">Buy $CORN Kernels</a><br>
<font size="2">Updated February 28, 2023</font></li>
</ul>
</td>
</tr>
<tr>
<td>
<ul>
<li style="font-size: 200%"><a href="https://polygonscan.com/address/0x1193d3f5d97e9a8a3B4511a718Eda88C21722B44" target="_blank">PopCorn Machine Contract</a><br>
<font size="2">Updated Oct 3, 2021</font></li>
</ul>
</td>
<td>
<ul>
<li style="font-size: 200%"><a href="https://rarible.com/token/0xd07dc4262bcdbf85190c01c996b4c06a461d2430:540112?tab=overview" target="_blank">Buy OG CornHub VIP NFTs</a><br>
<font size="2">Updated May 4, 2021</font></li>
</ul>
</td>
</tr>
</tbody>
</table>
</center>
<hr>
<br>
<!-- <center><a href="https://app.transporter.io/?from=polygon&tab=token&to=arbitrum" target="_blank">
Bridge CORN to Arbitrum!
</a></center> -->
<p align="center" style="font-size: 1.4em">
<span id="wallet-status">To See Token Balances Please Connect Wallet<br>
<button id="connect-button" class="connect-button" onclick="connectWallet()">Connect Wallet</button>
</span>
<span id="balance-info" style="display: none">
Current CornHub Token Balances: <br>
<span id="balance-display">0</span> CORN |
<span id="balance2-display">0</span> POPCORN |
<span id="balance3-display">0</span> BUTTER
</span>
</p>
<br>
<div id="button-grid" class="button-grid" style="display: none;">
<button id="connect-button" class="connect-button" onclick="connectWallet()">Connected</button>
<button class="connect-button" onclick="approve()" style="width: 100%;">Approve Corn</button>
<button class="connect-button" onclick="approve2()" style="width: 100%;">Approve PopCorn</button>
<button id="burn-1-corn" class="connect-button" onclick="burncorn(1)" style="width: 100%;">Burn 1 Corn</button>
<button id="burn-3-corn" class="connect-button" onclick="burncorn(3)" style="width: 100%;">Burn 3 Corn</button>
<button id="burn-5-corn" class="connect-button" onclick="burncorn(5)" style="width: 100%;">Burn 5 Corn</button>
<button id="mint-bronze" class="connect-button" onclick="mintnft(1)" style="width: 100%;">Mint Bronze</button>
<button id="mint-silver" class="connect-button" onclick="mintnft(3)" style="width: 100%;">Mint Silver</button>
<button id="mint-gold" class="connect-button" onclick="mintnft(5)" style="width: 100%;">Mint Gold</button>
<!-- <div class="button-images"></div> -->
</div>
</div>
<style>
.button-grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Create a 3x3 grid */
gap: 10px;
max-width: 600px;
margin: 20px auto;
}
.button-images {
grid-column: span 3; /* Make images span across all columns */
}
.button-row .connect-button {
width: 100%; /* Ensure buttons take full width on mobile */
}
</style>
<p align="center">
<img src="images/moeda-bronze.png" alt="Bronze Kernel" style="width:100px;height:100px;">
<img src="images/moeda.png" alt="Silver Kernel" style="width:100px;height:100px;">
<img src="images/moeda-gold.png" alt="Gold Kernel" style="width:100px;height:100px;"><br>
<div style="text-align: center;">
<section id="blurb" style="font-size: 1.4em; font-family: 'YourFontFamily';">
<a id="ca" style="text-align:center;color:#000080;cursor:pointer;" onclick="copyToClipboard('0x872348f097cfa396edba3313b89aff9930d0b847')" data-tooltip-id="tooltip" data-tooltip-content="Click to copy" data-tooltip-class-name="max-sm:hidden">
ARBITRUM ADDRESS:
<span class="contract-address" style="overflow-wrap:break-word;font-family:monospace;color:#000080;">[0x872348f097cfa396edba3313b89aff9930d0b847]</span><br>
<a id="ca" style="text-align:center;color:#000080;cursor:pointer;" onclick="copyToClipboard('0xa0c45509036c422ea7c4d4fcac26a9925531d8c3')" data-tooltip-id="tooltip" data-tooltip-content="Click to copy" data-tooltip-class-name="max-sm:hidden">
POLYGON ADDRESS:
<span class="contract-address" style="overflow-wrap:break-word;font-family:monospace;color:#000080;" >[0xa0c45509036c422ea7c4d4fcac26a9925531d8c3]</span><br><br>
</a>
<div id="linkies" style=justify-content:space-evenly">
<span>
<a href="https://app.transporter.io/?from=polygon&tab=token&to=arbitrum" style="color:#000080;" target="_blank">[BRIDGE]</a>
</span>
<span>
<a href="https://app.uniswap.org/explore/tokens/arbitrum/0x872348f097cfa396edba3313b89aff9930d0b847" style="color:#000080;" target="_blank">[ UNISWAP ]</a>
</span>
<span>
<a href="https://arbiscan.io/address/0x872348f097cfa396edba3313b89aff9930d0b847" style="color:#000080;" target="_blank">[ ARBISCAN ]</a>
</span>
<span>
<a href="https://polygonscan.com/address/0xa0c45509036c422ea7c4d4fcac26a9925531d8c3" style="color:#000080;" target="_blank">[ POLYGONSCAN ]</a>
<br><br>
</span>
</div>
</section>
<script>
function copyToClipboard(text) {
navigator.clipboard.writeText(text).then(function() {
alert('Contract address copied to clipboard');
}, function(err) {
console.error('Could not copy text: ', err);
});
}
</script>
</a>
<label for="amountInput">Amount to Bridge:</label>
<input type="number" id="amountInput" placeholder="Enter amount" min="0" step="0.01">
<button id="sendTransaction">Bridge Token</button>
<script>
const sendTransaction = async () => {
try {
// ensure the browser wallet is connected
if (!window.ethereum) {
alert("Please install Metamask!");
return;
}
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
const senderAddress = await signer.getAddress();
const amountInput = document.getElementById("amountInput").value;
if (!amountInput || isNaN(amountInput) || amountInput <= 0) {
alert("Please enter a valid amount to bridge.");
return;
}
const decimals = 18;
const amount = ethers.utils.parseUnits(amountInput, decimals);
const contractAddress = "0x849c5ED5a80F5B408Dd4969b78c2C8fdf0565Bfe";
const recipientContract = "0xa0c45509036c422ea7c4d4fcac26a9925531d8c3";
const bridgeMethodId = "0x96f4e9f9"; // method ID for the bridge function
const encodedData = ethers.utils.defaultAbiCoder.encode(
["address", "uint256", "address", "uint256"],
[senderAddress, 1, recipientContract, amount]
);
const data = bridgeMethodId + encodedData.slice(2); // slice(2) to remove "0x" prefix
const tx = {
to: contractAddress,
data,
};
const response = await signer.sendTransaction(tx);
alert(`Transaction sent! Tx Hash: ${response.hash}`);
console.log("Transaction response:", response);
} catch (error) {
console.error("Error sending transaction:", error);
alert(`Error: ${error.message}`);
}
};
document
.getElementById("sendTransaction")
.addEventListener("click", sendTransaction);
</script>
<br>
<font size="2" style="font-size: 120%">
Our Father, which art in the blockchain, Hallowed be thy Node.<br>
Thy Moon will come. Thy hash will be done, on earth, As it is encrypted.<br>
Give us this day our daily coin. And forgive us our DDoSes, As we forgive them that DDoS against us.<br>
And lead us not into regulation, But deliver us from fiat currency inflation.<br>
For thine is the Ledger, The processing power, and the wattage.<br>
For ever and ever.<br>
Amen<br>
</font>
</p>
<hr>
<h2 style="text-align: center;">CornHub Community Resources</h2>
<h6 style="text-align: center;">not financial advice, do your own research</h6>
<div style="display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; max-width: 90%; margin: 0 auto; justify-items: center;">
<div>
<h3>CornHub</h3>
<p>
<a href="https://polygonscan.com/address/0xa0c45509036c422ea7c4d4fcac26a9925531d8c3" target="_blank">CORN Token</a><br>
<a href="https://polygonscan.com/address/0x6531547b44784dDD8A934fB9fEB92ba582dfeD15" target="_blank">POPCORN Token</a><br>
<a href="https://polygonscan.com/address/0x409e02e728418501720d7b1e5d7328ac461ecaae" target="_blank">BUTTER Token</a><br>
<a href="https://polygonscan.com/address/0x1193d3f5d97e9a8a3B4511a718Eda88C21722B44" target="_blank">PopCorn Machine</a><br>
<a href="https://opensea.io/collection/cornhub-popcorn-collection" target="_blank">PopCorn Collection</a><br>
</p>
<h4>Exchanges</h4>
<p>
<a href="https://www.coinbase.com" target="_blank">Coinbase</a><br>
<a href="https://www.kraken.com" target="_blank">Kraken</a><br>
<a href="https://www.gemini.com" target="_blank">Gemini</a><br>
<a href="https://www.binance.com/en" target="_blank">Binance</a><br>
</p>
<h4>DEX/AMM</h4>
<p>
<a href="https://www.uniswap.exchange" target="_blank">Uniswap</a><br>
<a href="https://curve.fi/#/ethereum/swap" target="_blank">Curve Fi</a><br>
<a href="https://www.sushi.com/ethereum/swap" target="_blank">SushiSwap</a><br>
<a href="https://aerodrome.finance" target="_blank">Aerodrome</a><br>
<a href="https://quickswap.exchange/#/swap" target="_blank">Quickswap</a><br>
<a href="https://raydium.io/swap" target="_blank">Raydium</a><br>
<a href="https://hyperfoundation.org" target="_blank">HyperLiquid</a><br>
<a href="https://app.camelot.exchange" target="_blank">Camelot</a><br>
<a href="https://www.nile.build/" target="_blank">Nile</a><br>
<a href="https://gmx.io" target="_blank">GMX</a><br>
</p>
</div>
<div>
<h3>Wallets</h3>
<p>
<a href="https://metamask.io" target="_blank">MetaMask</a><br>
<a href="https://trezor.io/trezor-suite" target="_blank">Trezor</a><br>
<a href="https://www.ledger.com" target="_blank">Ledger</a><br>
<a href="https://phantom.com" target="_blank">Phantom</a><br>
<a href="https://keyst.one" target="_blank">Keystone</a><br>
<a href="https://www.xverse.app" target="_blank">Xverse</a><br>
<a href="https://www.myetherwallet.com" target="_blank">MEW Wallet</a><br>
<a href="https://safe.global" target="_blank">Safe</a><br>
</p>
<h4>Aggregators</h4>
<p>
<a href="https://coinmarketcap.com" target="_blank">CoinMarketCap</a><br>
<a href="https://www.coingecko.com" target="_blank">CoinGecko</a><br>
<a href="https://debank.com" target="_blank">DeBank</a><br>
<a href="https://zapper.xyz" target="_blank">Zapper</a><br>
<a href="https://zerion.io" target="_blank">Zerion</a><br>
<a href="https://app.step.finance/" target="_blank">Step</a><br>
<a href="https://www.cointracker.io" target="_blank">CoinTracker</a><br>
<a href="https://koinly.io" target="_blank"> Koinly</a><br>
<a href="https://www.nftscan.com/" target="_blank"> NFTScan</a><br>
</p>
<h4>Explorers</h4>
<p>
<a href="https://www.blockchain.com/explorer" target="_blank">Bitcoin</a><br>
<a href="https://etherscan.io" target="_blank">Ethereum</a><br>
<a href="https://ccip.chain.link" target="_blank">Chainlink</a><br>
<a href="https://explorer.solana.com" target="_blank">Solana</a><br>
<a href="https://arbiscan.io" target="_blank">Arbitrum</a><br>
<a href="https://polygonscan.com" target="_blank">Polygon</a><br>
<a href="https://basescan.org" target="_blank">Base</a><br>
<a href="https://bscscan.com" target="_blank">BNB Chain</a><br>
<a href="https://geist-mainnet.explorer.alchemy.com" target="_blank">Geist</a><br>
</p>
</div>
<div>
<h3>Media</h3>
<p>
<a href="https://www.coindesk.com" target="_blank">Coindesk</a><br>
<a href="https://decrypt.co" target="_blank">Decrypt</a><br>
<a href="https://cointelegraph.com" target="_blank">CoinTelegraph</a><br>
<a href="https://cryptoslate.com" target="_blank">CryptoSlate</a><br>
<a href="https://www.theblock.co" target="_blank">The Block</a><br>
<a href="https://www.ft.com/blockchain" target="_blank">FT Blockchain</a><br>
</p>
<h4>Social</h4>
<p>
<a href="https://www.twitter.com" target="_blank">Twitter (𝕏)</a><br>
<a href="https://gallery.so" target="_blank">Gallery</a><br>
<a href="https://www.lens.xyz" target="_blank">Lens</a><br>
<a href="https://hey.xyz" target="_blank">hey.xyz</a><br>
<a href="https://poap.xyz" target="_blank">poap</a><br>
<a href="https://www.farcaster.xyz" target="_blank">Farcaster</a>
</p>
<h4>Web3 Games</h4>
<p>
<a href="https://dapp.aavegotchi.com" target="_blank">Aavegotchi</a><br>
<a href="https://gv3d.gotchiverse.io" target="_blank">Gotchiverse 3D</a><br>
<a href="https://www.playongeist.com" target="_blank">Geist Mainnet</a><br>
<a href="https://openseason.games" target="_blank">OpenSeason</a><br>
<a href="https://decentraland.org" target="_blank">Decentraland</a><br>
<a href="https://piratenation.game" target="_blank">Pirate Nation</a><br>
<a href="https://x.com/playgigaverse" target="_blank">Gigaverse</a><br>
<a href="https://luchadores.io" target="_blank">Luchadores</a><br>
</p>
</div>
<div>
<h3>DeFi</h3>
<p>
<a href="https://app.aave.com" target="_blank">Aave</a><br>
<a href="https://compound.finance" target="_blank">Compound</a><br>
<a href="https://www.convexfinance.com" target="_blank">Convex</a><br>
<a href="https://yearn.fi" target="_blank">yEarn</a><br>
<a href="https://synthetix.io" target="_blank">Synthetix</a><br>
<a href="https://pooltogether.com" target="_blank">PoolTogether</a><br>
<a href="https://ethena.fi" target="_blank">Ethena</a><br>
<a href="https://omni.network" target="_blank">Omni Network</a><br>
<a href="https://nftx.io" target="_blank">NFTX</a><br>
<a href="https://lido.fi/ethereum" target="_blank">Lido</a><br>
<a href="https://app.kamino.finance/" target="_blank">Kamino</a><br>
<a href="https://app.drift.trade/" target="_blank">Drift</a><br>
<a href="https://www.pendle.finance" target="_blank">Pendle</a><br>
</p>
<h4>Bridges</h4>
<p>
<a href="https://orbiter.finance/en" target="_blank">Orbiter</a><br>
<a href="https://relay.link" target="_blank">Relay.Link</a><br>
<a href="https://synapseprotocol.com/" target="_blank">Synapse</a><br>
<a href="https://across.to" target="_blank">Across</a><br>
</p>
<h4>NFT Marketplaces</h4>
<p>
<a href="https://opensea.io" target="_blank">Opensea</a><br>
<a href="https://pro.opensea.io" target="_blank">OpenSea Pro</a><br>
<a href="https://www.scatter.art" target="_blank">Scatter</a><br>
<a href="https://radder.xyz" target="_blank">Radder</a><br>
<a href="https://blur.io" target="_blank">Blur</a><br>
<a href="https://magiceden.us" target="_blank">Magic Eden</a><br>
<a href="https://rarible.com" target="_blank">Rarible</a><br>
<a href="https://superrare.com" target="_blank">SuperRare</a><br>
<a href="https://foundation.app" target="_blank">Foundation</a><br>
</p>
</div>
<div>
<h3>Networks</h3>
<p>
<a href="https://ethereum.org" target="_blank">Ethereum</a><br>
<a href="https://chain.link" target="_blank">Chainlink</a><br>
<a href="https://arbitrum.io" target="_blank">Arbitrum</a><br>
<a href="https://stake.link" target="_blank">Stake.Link</a><br>
<a href="https://polygon.technology" target="_blank">Polygon</a><br>
<a href="https://www.optimism.io" target="_blank">Optimism</a><br>
<a href="https://www.base.org" target="_blank">Base</a><br>
<a href="https://zksync.io" target="_blank">ZkSync</a><br>
<a href="https://linea.build" target="_blank">Linea</a><br>
<a href="https://inkonchain.com" target="_blank">Ink</a><br>
</p>
<h4>Tokens</h4>
<p>
<a href="https://dexscreener.com/ethereum/0x0000000000c5dc95539589fbD24BE07c6C14eCa4" target="_blank">Milady Cult</a><br>
<a href="https://dexscreener.com/ethereum/0xddc6625feca10438857dd8660c021cd1088806fb" target="_blank">Rad Coin</a><br>
<a href="https://mogcoin.xyz" target="_blank">Mog Coin</a><br>
<a href="https://heheh.finance" target="_blank">heheh</a><br>
<a href="https://ampera.xyz/" target="_blank">Ampera</a><br>
<a href="https://anvil.xyz/" target="_blank">Anvil</a><br>
<a href="https://thegraph.com" target="_blank">The Graph</a><br>
<a href="https://pump.fun/board"target="_blank">Pump.Fun</a><br>
<a href="https://tsotchke.net" target="_blank">tsotchke</a><br>
</p>
</div>
<div>
<h3>Tools</h3>
<p>
<a href="https://dune.com/home" target="_blank">Dune Analytics</a><br>
<a href="https://intel.arkm.com/" target="_blank">Chaintelligence</a><br>
<a href="https://dappradar.com" target="_blank">dApp Radar</a><br>
<a href="https://etherscan.io/gastracker" target="_blank">Gas Tracker</a><br>
<a href="https://dexscreener.com" target="_blank">Dexscreener</a><br>
<a href="https://dextools.io/" target="_blank">Dextools</a><br>
<a href="https://app.ens.domains" target="_blank">ENS Domains</a><br>
<a href="https://app.cindicator.com" target="_blank">Cindicator</a><br>
<a href="https://vfat.tools" target="_blank">Yield Farms</a><br>
<a href="https://snapshot.box/#/" target="_blank">Snapshot</a><br>
<a href="https://cryptofinally.io/start-the-course" target="_blank">DeFi Guide</a><br>
</p>
<h4>Developer</h4>
<p>
<a href="https://remix.ethereum.org" target="_blank">Remix ETH</a><br>
<a href="https://cryptozombies.io" target="_blank">Crypto Zombies</a><br>
<a href="https://chainlist.org" target="_blank">Chain List</a><br>
<a href="https://soliditylang.org" target="_blank">Solidity</a><br>
<a href="https://github.com/Vectorized/solady" target="_blank">Solady</a><br>
<a href="https://vyperlang.org" target="_blank">Vyper</a><br>
<a href="https://hardhat.org" target="_blank">Hardhat</a><br>
<a href="https://moralis.io/" target="_blank">Moralis</a><br>
<a href="https://solidity-by-example.org/" target="_blank">Sol by Example</a><br>
<a href="https://www.smartcontract.engineer/" target="_blank">SC Engineer</a><br>
<a href="https://book.getfoundry.sh" target="_blank">Foundry</a><br>
<a href="https://apeworx.io" target="_blank">Apeworx</a><br>
</p>
</div>
<div>
<h3>The New Internet</h3>
<p>
<a href="https://goldenlight.mirror.xyz" target="_blank">Goldenlight</a><br>
<a href="https://www.remilia.org" target="_blank">Remilia</a><br>
<a href="https://cult.inc" target="_blank">Cult, INC</a><br>
<a href="https://schizoposters.xyz" target="_blank">Schizoposters</a><br>
<a href="https://achievements.remilia.org" target="_blank">Beetle Game</a><br>
<a href="https://miladymaker.net" target="_blank">Milady Maker</a><br>
<a href="https://miladycraft.net" target="_blank">Miladycraft</a><br>
<a href="https://boards.miladychan.org/all/catalog" target="_blank">Miladychan</a><br>
<a href="https://miladystation.net" target="_blank">Miladystation</a><br>
<a href="https://store.remilia.org" target="_blank">Milady Gift Shop</a><br>
<a href="https://house.remilia.org" target="_blank">Remilia House</a><br>
<a href="https://remilio.org" target="_blank">Remilio</a><br>
<a href="https://yayo.fund" target="_blank">YAYO</a><br>
<a href="https://radbro.xyz" target="_blank">Radbro Webring</a><br>
<a href="https://sanko.tv" target="_blank">Sanko TV</a><br>
<a href="https://www.kemonokaki.net" target="_blank">Kemonokaki</a><br>
<a href="https://remilia.ly" target="_blank">Remilia.ly</a><br>
<a href="https://pixeladymaker.net" target="_blank">Pixelady</a><br>
</p>
</div>
</div>
<center><h3>Deeper Reading</h3></center>
<div style="display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 90%; margin: 20px auto; gap: 20px;">
<!-- Column 1: Bitcoin and Cryptocurrencies -->
<div style="flex: 1; min-width: 300px;">
<h4>Bitcoin & Cryptocurrencies</h4>
<p>
<a href="https://blog.lopp.net/bitcoin-2024-annual-review/" target="_blank">Bitcoin 2024 Annual Review</a><br>
<a href="https://www.forbes.com/sites/digital-assets/2024/12/29/the-virus-is-spreading-bitcoin-suddenly-braced-for-a-major-2025-price-move/" target="_blank">The ‘Virus Is Spreading’—Bitcoin Braced For 2025 Move</a><br>
<a href="https://99bitcoins.com/bitcoin-obituaries/" target="_blank">Bitcoin Obituaries (Deaths)</a><br>
<a href="https://www.bitcoinstimulus.net" target="_blank">Bitcoin Stimulus Tracker</a><br>
<a href="https://cirosantilli.com/cool-data-embedded-in-the-bitcoin-blockchain-split" target="_blank">Cool Data Embedded in the Bitcoin Blockchain</a><br>
<a href="https://www.cnbc.com/2024/12/05/bitcoin-will-double-to-200000-by-the-end-of-2025-says-standard-chartered.html" target="_blank">Bitcoin to $200,000 by 2025 - Standard Chartered</a>
</p>
</div>
<!-- Column 2: NFTs and Web3 -->
<div style="flex: 1; min-width: 300px;">
<h4>NFTs & Web3</h4>
<p>
<a href="https://members.delphidigital.io/feed/schizoposters-the-nft-collection-with-the-most-momentum" target="_blank">SchizoPosters: Momentum in NFTs</a><br>
<a href="https://pro.opensea.io/collection/radbro-webring" target="_blank">RadBro Webring v2</a><br>
<a href="https://blog.remilia.org/fumo-404/" target="_blank">Milady $FUMO Redux</a><br>
<a href="https://www.insurancejournal.com/news/east/2025/01/13/807939.htm" target="_blank">First Notice of Litigation with NFT</a><br>
<a href="https://news.bloomberglaw.com/esg/nft-founder-charlotte-fang-likened-to-cult-leader-in-lawsuit" target="_blank">NFT Founder Likened to 'Cult Leader'</a><br>
<a href="https://quarterly.remilia.org/mandate/#footnote-0-0" target="_blank">Submit To Remilia Quarterly</a>
</p>
</div>
<!-- Column 3: DeFi & Blockchain Innovations -->
<div style="flex: 1; min-width: 300px;">
<h4>DeFi & Blockchain Innovations</h4>
<p>
<a href="https://news.curve.fi/curve-elixir-blackrock/" target="_blank">Curve + BlackRock: $533M Bridge</a><br>
<a href="https://blog.chain.link/chainlink-banking-capital-markets-announcements/" target="_blank">Chainlink’s Work With Banking Institutions</a><br>
<a href="https://www.swift.com/news-events/news/live-trials-digital-asset-transactions-swift-start-2025" target="_blank">Swift's Digital Asset Trials in 2025</a><br>
<a href="https://ripple.com/ripple-press/ripple-adopts-the-chainlink-standard-to-further-rippleusd-utility-and-access-in-defi/" target="_blank">Ripple Adopts the Chainlink Standard</a><br>
<a href="https://ir.citi.com/_tpHpW8MfaZ1QXwGmP1JGMGXXI95qXm3IMJzUJScLMb6XIjtOls6EbDehXMR3B_o9Opi7mdc5tQ%3D" target="_blank">Citi: Chainlink May Eclipse Bitcoin</a>
</p>
</div>
<!-- Column 4: Cultural and Miscellaneous Insights -->
<div style="flex: 1; min-width: 300px;">
<h4>Cultural & Miscellaneous</h4>
<p>
<a href="https://goldenlight.mirror.xyz/4SW-snEQ1fIwhdppbMWIPy771XJHrL-lkQNYupCtB1I" target="_blank">What Remilia Believes In: New Net Art</a><br>
<a href="https://www.wired.com/story/girls-online-culture/" target="_blank">Everyone Is a Girl Online</a><br>
<a href="https://blog.goodaudience.com/chainlink-the-missing-piece-to-the-god-protocol-fd455dde92ab" target="_blank">Chainlink: The God Protocol</a><br>
<a href="https://www.dazeddigital.com/life-culture/article/57533/1/serial-experiments-lain-lainpilled-cyberpunk-memes-tiktok" target="_blank">Are You Lainpilled?</a><br>
<a href="https://www.prnewswire.com/news-releases/donald-j-trump-inspired-world-liberty-financial-adopts-the-chainlink-standard-to-accelerate-the-mass-adoption-of-defi-302305219.html" target="_blank">World Liberty Financial Adopts Chainlink</a>
</p>
</div>
</div>
<hr>
<!-- <a class="twitter-timeline" href="https://twitter.com/itsTylerIRL?ref_src=twsrc%5Etfw">Tweets by itsTylerIRL</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<br><hr> -->
<font size="4">
<p>If you have any comments about our WEB page, you can write us at the address shown above.
However, due to the limited number of personnel in our corporate office, we are unable to
provide a direct response.</p>
</font>
<hr>
<dl>
<p align="left"><font size="4"><a href="index.html">Main Page</a>
<br><img src="images/tyler.png" alt="Oh...I see" style="width:150px;height:150px;"><br>
<a class="twitter-follow-button"
href="https://twitter.com/itsTylerIRL">
Follow @itsTylerIRL</a></p>
<br>
<p align="left">Copyright © 2025 <b>CornHub Intl Inc.</b></font></p>
</dl>
<!-- <br> -->
<div class="affiliated-projects"></div>
<div class="project-grid">
<div class="project-item">
<a href="https://misctyler.github.io/CornHub/oracle"><img src="images/moeda.png" alt="CornHub" style="width:50px;height:50px;"></a>
</div>
<div class="project-item">
<a href="https://cult.inc"><img src="images/cult.png" alt="Milady Cult Coin" style="width:50px;height:50px;"></a>
</div>
<div class="project-item">
<a href="https://radbro.xyz"><img src="images/radbro.png" alt="Radbro Webring" style="width:50px;height:50px;"></a>
</div>
<div class="project-item">
<a href="https://heheh.finance"><img src="images/heheh.gif" alt="Heheh Finance" style="width:50px;height:50px;"></a>
</div>
<div class="project-item">
<a href="https://dapp.aavegotchi.com"><img src="images/gotchi.png" alt="Aavegotchi" style="width:50px;height:50px;"></a>
</div>
</div>
</div>
<style>
.affiliated-projects {
text-align: center;
margin: 20px 0;
}
.project-grid {
display: flex;
justify-content: center;
gap: 20px;
margin: 10px 0;
}
.project-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}
</style>
</body>
</html>