- Solana went out again
- Their POH concept is fundamentally flawed at the consensus level and susceptible to DDOS attacks like the one that happened yesterday
- They're the only blockchain I know of where you're not allowed to use the blockchain if you live in certain countries. Yet they're website says it's "censorship-resistant"
- While all of this is happening, hopefully the VCs don't [rug pull](https://twitter.com/GooseOfCrypto/status/14560025
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @param parentSelector: Where to insert the new table of contents. | |
* Leave blank if you only wnat to return the table of contents without | |
* automatically prepending to the parent component. | |
* @see: https://css-tricks.com/automatic-table-of-contents/ | |
* @see: Used in https://atila.ca/blog/tomiwa/how-to-embed-a-notion-page-in-a-react-website/ | |
*/ | |
export function createTableOfContents(parentSelector="") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import gspread | |
from django.db.models import BooleanField | |
from google.oauth2.service_account import Credentials | |
from django.contrib.postgres.fields import ArrayField | |
from contact.models import Contact | |
We're going to build a web application that allows you to send Ethereum and Binance Coin (BNB) to any address using Metamask.
You can see what the finished product looks like here: https://bit.dev/atila/web-components-library/ui/crypto-payment-form
This video was inspired by Arthur Chmaro's video, How to Send ETH using React.js.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Working version of https://docs.web3auth.io/quick-start?lang=react&chain=eth&customAuthentication=no&customLogin=no&whitelabel=no | |
**/ | |
import { ADAPTER_EVENTS, CHAIN_NAMESPACES, SafeEventEmitterProvider } from "@web3auth/base"; | |
import { Web3Auth } from "@web3auth/web3auth"; | |
import { OpenloginAdapter } from "@web3auth/openlogin-adapter"; | |
import { useEffect, useState } from "react"; | |
import "./App.css"; | |
import RPC from "../../services/EVM"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import DePayWidgets from '@depay/widgets';// https://github.com/DePayFi/widgets | |
import { Button } from 'antd'; | |
interface CryptoPaymentWidgetProps { | |
/** Amount that wallet will receive in USD */ | |
amount: number; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Implementation of https://github.com/ctimmerm/axios-mock-adapter | |
*/ | |
import Environment from '../Environment'; | |
import ContactsAPI from '../ContactsAPI'; | |
import ContactsQuery1 from './Contacts/ContactsQuery1.json'; | |
import ScholarshipsPreview1 from './Scholarship/ScholarshipsPreview1.json'; | |
import ScholarshipsPreviewOntario1 from './Scholarship/ScholarshipsPreviewOntario1.json'; | |
var axios = require("axios"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To test that your extension is working, we can trigger a request account | |
// copy the following scripts into your browser console | |
// source: https://gist.github.com/ademidun/29268d38592a84703812c7984f4863cd | |
ethereum | |
.request({ method: 'eth_requestAccounts' }) | |
.then((accounts)=>{ | |
console.log({accounts}); | |
}) | |
.catch((error) => { |
You have installed a package that doesn't have a typescript definition. Here is how you can create one yourself:
See: Transak/transak-sdk#7 (comment)
Here's how I fixed this:
- Create a new file:
src/@types/transak-sdk.d.ts
- Add the Following: [Transak Declaration File]
- Add the Following: [Use Transak Declaration File in component]