- Paste your function as a markdown
- For the example section, copy your table and convert it to markdown with a Table to Markdown Tool and then paste it here.
- You might need to surround html code with backticks `` so it renders the html code and not the formatted html
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
/** | |
A node script that gets the top 10 most starred repos on safe-global github | |
by sending a request to github API | |
and save the name, url, description and star count to a JSON and CSV file | |
courtesy of ChatGPT: https://i.imgur.com/bQuh1Sr.png **/ | |
const https = require('https'); | |
const fs = require('fs'); | |
const orgName = 'safe-global'; |
Bloomberg Businessweek famously said that businesses could receive payments on Stripe in 7 lines of code.
Now: anyone can receive payments on Safe in 5 lines of code.
Safe CLI: Python
Bloomberg Businessweek famously said that businesses could receive payments on Stripe in 7 lines of code.
With Safe, anyone can deploy a Safe Smart contract wallet to receive payments in 4 lines.
import Safe, { SafeFactory, SafeAccountConfig } from '@safe-global/safe-core-sdk'
const safeFactory = await SafeFactory.create({ ethAdapter });
const safeAccountConfig: SafeAccountConfig = { owners: ['0x...', '0x...', '0x...'], threshold: 3}
const safeSdk: Safe = await safeFactory.deploySafe({ safeAccountConfig })
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]
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) => { |
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
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
/** | |
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"; |
NewerOlder