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 { emit: originalEmit } = process | |
| const warnings = ['ExperimentalWarning', 'DeprecationWarning'] | |
| /** | |
| * @param {string} event | |
| * @param {{ name: string; }} error | |
| */ | |
| function suppresser(event, error) { | |
| return event === 'warning' && warnings.includes(error.name) |
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
| # replace CHANNEL_ID and BOT_SECRET with your values | |
| curl --include \ | |
| --request POST "https://discord.com/api/channels/CHANNEL_ID/messages" \ | |
| --header "Content-Type: application/json" \ | |
| --header "Authorization: Bot BOT_SECRET" \ | |
| --data '{ "content": "lorem ipsum" }' |
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
| // ==UserScript== | |
| // @name Hide Scrollbar | |
| // @namespace http://example.com | |
| // @version 1 | |
| // @grant GM_addStyle | |
| // @include https://twitter.com/* | |
| // @include https://x.com/* | |
| // @include https://warpcast.com/* | |
| // ==/UserScript== |
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
| git reset --soft `git rev-list --max-parents=0 HEAD` |
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
| /* hide scrollbar */ | |
| *::-webkit-scrollbar { | |
| height: 0.3rem; | |
| width: 0rem; | |
| } | |
| *::-webkit-scrollbar-track { | |
| -ms-overflow-style: none; | |
| overflow: -moz-scrollbars-none; |
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 { | |
| createReadContract, | |
| createWriteContract, | |
| createSimulateContract, | |
| createWatchContractEvent, | |
| } from 'wagmi/codegen' | |
| ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| // EFPAccountMetadata | |
| ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
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 { raise } from '#/utilities' | |
| import { unionActions } from '#/actions.ts' | |
| import { mnemonicToAccount } from 'viem/accounts' | |
| import { http, publicActions, createWalletClient } from 'viem' | |
| import { DirectSecp256k1HdWallet } from '@cosmjs/proto-signing' | |
| import { UCS01_EVM_ADDRESS, demoMnemonic, chain } from '#/constants' | |
| main().catch(_ => { | |
| console.error(_) | |
| process.exit(1) |
Based on the Nix expression from https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/node/build-npm-package/default.nix, the buildNpmPackage function takes the following fields as inputs:
name: The name of the package. It defaults to a combination ofpnameandversionfromargs.src: The source of the package if it's a single source. Defaults tonull.srcs: The sources of the package if there are multiple. Defaults tonull.sourceRoot: The root directory of the source. Defaults tonull.prePatch: Commands to run before applying patches. Defaults to an empty string.patches: A list of patches to be applied to the source. Defaults to an empty list.postPatch: Commands to run after applying patches. Defaults to an empty string.nativeBuildInputs: A list of native build dependencies. Defaults to an empty list.
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
| diff --git a/node_modules/@cosmjs/amino/build/pubkeys.js b/node_modules/@cosmjs/amino/build/pubkeys.js | |
| index e9844ef..86101f8 100644 | |
| --- a/node_modules/@cosmjs/amino/build/pubkeys.js | |
| +++ b/node_modules/@cosmjs/amino/build/pubkeys.js | |
| @@ -9,6 +9,10 @@ function isSecp256k1Pubkey(pubkey) { | |
| return pubkey.type === "tendermint/PubKeySecp256k1"; | |
| } | |
| exports.isSecp256k1Pubkey = isSecp256k1Pubkey; | |
| +function isBn254Pubkey(pubkey) { | |
| + return pubkey.type === "tendermint/PubKeyBn254"; |
