Changes to kadlend.scroll.pub

root
root
25 days ago
Initial commit
body.html
Changed around line 1
+
+

KadLend

+

Decentralized Lending & Borrowing on Kadena

+
+
+
+
+
+

Not connected

+
+
+
+
+

Lend Assets

+
+
+

KDA

+

APY: 5.2%

+
+
+
+
+
+
+
+

Borrow Assets

+
+
+

KDA

+

APR: 7.8%

+
+
+
+
+
+
+
+
+

Recent Transactions

+
    +
    +
    +
    +
    +
    +
    +
    + FAQ
    +
    +
    index.scroll
    Changed around line 1
    + buildHtml
    + baseUrl https://kadlend.scroll.pub
    + metaTags
    + editButton /edit.html
    + title KadLend - Decentralized Lending on Kadena
    + style.css
    + body.html
    + script.js
    prompt.json
    Changed around line 1
    + {
    + "id": "84041753-720c-4f06-89dd-0d2467220cb5",
    + "object": "chat.completion",
    + "created": 1735326279,
    + "model": "deepseek-chat",
    + "choices": [
    + {
    + "index": 0,
    + "message": {
    + "role": "assistant",
    + "content": "---domain---\nkadlend.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://kadlend.scroll.pub\nmetaTags\neditButton /edit.html\ntitle KadLend - Decentralized Lending on Kadena\nstyle.css\nbody.html\nscript.js\n---body.html---\n
    \n

    KadLend

    \n

    Decentralized Lending & Borrowing on Kadena

    \n
    \n\n
    \n
    \n \n

    Not connected

    \n
    \n\n
    \n
    \n

    Lend Assets

    \n
    \n
    \n

    KDA

    \n

    APY: 5.2%

    \n \n
    \n \n
    \n
    \n\n
    \n

    Borrow Assets

    \n
    \n
    \n

    KDA

    \n

    APR: 7.8%

    \n \n
    \n \n
    \n
    \n
    \n\n
    \n

    Recent Transactions

    \n
      \n \n
    \n
    \n
    \n\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --accent-color: #e74c3c;\n --background-color: #ecf0f1;\n --text-color: #2c3e50;\n --border-radius: 8px;\n --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n margin: 0;\n padding: 0;\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\nmain {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 1rem;\n}\n\n.dashboard {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n margin-bottom: 2rem;\n}\n\n.asset {\n background: white;\n padding: 1.5rem;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n transition: transform 0.3s ease;\n}\n\n.asset:hover {\n transform: translateY(-5px);\n}\n\nbutton {\n background-color: var(--secondary-color);\n color: white;\n border: none;\n padding: 0.8rem 1.5rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: var(--accent-color);\n}\n\n#connectWallet {\n margin: 1rem 0;\n}\n\n#walletStatus {\n color: var(--accent-color);\n font-weight: bold;\n}\n\n.transactions {\n background: white;\n padding: 1.5rem;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n}\n\nfooter {\n background-color: var(--primary-color);\n color: white;\n padding: 1rem;\n text-align: center;\n}\n\nfooter nav a {\n color: white;\n text-decoration: none;\n margin: 0 1rem;\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2rem;\n }\n\n .dashboard {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\n// Connect to Kadena wallet\nconst connectWallet = document.getElementById('connectWallet');\nconst walletStatus = document.getElementById('walletStatus');\n\nconnectWallet.addEventListener('click', async () => {\n try {\n // Implement Kadena wallet connection logic here\n walletStatus.textContent = 'Connected';\n walletStatus.style.color = '#2ecc71';\n } catch (error) {\n walletStatus.textContent = 'Connection failed';\n walletStatus.style.color = '#e74c3c';\n console.error('Wallet connection error:', error);\n }\n});\n\n// Transaction handling\nconst transactionList = document.getElementById('transactionList');\n\n// Example transaction data\nconst transactions = [\n { type: 'Lend', asset: 'KDA', amount: '100', date: '2023-10-01' },\n { type: 'Borrow', asset: 'KDA', amount: '50', date: '2023-10-02' }\n];\n\n// Display transactions\ntransactions.forEach(transaction => {\n const li = document.createElement('li');\n li.textContent = `${transaction.type} ${transaction.amount} ${transaction.asset} on ${transaction.date}`;\n transactionList.appendChild(li);\n});\n\n// Lend/Borrow button functionality\ndocument.querySelectorAll('.lend-btn, .borrow-btn').forEach(button => {\n button.addEventListener('click', () => {\n // Implement lending/borrowing logic here\n alert('Lending/Borrowing functionality coming soon!');\n });\n});\n---end---"
    + },
    + "logprobs": null,
    + "finish_reason": "stop"
    + }
    + ],
    + "usage": {
    + "prompt_tokens": 262,
    + "completion_tokens": 1349,
    + "total_tokens": 1611,
    + "prompt_cache_hit_tokens": 0,
    + "prompt_cache_miss_tokens": 262
    + },
    + "system_fingerprint": "fp_f1afce2943"
    + }
    readme.scroll
    Changed around line 1
    + # kadlend.scroll.pub
    + Website generated by DeepSeek from prompt: Create a fully functional dApp like Aave v4 on Kadena blockchain with fully functional frontend. The UI must be modern and creative.
    script.js
    Changed around line 1
    + // Connect to Kadena wallet
    + const connectWallet = document.getElementById('connectWallet');
    + const walletStatus = document.getElementById('walletStatus');
    +
    + connectWallet.addEventListener('click', async () => {
    + try {
    + // Implement Kadena wallet connection logic here
    + walletStatus.textContent = 'Connected';
    + walletStatus.style.color = '#2ecc71';
    + } catch (error) {
    + walletStatus.textContent = 'Connection failed';
    + walletStatus.style.color = '#e74c3c';
    + console.error('Wallet connection error:', error);
    + }
    + });
    +
    + // Transaction handling
    + const transactionList = document.getElementById('transactionList');
    +
    + // Example transaction data
    + const transactions = [
    + { type: 'Lend', asset: 'KDA', amount: '100', date: '2023-10-01' },
    + { type: 'Borrow', asset: 'KDA', amount: '50', date: '2023-10-02' }
    + ];
    +
    + // Display transactions
    + transactions.forEach(transaction => {
    + const li = document.createElement('li');
    + li.textContent = `${transaction.type} ${transaction.amount} ${transaction.asset} on ${transaction.date}`;
    + transactionList.appendChild(li);
    + });
    +
    + // Lend/Borrow button functionality
    + document.querySelectorAll('.lend-btn, .borrow-btn').forEach(button => {
    + button.addEventListener('click', () => {
    + // Implement lending/borrowing logic here
    + alert('Lending/Borrowing functionality coming soon!');
    + });
    + });
    style.css
    Changed around line 1
    + :root {
    + --primary-color: #2c3e50;
    + --secondary-color: #3498db;
    + --accent-color: #e74c3c;
    + --background-color: #ecf0f1;
    + --text-color: #2c3e50;
    + --border-radius: 8px;
    + --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    + }
    +
    + body {
    + font-family: 'Segoe UI', sans-serif;
    + line-height: 1.6;
    + color: var(--text-color);
    + background-color: var(--background-color);
    + margin: 0;
    + padding: 0;
    + }
    +
    + header {
    + background-color: var(--primary-color);
    + color: white;
    + padding: 2rem;
    + text-align: center;
    + }
    +
    + h1 {
    + font-size: 2.5rem;
    + margin-bottom: 0.5rem;
    + }
    +
    + main {
    + max-width: 1200px;
    + margin: 2rem auto;
    + padding: 1rem;
    + }
    +
    + .dashboard {
    + display: grid;
    + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    + gap: 2rem;
    + margin-bottom: 2rem;
    + }
    +
    + .asset {
    + background: white;
    + padding: 1.5rem;
    + border-radius: var(--border-radius);
    + box-shadow: var(--box-shadow);
    + transition: transform 0.3s ease;
    + }
    +
    + .asset:hover {
    + transform: translateY(-5px);
    + }
    +
    + button {
    + background-color: var(--secondary-color);
    + color: white;
    + border: none;
    + padding: 0.8rem 1.5rem;
    + border-radius: var(--border-radius);
    + cursor: pointer;
    + transition: background-color 0.3s ease;
    + }
    +
    + button:hover {
    + background-color: var(--accent-color);
    + }
    +
    + #connectWallet {
    + margin: 1rem 0;
    + }
    +
    + #walletStatus {
    + color: var(--accent-color);
    + font-weight: bold;
    + }
    +
    + .transactions {
    + background: white;
    + padding: 1.5rem;
    + border-radius: var(--border-radius);
    + box-shadow: var(--box-shadow);
    + }
    +
    + footer {
    + background-color: var(--primary-color);
    + color: white;
    + padding: 1rem;
    + text-align: center;
    + }
    +
    + footer nav a {
    + color: white;
    + text-decoration: none;
    + margin: 0 1rem;
    + }
    +
    + @media (max-width: 768px) {
    + h1 {
    + font-size: 2rem;
    + }
    +
    + .dashboard {
    + grid-template-columns: 1fr;
    + }
    + }