Skip to content

Instantly share code, notes, and snippets.

View Signor1's full-sized avatar
🎯
Focusing

Signor Dev Signor1

🎯
Focusing
View GitHub Profile
@Signor1
Signor1 / README.md
Created March 19, 2026 08:50
Shadow-Swap Readme

ShadowSwap — Privacy-Preserving Cross-Chain Bridge

ShadowSwap is a privacy-preserving cross-chain bridge between StarkNet and Ethereum, live on mainnet. It lets users move assets across chains without linking their source and destination addresses — breaking the on-chain trail that traditional bridges leave behind.

You send from one chain. Someone else seems to receive on another. No link, no trace.

The Problem

Traditional bridges leak information. When you bridge tokens from StarkNet to Ethereum, anyone can trace the transaction — matching your source wallet to your destination wallet. Your financial activity is fully public, permanently on-chain, and trivially linkable.

Privacy is not a feature most bridges offer. It's an afterthought, or simply absent.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jumia</title>
<link rel="stylesheet" href="css/styles.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css" rel="stylesheet" />
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jumia</title>
<link rel="stylesheet" href="css/styles.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css" rel="stylesheet" />
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forms</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>School ID Card</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
</head>
@Signor1
Signor1 / IERC20.sol
Created August 9, 2025 17:11
Mainnet Forking
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
interface IERC20 {
function approve(address _spender, uint256 _value) external;
function balanceOf(address who) external view returns (uint256 balance);
}
import { useState } from "react";
import abi from "./abi.json";
import { ethers } from "ethers";
const contractAddress = "0x9D1eb059977D71E1A21BdebD1F700d4A39744A70";
function App() {
const [text, setText] = useState("");
async function requestAccount() {
@Signor1
Signor1 / lib.rs
Created July 20, 2025 22:07
Campaign Marketing
use std::collections::HashMap;
#[derive(PartialEq, Debug)]
pub enum CampaignStatus {
Inactive,
Active,
Completed,
}
#[derive(Debug)]
@Signor1
Signor1 / README.md
Created June 25, 2025 14:34
Implementing ERC20 Permit

React Hooks (JavaScript)

  1. useERC20Permit Hook

For tokens that already inherit ERC20Permit (EIP-2612) Single transaction: No need for separate approve + transferFrom Functions:

generatePermitSignature() - Creates the permit signature depositWithPermit() - Deposits in one transaction

@Signor1
Signor1 / example.md
Last active May 7, 2025 13:02
Proposed Transaction Fee Formula for Strimz

(Example: If N = 10, Fee = $0.30 + ($0.15 × 3.16) ≈ $0.77)


Real-World EVM Example

Assume:

  • Base Fee = $0.30 (covers gas for 1 contract call).
  • Variable Fee = $0.15 (your profit margin).