Skip to content

Instantly share code, notes, and snippets.

View kiruxaspb's full-sized avatar
🏗️
builder

Kirill Dvoretskov kiruxaspb

🏗️
builder
View GitHub Profile
#!/bin/bash
# Updated script, called with sudo -E bash bot.sh
set -o pipefail
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m'
@kiruxaspb
kiruxaspb / test.sol
Created April 23, 2025 13:09
Test contract
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
contract Test {
uint256 public counter;
uint256 public addressCounter;
struct StructAmount {
uint256 amount;
}
@kiruxaspb
kiruxaspb / i.txt
Created April 15, 2025 11:01
Instruction of locallaunch
Pre-install:
uv framework (https://astral.sh/blog/uv)
make init (build backend and frontend)
source .venv/bin/activate; langflow run --host 0.0.0.0 (local launch)
@kiruxaspb
kiruxaspb / check.py
Last active February 8, 2025 12:31
Signature check
def validate_signature(self, wallet_data):
logger.info(f"Data for validation:: {wallet_data}")
logger.info(f"Pub key: {wallet_data['public_key']}")
public_key = base64.b64decode(wallet_data["public_key"])
message = base64.b64decode(wallet_data["message"])
signature = base64.b64decode(wallet_data["signature"])
pub_key_obj = PublicKey(public_key)
/**
*Submitted for verification at Etherscan.io on 2022-10-14
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
contract MultiSigWallet {
event Deposit(address indexed sender, uint amount, uint balance);
event SubmitTransaction(