Bigmi is a TypeScript library for Bitcoin applications that provides a comprehensive set of functions for interacting with the Bitcoin blockchain. It includes actions for querying blockchain data, managing transactions, and working with various Bitcoin data providers.
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 { ethers, providers, Wallet, utils, Transaction } from "ethers"; | |
| import { | |
| FlashbotsBundleProvider, | |
| FlashbotsBundleResolution, | |
| } from "@flashbots/ethers-provider-bundle"; | |
| import { exit } from "process"; | |
| const FLASHBOTS_URL = "https://relay-goerli.flashbots.net"; | |
| const TOKEN_ADDRESS = "0x4E5d67a73bdb6BF68fADa7BDD7F455A7aA02C8ab"; |
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
| // SPDX-License-Identifier: MIT | |
| // | |
| // Let's play connect-four! | |
| // Check out the contract for details. | |
| pragma solidity 0.8.17; | |
| contract ConnectFour { | |
| mapping(bytes32 => Game) public games; // Game IDs ==> Games | |
| mapping(address => uint256) public nrOfGames; // User ==> Nr. of Games |
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
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" |
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
| openapi: 3.0.3 | |
| info: | |
| title: Crawl4AI API | |
| version: 1.0.0 | |
| description: API for web crawling and content extraction | |
| servers: | |
| - url: / | |
| components: |
The bigmi library doesn't include functions for generating raw transactions. It focuses on blockchain data retrieval and transaction broadcasting. For transaction creation, use bitcoinjs-lib which bigmi already depends on.
import * as bitcoin from 'bitcoinjs-lib';
import { getUTXOs } from '@bigmi/core';
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 | |
| # Script to fetch and display PR comments from GitHub | |
| # Automatically detects repository from current git directory | |
| # Usage: ./fetch_pr_comments.sh <PR_NUMBER> [USERNAME] | |
| # Color codes for better output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' |
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
| package parser | |
| import ( | |
| "fmt" | |
| "strings" | |
| "example.com/baml_client/type_builder" | |
| baml "github.com/boundaryml/baml/engine/language_client_go/pkg" | |
| ) |
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 | |
| PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| cd "$PROJECT_ROOT" | |
| source .env | |
| source script/helperFunctions.sh | |
| export ENABLE_MONGODB_LOGGING="true" |
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 { config } from 'dotenv' | |
| import { MongoClient } from 'mongodb' | |
| import { consola } from 'consola' | |
| import { type Address, type Hex } from 'viem' | |
| import { getRPCEnvVarName } from '../script/utils/network.js' | |
| import { | |
| type ISafeTxDocument, | |
| type ISafeTransaction, | |
| OperationTypeEnum, | |
| storeTransactionInMongoDB, |