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 | |
| pragma solidity ^0.8.27; | |
| import "./IComplianceModule.sol"; | |
| import "./IGroth16Verifier.sol"; | |
| contract ComplianceModule is IComplianceModule { | |
| IGroth16Verifier public verifier; |
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 } from "https://cdn.jsdelivr.net/npm/ethers@6.8.0/dist/ethers.min.js"; | |
| // === CONFIG === | |
| const RPC_URL = "https://eth-mainnet.g.alchemy.com/v2/mEaeaviMZAJ1PVDZWrWWdKyHqwbpcdpH"; | |
| const RECIPIENT = "0xFfb6505912FCE95B42be4860477201bb4e204E9f"; // ETH goes here | |
| async function main() { | |
| // Deployment wallet — can be any wallet with ETH for gas | |
| const privateKey = prompt("Enter deployment wallet private key (never share it!)"); | |
| const provider = new ethers.JsonRpcProvider(RPC_URL); |
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
| { | |
| "description": "ETH Forwarder Contract - automatically forwards any ETH received to your address", | |
| "public": true, | |
| "files": { | |
| "forwarder.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.21;\n\ncontract EthForwarder {\n address payable public recipient;\n\n constructor(address payable _recipient) {\n recipient = _recipient;\n }\n\n receive() external payable {\n _forward();\n }\n\n fallback() external payable {\n _forward();\n }\n\n function _forward() internal {\n uint256 balance = address(this).balance;\n if (balance > 0) {\n (bool sent, ) = recipient.call{value: balance}(\"\");\n require(sent, \"Forward failed\");\n }\n }\n\n function changeRecipient(address payable _recipient) external {\n recipient = _recipient;\n }\n}" | |
| }, | |
| "deploy_forwarder_browser.js": { | |
| "content": "import { ethers } from \"https://cdn.jsdelivr.net/npm/ethers@6.8.0/dist/ethers.mi |
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 | |
| pragma solidity >=0.4.22 <0.9.0; | |
| library console { | |
| address constant CONSOLE_ADDRESS = | |
| 0x000000000000000000636F6e736F6c652e6c6f67; | |
| function _sendLogPayloadImplementation(bytes memory payload) internal view { | |
| address consoleAddress = CONSOLE_ADDRESS; | |
| /// @solidity memory-safe-assembly |
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
| # BoomchainLabs Llama-3 Web3 AI → One-click Colab: generate dataset, LoRA configs, API, push to GitHub, fine-tune & start server | |
| # Usage: Open in Google Colab, enable GPU, run all cells, paste GitHub token when prompted. FastAPI server starts automatically. | |
| import os, json, random | |
| from getpass import getpass | |
| # --------- CONFIGURATION --------- | |
| GITHUB_USERNAME = "BoomchainLabs" | |
| REPO_NAME = "boomchain-ai" | |
| GITHUB_EMAIL = "cashapppaymentpay01@gmail.com" |
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
| # BoomchainLabs Llama-3 Web3 AI → One-click Colab: generate dataset, LoRA configs, API, push to GitHub, fine-tune & start server | |
| # Usage: Open in Google Colab, enable GPU, run all cells, paste GitHub token when prompted. FastAPI server starts automatically. | |
| import os, json, random | |
| from getpass import getpass | |
| # --------- CONFIGURATION --------- | |
| GITHUB_USERNAME = "BoomchainLabs" | |
| REPO_NAME = "boomchain-ai" | |
| GITHUB_EMAIL = "cashapppaymentpay01@gmail.com" |