Skip to content

Instantly share code, notes, and snippets.

View InfectedIsm's full-sized avatar
💫

InfectedIsm InfectedIsm

💫
View GitHub Profile
@InfectedIsm
InfectedIsm / contracts...hyperEVM...Receiver.sol
Created April 29, 2025 06:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IL1Write {
// Events
event IocOrder(address indexed user, uint16 perp, bool isBuy, uint64 limitPx, uint64 sz);
event VaultTransfer(address indexed user, address indexed vault, bool isDeposit, uint64 usd);
event TokenDelegate(address indexed user, address indexed validator, uint64 _wei, bool isUndelegate);
event CDeposit(address indexed user, uint64 _wei);
event CWithdrawal(address indexed user, uint64 _wei);
@InfectedIsm
InfectedIsm / diff-recommandation.md
Created July 13, 2024 16:28
create diff for recommandations

Adds the contest remote repository named 'upstream' with the specified URL.

git remote add original https://github.com/project/contest-repo.git

Downloads objects and refs from the remote repository

git fetch original
@InfectedIsm
InfectedIsm / copy-with-line-numbers-mod.md
Last active July 13, 2024 16:15
Modification for copy-with-line-numbers extension for solidity reporting
  1. go to your vscode extensions folder and find the extension script file:
    .vscode\extensions\yassh.copy-with-line-numbers-0.0.4\out\src\copy-with-line-numbers.js
  2. replace with next file

Below the diff. I've replaced the use of copy-paste lib for clipboard as it does not work correctly with Vscode through Windows WSL. This change isn't mandatory.

--- C:\Users\.vscode\extensions\yassh.copy-with-line-numbers-0.0.4\out\src\copy-with-line-numbers - backup.js
+++ C:\Users\.vscode\extensions\yassh.copy-with-line-numbers-0.0.4\out\src\copy-with-line-numbers.js
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master