This file contains hidden or 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 { createPublicClient, http } from "viem"; | |
| import { gnosis } from "viem/chains"; | |
| export const publicClient = createPublicClient({ | |
| chain: gnosis, | |
| transport: http(), | |
| }); | |
| const wagmiAbi = [ | |
| { |
This file contains hidden or 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
| // the handler | |
| const handleTransfer = async ({ | |
| event, | |
| context, | |
| }: { | |
| event: eventLog<Hub_HubTransfer_eventArgs | PersonalCRC_Transfer_eventArgs>; | |
| context: handlerContext; | |
| }) => { | |
| const entity: Hub_Transfer = { |
This file contains hidden or 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
| export const getQuote = async ( | |
| address: Address, | |
| amount: number, | |
| fromAssetTypeId: AssetTypeIdentifier, | |
| toAssetTypeId: AssetTypeIdentifier | |
| ) => { | |
| if (!amount) { | |
| throw new Error('Amount must be defined and bigger than 0'); | |
| } |
This file contains hidden or 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
| const quote = ... // this is loaded before with orderBookApi.getQuote | |
| const safeAddress = "0xF35128804511Ef5c98D3b539592C88e0928bdfA3" | |
| const comethWallet = getComethWallet().wallet | |
| await comethWallet.connect(safeAddress) | |
| const CoWSettlementAbi = [ | |
| { | |
| "inputs": [ | |
| { "internalType": "bytes", "name": "orderUid", "type": "bytes" }, | |
| { "internalType": "bool", "name": "signed", "type": "bool" } |
This file contains hidden or 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
| This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
| ✅ did:3:bafyreidp22xgjyuk2vmnf2sbf3pjw7mvjjy7i6wfo75bsh7sgyui4ssbya ✅ | |
| Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains hidden or 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
| Request ID=24102020/6032880 |
This file contains hidden or 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
| #!/bin/bash | |
| # Since we're dealing with dd, abort if any errors occur | |
| set -e | |
| TEST_FILE=${1:-dd_ibs_testfile} | |
| if [ -e "$TEST_FILE" ]; then TEST_FILE_EXISTS=$?; fi | |
| TEST_FILE_SIZE=134217728 | |
| # Exit if file exists |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Hello World</title> | |
| <script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
| <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
| <!-- Don't use this in production: --> |
This file contains hidden or 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
| #! /bin/bash | |
| ###################################################################### | |
| # | |
| # This script generates an SSL certficate for local development. To | |
| # execute the script, run `bash create-dev-ssl-cert.sh`. Sudo is | |
| # needed to save the certificate to your Mac KeyChain. After the cert | |
| # is generated, you can use `HTTPS=true yarn start` to run the web | |
| # server. | |
| # |
This file contains hidden or 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
| pragma solidity ^0.5.0; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721Full.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721Mintable.sol"; | |
| contract MyNFT is ERC721Full, ERC721Mintable { | |
| constructor() ERC721Full("MyNFT", "MNFT") public { | |
| } | |
| } |
NewerOlder